44 #ifndef _fei_VectorTraits_CSVec_hpp_
45 #define _fei_VectorTraits_CSVec_hpp_
57 double scalar,
bool isSolnVector=
false)
65 int numValues,
const int* indices,
const double* values,
67 bool isSolnVector=
false,
71 for(
int i=0; i<numValues; ++i) {
72 if (indices[i] < 0)
continue;
77 for(
int i=0; i<numValues; ++i) {
78 if (indices[i] < 0)
continue;
88 int numValues,
const int* indices,
double* values,
89 bool isSolnVector=
false,
92 for(
int i=0; i<numValues; ++i) {
110 #endif // _fei_VectorTraits_CSVec_hpp_
void set_values(CSVec &vec, double scalar)
static const char * typeName()
void put_entry(CSVec &vec, int eqn, double coef)
static int update(CSVec *vec, double a, const CSVec *x, double b)
static int setValues(CSVec *vec, int firstLocalOffset, double scalar, bool isSolnVector=false)
double get_entry(const CSVec &vec, int eqn)
void add_entry(CSVec &vec, int eqn, double coef)
static int putValuesIn(CSVec *vec, int firstLocalOffset, int numValues, const int *indices, const double *values, bool sum_into, bool isSolnVector=false, int vectorIndex=0)
static int copyOut(CSVec *vec, int firstLocalOffset, int numValues, const int *indices, double *values, bool isSolnVector=false, int vectorIndex=0)