-
Notifications
You must be signed in to change notification settings - Fork 476
/
Copy pathlapack_common.h
31 lines (25 loc) · 943 Bytes
/
lapack_common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2010-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_LAPACK_COMMON_H
#define EIGEN_LAPACK_COMMON_H
#include "../Eigen/src/misc/lapack.h"
#include "../blas/common.h"
#define EIGEN_LAPACK_FUNC(FUNC, ARGLIST) \
extern "C" { \
int EIGEN_BLAS_FUNC(FUNC) ARGLIST; \
} \
int EIGEN_BLAS_FUNC(FUNC) ARGLIST
typedef Eigen::Map<Eigen::Transpositions<Eigen::Dynamic, Eigen::Dynamic, int> >
PivotsType;
#if ISCOMPLEX
#define EIGEN_LAPACK_ARG_IF_COMPLEX(X) X,
#else
#define EIGEN_LAPACK_ARG_IF_COMPLEX(X)
#endif
#endif // EIGEN_LAPACK_COMMON_H