#include <iostream>
#include <cla3p/sparse.hpp>
int main()
{
std::cout << A.
info(
"A") << A <<
"\n";
std::cout << B.
info(
"B") << B <<
"\n";
std::cout << C.info("C") << C << "\n";
return 0;
}
csc::XxMatrix< T_Int, T_Scalar > toCsc(dup_t duplicatePolicy=dup_t::Sum) const
Convert to compressed sparse column (CSC) format.
std::string info(const std::string &header="") const
Get information about the sparse matrix.
void reserve(T_Int nz)
Reserve storage for non-zero elements.
void insert(const Tuple< T_Int, T_Scalar > &tuple)
Insert a non-zero element using a tuple.
std::string info(const std::string &header="") const
Get information about the sparse matrix.
@ Amax
Definition enums.hpp:114
XxMatrix< int_t, real_t > RdMatrix
Double precision real COO (Coordinate) matrix.
Definition sparse.hpp:111
XxMatrix< int_t, real_t > RdMatrix
Double precision real CSC (Compressed Sparse Column) matrix.
Definition sparse.hpp:73