blob: c872a813e6f573e32a7f2277fd4c85a1540fb1f2 [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001// This file is part of Eigen, a lightweight C++ template library
2// for linear algebra.
3//
Austin Schuh189376f2018-12-20 22:11:15 +11004// Copyright (C) 2010-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
Brian Silverman72890c22015-09-19 14:37:37 -04005//
6// This Source Code Form is subject to the terms of the Mozilla
7// Public License v. 2.0. If a copy of the MPL was not distributed
8// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
10#ifndef EIGEN_LAPACK_COMMON_H
11#define EIGEN_LAPACK_COMMON_H
12
13#include "../blas/common.h"
Austin Schuh189376f2018-12-20 22:11:15 +110014#include "../Eigen/src/misc/lapack.h"
Brian Silverman72890c22015-09-19 14:37:37 -040015
16#define EIGEN_LAPACK_FUNC(FUNC,ARGLIST) \
17 extern "C" { int EIGEN_BLAS_FUNC(FUNC) ARGLIST; } \
18 int EIGEN_BLAS_FUNC(FUNC) ARGLIST
19
20typedef Eigen::Map<Eigen::Transpositions<Eigen::Dynamic,Eigen::Dynamic,int> > PivotsType;
21
Austin Schuh189376f2018-12-20 22:11:15 +110022#if ISCOMPLEX
23#define EIGEN_LAPACK_ARG_IF_COMPLEX(X) X,
24#else
25#define EIGEN_LAPACK_ARG_IF_COMPLEX(X)
26#endif
Brian Silverman72890c22015-09-19 14:37:37 -040027
28
29#endif // EIGEN_LAPACK_COMMON_H