46 #include "AbstractLinAlgPack_COOMatrixClass.hpp" 47 #include "AbstractLinAlgPack_SparseCOOReadMatrix.hpp" 48 #include "DenseLinAlgPack_IVector.hpp" 62 if(
this == &coom)
return *
this;
64 val_.resize(coom.nz_);
71 ivect_ref_ = coom.ivect_ref_;
72 jvect_ref_ = coom.jvect_ref_;
80 if(rows == rows_ && cols == cols_ && nz == nz_)
return;
86 ivect_ref_.obj().resize(nz);
87 jvect_ref_.obj().resize(nz);
92 read_coo_into_valarrays(istrm,rows_,cols_,nz_,val_,ivect_ref_.obj()
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.
Sparse Coordinate Matrix abstraction storage class.
size_type cols() const
Returns the number of columns in the column access view.
void initialize(std::istream &istrm)
Initialize from an input stream.
size_type rows() const
Return the number of rows in the row access view.