CLA3P v0.3.1
Compact Linear Algebra Parallel Portable Package
Loading...
Searching...
No Matches
ex06c_sparse_matrix_create_with_property.cpp
#include <iostream>
#include <cla3p/sparse.hpp>
int main()
{
/*
* Create properties for A, B and C
*/
/*
* Declare matrices with a property
*/
cla3p::coo::RfMatrix A(30, 40, prA);
cla3p::coo::RfMatrix B(30, 30, prB);
cla3p::coo::CdMatrix C(30, 30, prC);
std::cout << A.info("A") << B.info("B") << C.info("C");
return 0;
}
The property class.
Definition property.hpp:42
static Property HermitianUpper()
Factory method for upper-triangular Hermitian property.
static Property General()
Factory method for general property.
static Property SymmetricLower()
Factory method for lower-triangular symmetric property.
std::string info(const std::string &header="") const
Get information about the sparse matrix.
XxMatrix< int_t, real4_t > RfMatrix
Single precision real COO (Coordinate) matrix.
Definition sparse.hpp:119
XxMatrix< int_t, complex_t > CdMatrix
Double precision complex COO (Coordinate) matrix.
Definition sparse.hpp:127