9 #ifndef _fei_VectorTraits_LinSysCore_hpp_
10 #define _fei_VectorTraits_LinSysCore_hpp_
13 #include <fei_VectorTraits.hpp>
14 #include <fei_LinearSystemCore.hpp>
26 {
return(
"LinearSystemCore"); }
31 double scalar,
bool isSolnVector=
false)
46 int numValues,
const int* indices,
const double* values,
48 bool isSolnVector=
false,
77 int numValues,
const int* indices,
double* values,
78 bool isSolnVector=
false,
83 for(
int i=0; i<numValues; ++i) {
84 if (vec->
getSolnEntry(indices[i], values[i]) != 0)
return(-1);
105 #endif // _fei_VectorTraits_LinSysCore_hpp_
static int copyOut(LinearSystemCore *vec, int firstLocalOffset, int numValues, const int *indices, double *values, bool isSolnVector=false, int vectorIndex=0)
virtual int sumIntoRHSVector(int num, const double *values, const int *indices)=0
virtual int getFromRHSVector(int num, double *values, const int *indices)=0
virtual int putIntoRHSVector(int num, const double *values, const int *indices)=0
static const char * typeName()
virtual int resetRHSVector(double s)=0
static int setValues(LinearSystemCore *vec, int firstLocalOffset, double scalar, bool isSolnVector=false)
static int putValuesIn(LinearSystemCore *vec, int firstLocalOffset, int numValues, const int *indices, const double *values, bool sum_into, bool isSolnVector=false, int vectorIndex=0)
static int update(LinearSystemCore *vec, double a, const LinearSystemCore *x, double b)
virtual int putInitialGuess(const int *eqnNumbers, const double *values, int len)=0
virtual int getSolnEntry(int eqnNumber, double &answer)=0