CLA3P v0.3.1
Compact Linear Algebra Parallel Portable Package
Loading...
Searching...
No Matches
ex06a_sparse_matrix_create.cpp
#include <iostream>
#include <cla3p/sparse.hpp>
int main()
{
/*
* Double precision real empty matrix
*/
std::cout << A.info("A");
std::cout << B.info("B");
/*
* (3x4) single precision real matrix
*/
std::cout << C.info("C");
/*
* Initialize a (5x2) empty sparse matrix
*/
std::cout << B.info("B");
return 0;
}
std::string info(const std::string &header="") const
Get information about the sparse matrix.
std::string info(const std::string &header="") const
Get information about the sparse matrix.
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
XxMatrix< int_t, real4_t > RfMatrix
Single precision real COO (Coordinate) matrix.
Definition sparse.hpp:119