9 #ifndef _fei_MatrixTraits_hpp_
10 #define _fei_MatrixTraits_hpp_
12 #include <fei_macros.hpp>
52 {
return(
"unsupported"); }
54 static double* getBeginPointer(T* )
59 static int getOffset(T* ,
int ,
int )
66 static int setValues(T* mat,
double scalar)
94 int row,
int len,
double* coefs,
int* indices)
102 int numRows,
const int* rows,
103 int numCols,
const int* cols,
104 const double*
const* values,
126 #endif // _fei_MatrixTraits_hpp_
static const char * typeName()
static int matvec(T *A, fei::Vector *x, fei::Vector *y)
static int getRowLength(T *mat, int row, int &length)
static int getNumLocalRows(T *mat, int &numRows)
static int setValues(T *mat, double scalar)
static int copyOutRow(T *mat, int row, int len, double *coefs, int *indices)
static int putValuesIn(T *mat, int numRows, const int *rows, int numCols, const int *cols, const double *const *values, bool sum_into)
static int globalAssemble(T *A)