138 ostream& operator<<(ostream &s, const Fortran_Sparse_Vector<T> &A)
143 s << A.dim() <<
" " << nz << endl;
146 s << A.val(i) <<
" " << A.index(i) << endl;
Fortran_Sparse_Vector< T > & newsize(Subscript N, Subscript nz)
Fortran_Sparse_Vector(Subscript N, Subscript nz)
std::istream & operator>>(std::istream &s, Fortran_Matrix< T > &A)
Fortran_Sparse_Vector(Subscript N, Subscript nz, const T *values, const Subscript *indices)
const T & val(Subscript i) const
TNT_SUBSCRIPT_TYPE Subscript
const T & const_reference
Fortran_Sparse_Vector(Subscript N, Subscript nz, char *v, char *ind)
Vector< T > & newsize(Subscript N)
Subscript & index(Subscript i)
Fortran_Sparse_Vector(const Fortran_Sparse_Vector< T > &S)
const Subscript & index(Subscript i) const
Fortran_Sparse_Vector< T > & operator=(const Fortran_Sparse_Vector< T > &A)
Vector< Subscript > index_
Subscript num_nonzeros() const