9 #ifndef _fei_Vector_Local_hpp_
10 #define _fei_Vector_Local_hpp_
25 const char*
typeName()
const {
return(
"fei::Vector_Local"); }
54 int sumIn(
int numValues,
const int* indices,
const double* values,
60 int copyIn(
int numValues,
const int* indices,
const double* values,
117 int copyOut(
int numValues,
const int* indices,
118 double* values,
int vectorIndex=0)
const;
121 bool matrixMarketFormat=
true);
124 bool matrixMarketFormat=
true);
130 const double* values,
131 bool sumInto,
int vectorIndex);
int copyOutFieldData(int fieldID, int idType, int numIDs, const int *IDs, double *data, int vectorIndex=0)
int copyInFieldDataLocalIDs(int fieldID, int idType, int numIDs, const int *localIDs, const double *data, int vectorIndex=0)
void setVectorSpace(fei::SharedPtr< fei::VectorSpace > vecSpace)
const char * typeName() const
int assembleFieldDataLocalIDs(int fieldID, int idType, int numIDs, const int *localIDs, const double *data, bool sumInto, int vectorIndex)
int gatherFromOverlap(bool accumulate=true)
int giveToVector(int numValues, const int *indices, const double *values, bool sumInto, int vectorIndex)
fei::SharedPtr< fei::VectorSpace > vecSpace_
int copyIn(int numValues, const int *indices, const double *values, int vectorIndex=0)
int update(double a, const fei::Vector *x, double b)
int putScalar(double scalar)
int copyInFieldData(int fieldID, int idType, int numIDs, const int *IDs, const double *data, int vectorIndex=0)
int writeToStream(FEI_OSTREAM &ostrm, bool matrixMarketFormat=true)
std::map< int, int > global_to_local_
Vector_Local(fei::SharedPtr< fei::VectorSpace > vecSpace)
std::vector< double > coefs_
std::vector< double > & getCoefs()
int writeToFile(const char *filename, bool matrixMarketFormat=true)
int sumIn(int numValues, const int *indices, const double *values, int vectorIndex=0)
fei::SharedPtr< fei::VectorSpace > getVectorSpace() const
std::vector< int > work_indices_
int assembleFieldData(int fieldID, int idType, int numIDs, const int *IDs, const double *data, bool sumInto, int vectorIndex)
int copyOut(int numValues, const int *indices, double *values, int vectorIndex=0) const
int sumInFieldData(int fieldID, int idType, int numIDs, const int *IDs, const double *data, int vectorIndex=0)