130 for (
int idx=0; idx <
rows*
cols; idx++) {
131 if ( std::isnan(
data[idx].
real) || std::isnan(
data[idx].imag) ) {
150 std::cout << std::endl <<
"The stored matrix:" << std::endl;
152 for (
int row_idx=0; row_idx <
rows; row_idx++ ) {
153 for (
int col_idx=0; col_idx <
cols; col_idx++ ) {
154 int element_idx = row_idx*
stride + col_idx;
155 std::cout <<
" (" <<
data[element_idx].
real <<
", " <<
data[element_idx].
imag <<
"*i)";
158 std::cout << std::endl;
160 std::cout << std::endl << std::endl << std::endl;
bool isnan()
Call to check the array for NaN entries.
Matrix()
Default constructor of the class.
bool owner
logical value indicating whether the class instance is the owner of the stored data or not...
int stride
The column stride of the array. (The array elements in one row are a_0, a_1, ... a_{cols-1}, 0, 0, 0, 0. The number of zeros is stride-cols)
scalar * data
pointer to the stored data
void print_matrix() const
Call to prints the stored matrix on the standard output.
bool transposed
logical variable indicating whether the matrix needs to be transposed in CBLAS operations ...
bool conjugated
logical variable indicating whether the matrix needs to be conjugated in CBLAS operations ...
Base Class to store data of arrays and its properties.
int rows
The number of rows.
int cols
The number of columns.
Header file of complex array storage array with automatic and thread safe reference counting...
Structure type representing complex numbers in the SQUANDER package.
Class to store data of complex arrays and its properties.
Matrix copy()
Call to create a copy of the matrix.
double real
the real part of a complex number
double imag
the imaginary part of a complex number