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 \ 69 return UPLO(*uplo)!=0xff;
82 using namespace Eigen;
102 matrix(T* data,
int rows,
int cols,
int stride)
109 matrix(
const T* data,
int rows,
int cols,
int stride)
161 #define EIGEN_BLAS_FUNC(X) EIGEN_CAT(SCALAR_SUFFIX,X##_) 163 #endif // EIGEN_BLAS_COMMON_H T * get_compact_vector(T *x, int n, int incx)
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
Matrix< Scalar, Dynamic, Dynamic, ColMajor > PlainMatrixType
bool check_uplo(const char *uplo)
T * copy_back(T *x_cpy, T *x, int n, int incx)
std::complex< RealScalar > Complex
A matrix or vector expression mapping an existing array of data.
RealScalar RealScalar int * incx
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
Map< Matrix< Scalar, Dynamic, 1 >, 0, InnerStride< Dynamic > > StridedVectorType
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
Map< const Matrix< Scalar, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > ConstMatrixType
NumTraits< Scalar >::Real RealScalar
Map< Matrix< Scalar, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > MatrixType
bool check_side(const char *side)
Convenience specialization of Stride to specify only an inner stride See class Map for some examples...
Map< Matrix< T, Dynamic, 1 >, 0, InnerStride< Dynamic > > make_vector(T *data, int size, int incr)
Map< Matrix< Scalar, Dynamic, 1 > > CompactVectorType
The matrix class, also used for vectors and row-vectors.
bool check_op(const char *op)