lapack_common.h 877 B

1234567891011121314151617181920212223242526272829
  1. // This file is part of Eigen, a lightweight C++ template library
  2. // for linear algebra.
  3. //
  4. // Copyright (C) 2010-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
  5. //
  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. #ifndef EIGEN_LAPACK_COMMON_H
  10. #define EIGEN_LAPACK_COMMON_H
  11. #include "../blas/common.h"
  12. #include "../Eigen/src/misc/lapack.h"
  13. #define EIGEN_LAPACK_FUNC(FUNC,ARGLIST) \
  14. extern "C" { int EIGEN_BLAS_FUNC(FUNC) ARGLIST; } \
  15. int EIGEN_BLAS_FUNC(FUNC) ARGLIST
  16. typedef Eigen::Map<Eigen::Transpositions<Eigen::Dynamic,Eigen::Dynamic,int> > PivotsType;
  17. #if ISCOMPLEX
  18. #define EIGEN_LAPACK_ARG_IF_COMPLEX(X) X,
  19. #else
  20. #define EIGEN_LAPACK_ARG_IF_COMPLEX(X)
  21. #endif
  22. #endif // EIGEN_LAPACK_COMMON_H