CLA3P v0.3.1
Compact Linear Algebra Parallel Portable Package
Loading...
Searching...
No Matches
ex02c_dense_matrix_create_with_property.cpp
#include <iostream>
#include <cla3p/dense.hpp>
int main()
{
/*
* Create properties for A, B and C
*/
/*
* Declare matrices with a property
*/
{
cla3p::dns::RfMatrix A(3, 4, prA);
cla3p::dns::RfMatrix B(3, 3, prB);
cla3p::dns::CdMatrix C(3, 3, prC);
std::cout << A.info("A") << B.info("B") << C.info("C");
}
/*
* Allocate space with property for existing matrices.
*/
{
A = cla3p::dns::RfMatrix(3, 4, prA);
B = cla3p::dns::RfMatrix(3, 3, prB);
C = cla3p::dns::CdMatrix(3, 3, prC);
}
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 matrix.
XxMatrix< real4_t > RfMatrix
Single precision real matrix.
Definition dense.hpp:61
CxMatrix< complex_t > CdMatrix
Double precision complex matrix.
Definition dense.hpp:67