Defines | Typedefs | Enumerations | Functions
common.h File Reference
#include <iostream>
#include <complex>
#include "../bench/btl/libs/C_BLAS/blas.h"
#include <Eigen/Core>
#include <Eigen/Jacobi>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ADJ   2
#define DIAG(X)
#define EIGEN_BLAS_FUNC(X)   EIGEN_CAT(SCALAR_SUFFIX,X##_)
#define INVALID   0xff
#define LEFT   0
#define LO   1
#define NOTR   0
#define NUNIT   0
#define OP(X)
#define RIGHT   1
#define SIDE(X)
#define TR   1
#define UNIT   1
#define UP   0
#define UPLO(X)

Typedefs

typedef Map< Matrix< Scalar,
Dynamic, 1 > > 
CompactVectorType
typedef std::complex< RealScalarComplex
typedef Map< Matrix< Scalar,
Dynamic, Dynamic, ColMajor >
, 0, OuterStride<> > 
MatrixType
typedef Matrix< Scalar,
Dynamic, Dynamic, ColMajor
PlainMatrixType
typedef NumTraits< Scalar >::Real RealScalar
typedef SCALAR Scalar
typedef Map< Matrix< Scalar,
Dynamic, 1 >, 0, InnerStride
< Dynamic > > 
StridedVectorType

Enumerations

enum  { IsComplex = Eigen::NumTraits<SCALAR>::IsComplex, Conj = IsComplex }

Functions

bool check_op (const char *op)
bool check_side (const char *side)
bool check_uplo (const char *uplo)
template<typename T >
Tcopy_back (T *x_cpy, T *x, int n, int incx)
template<typename T >
Tget_compact_vector (T *x, int n, int incx)
template<typename T >
Map< Matrix< T, Dynamic,
Dynamic, ColMajor >
, 0, OuterStride<> > 
matrix (T *data, int rows, int cols, int stride)
template<typename T >
Map< Matrix< T, Dynamic, 1 >
, 0, InnerStride< Dynamic > > 
vector (T *data, int size, int incr)
template<typename T >
Map< Matrix< T, Dynamic, 1 > > vector (T *data, int size)

Define Documentation

#define ADJ   2

Definition at line 48 of file common.h.

#define DIAG (   X)
Value:
(   ((X)=='N' || (X)=='N') ? NUNIT  \
                  : ((X)=='U' || (X)=='u') ? UNIT   \
                  : INVALID)

Definition at line 74 of file common.h.

#define EIGEN_BLAS_FUNC (   X)    EIGEN_CAT(SCALAR_SUFFIX,X##_)

Definition at line 155 of file common.h.

#define INVALID   0xff

Definition at line 59 of file common.h.

#define LEFT   0

Definition at line 50 of file common.h.

#define LO   1

Definition at line 54 of file common.h.

#define NOTR   0

Definition at line 46 of file common.h.

#define NUNIT   0

Definition at line 56 of file common.h.

#define OP (   X)
Value:
(   ((X)=='N' || (X)=='n') ? NOTR   \
                  : ((X)=='T' || (X)=='t') ? TR     \
                  : ((X)=='C' || (X)=='c') ? ADJ    \
                  : INVALID)

Definition at line 61 of file common.h.

#define RIGHT   1

Definition at line 51 of file common.h.

#define SIDE (   X)
Value:
(   ((X)=='L' || (X)=='l') ? LEFT   \
                  : ((X)=='R' || (X)=='r') ? RIGHT  \
                  : INVALID)

Definition at line 66 of file common.h.

#define TR   1

Definition at line 47 of file common.h.

#define UNIT   1

Definition at line 57 of file common.h.

#define UP   0

Definition at line 53 of file common.h.

#define UPLO (   X)
Value:
(   ((X)=='U' || (X)=='u') ? UP     \
                  : ((X)=='L' || (X)=='l') ? LO     \
                  : INVALID)

Definition at line 70 of file common.h.


Typedef Documentation

Definition at line 111 of file common.h.

typedef std::complex<RealScalar> Complex

Definition at line 100 of file common.h.

Definition at line 109 of file common.h.

Definition at line 108 of file common.h.

Definition at line 99 of file common.h.

typedef SCALAR Scalar

Definition at line 98 of file common.h.

Definition at line 110 of file common.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
IsComplex 
Conj 

Definition at line 102 of file common.h.


Function Documentation

bool check_op ( const char *  op) [inline]

Definition at line 79 of file common.h.

bool check_side ( const char *  side) [inline]

Definition at line 84 of file common.h.

bool check_uplo ( const char *  uplo) [inline]

Definition at line 89 of file common.h.

template<typename T >
T* copy_back ( T x_cpy,
T x,
int  n,
int  incx 
)

Definition at line 145 of file common.h.

template<typename T >
T* get_compact_vector ( T x,
int  n,
int  incx 
)

Definition at line 133 of file common.h.

template<typename T >
Map<Matrix<T,Dynamic,Dynamic,ColMajor>, 0, OuterStride<> > matrix ( T data,
int  rows,
int  cols,
int  stride 
)

Definition at line 115 of file common.h.

template<typename T >
Map<Matrix<T,Dynamic,1>, 0, InnerStride<Dynamic> > vector ( T data,
int  size,
int  incr 
)

Definition at line 121 of file common.h.

template<typename T >
Map<Matrix<T,Dynamic,1> > vector ( T data,
int  size 
)

Definition at line 127 of file common.h.



re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:44