35 iter = mat.
begin(), iter_end = mat.
end();
37 for(; iter!=iter_end; ++iter) {
38 int row = iter->first;
40 const std::vector<int>& v_ind = v->
indices();
41 const std::vector<double>& v_coef = v->
coefs();
43 for(
size_t i=0; i<v_ind.size(); ++i) {
44 os <<
"("<<v_ind[i]<<
","<<v_coef[i]<<
") ";
54 size_t len = vec.
size();
56 os <<
" numEntries: " << len <<
FEI_ENDL;
58 for(
size_t i=0; i<len; ++i) {
74 for(
size_t i=0; i<rows.size(); ++i) {
78 for(
int j=rowoffs[i]; j<rowoffs[i+1]; ++j) {
79 os <<
"("<<cols[j]<<
","<<coefs[j]<<
") ";
feipoolmat::iterator iterator
unsigned getNumRows() const
FEI_OSTREAM & operator<<(FEI_OSTREAM &os, EqnBuffer &eq)
std::vector< int > & indices()
std::vector< int > rowNumbers
std::vector< int > packedColumnIndices
std::vector< int > rowOffsets
SparseRowGraph & getGraph()
unsigned getNumRows() const
std::vector< double > & getPackedCoefs()
virtual int writeToStream(FEI_OSTREAM &ostrm, bool matrixMarketFormat=true)=0
std::vector< double > & coefs()
virtual int writeToStream(FEI_OSTREAM &ostrm, bool matrixMarketFormat=true)=0