CLA3P v0.3.1
Compact Linear Algebra Parallel Portable Package
Loading...
Searching...
No Matches
ex02e_dense_matrix_create_random.cpp
#include <iostream>
#include <cla3p/dense.hpp>
int main()
{
/*
* (4x3) single precision general complex matrix
* with random values in [0,1].
*/
std::cout << A.info("A") << A;
/*
* (4x4) double precision symmetric lower real matrix
* with random values in [0,1].
*/
std::cout << B.info("B") << B;
return 0;
}
The property class.
Definition property.hpp:42
static Property SymmetricLower()
Factory method for lower-triangular symmetric property.
std::string info(const std::string &header="") const
Get information about the matrix.
static XxMatrix< T_Scalar > random(int_t nr, int_t nc, const Property &pr=Property::General(), T_RScalar lo=T_RScalar(0), T_RScalar hi=T_RScalar(1))
Create a random matrix.
CxMatrix< complex8_t > CfMatrix
Single precision complex matrix.
Definition dense.hpp:73
XxMatrix< real_t > RdMatrix
Double precision real matrix.
Definition dense.hpp:55