62 if(
this == &coom)
return *
this;
64 val_.resize(coom.nz_);
80 if(rows == rows_ && cols == cols_ && nz == nz_)
return;
86 ivect_ref_.obj().resize(nz);
87 jvect_ref_.obj().resize(nz);
va_indice_ref_type ivect_ref_
size_type rows(size_type rows, size_type cols, BLAS_Cpp::Transp _trans)
Return rows of a possible transposed matrix.
void resize(size_type rows, size_type cols, size_type nz)
Resize for a rows# by cols# sparse matrix with nz# elements.
COOMatrix & operator=(const COOMatrix &coom)
Assignment operator.
void read_coo_into_valarrays(std::istream &istrm, size_type &m, size_type &n, size_type &nz, std::valarray< value_type > &a, std::valarray< indice_type > &ivect, std::valarray< indice_type > &jvect)
Read in a Coordinate Matrix from a C++ input stream and store it in valarrays.
va_indice_ref_type jvect_ref_
RTOp_index_type size_type
Sparse Coordinate Matrix abstraction storage class.
size_type cols(size_type rows, size_type cols, BLAS_Cpp::Transp _trans)
Return columns of a possible transposed matrix.
void initialize(std::istream &istrm)
Initialize from an input stream.