10 #ifndef EIGEN_BLAS_COMMON_H 11 #define EIGEN_BLAS_COMMON_H 13 #include "../Eigen/Core" 14 #include "../Eigen/Jacobi" 19 #error the token SCALAR must be defined to compile this file 22 #include "../Eigen/src/misc/blas.h" 39 #define OP(X) ( ((X)=='N' || (X)=='n') ? NOTR \ 40 : ((X)=='T' || (X)=='t') ? TR \ 41 : ((X)=='C' || (X)=='c') ? ADJ \ 44 #define SIDE(X) ( ((X)=='L' || (X)=='l') ? LEFT \ 45 : ((X)=='R' || (X)=='r') ? RIGHT \ 48 #define UPLO(X) ( ((X)=='U' || (X)=='u') ? UP \ 49 : ((X)=='L' || (X)=='l') ? LO \ 52 #define DIAG(X) ( ((X)=='N' || (X)=='n') ? NUNIT \ 53 : ((X)=='U' || (X)=='u') ? UNIT \ 57 inline bool check_op(
const char* op)
62 inline bool check_side(
const char* side)
64 return SIDE(*side)!=0xff;
67 inline bool check_uplo(
const char* uplo)
69 return UPLO(*uplo)!=0xff;
74 #include "BandTriangularSolver.h" 75 #include "GeneralRank1Update.h" 76 #include "PackedSelfadjointProduct.h" 77 #include "PackedTriangularMatrixVector.h" 78 #include "PackedTriangularSolverVector.h" 79 #include "Rank2Update.h" 82 using namespace Eigen;
84 typedef SCALAR Scalar;
86 typedef std::complex<RealScalar> Complex;
102 matrix(
T* data,
int rows,
int cols,
int stride)
109 matrix(
const T* data,
int rows,
int cols,
int stride)
139 T* get_compact_vector(
T* x,
int n,
int incx)
145 if(incx<0) make_vector(ret,n) = make_vector(x,n,-incx).reverse();
146 else make_vector(ret,n) = make_vector(x,n, incx);
151 T* copy_back(
T* x_cpy,
T* x,
int n,
int incx)
156 if(incx<0) make_vector(x,n,-incx).reverse() = make_vector(x_cpy,n);
157 else make_vector(x,n, incx) = make_vector(x_cpy,n);
161 #define EIGEN_BLAS_FUNC(X) EIGEN_CAT(SCALAR_SUFFIX,X##_) 163 #endif // EIGEN_BLAS_COMMON_H A matrix or vector expression mapping an existing array of data.
Definition: Map.h:88
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
Holds information about the various numeric (i.e.
Definition: NumTraits.h:150
Convenience specialization of Stride to specify only an inner stride See class Map for some examples...
Definition: Stride.h:90
Definition: ArpackSelfAdjointEigenSolver.h:34
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:178
Convenience specialization of Stride to specify only an outer stride See class Map for some examples...
Definition: Stride.h:101