145 for (
int row=0; row<
rows; row++) {
146 for (
int col=0; col<
cols; col++) {
147 const int idx = row*
stride + col;
148 target[idx] =
static_cast<float>(
data[idx]);
169 for (
int idx=0; idx <
rows*
cols; idx++) {
170 if ( std::isnan(
data[idx]) ) {
Class to store single-precision real arrays and properties.
bool owner
logical value indicating whether the class instance is the owner of the stored data or not...
Matrix_real copy() const
Call to create a copy of the matrix.
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
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.
void operator=(const matrix_base &mtx)
Assignment operator.
int rows
The number of rows.
int cols
The number of columns.
bool isnan()
Call to check the array for NaN entries.
void copy_to(Matrix_real &target) const
Copy the matrix to a reusable double-precision target matrix.
void copy_to(matrix_base< scalar > &target) const
Copy the current matrix storage into a reusable target matrix.
Matrix_real()
Default constructor of the class.
void transpose()
Call to transpose (or un-transpose) the matrix for CBLAS functions.
Matrix_real & operator=(const Matrix_real &mtx)
Assignment operator of the class.
bool is_conjugated() const
Call to get whether the matrix should be conjugated in CBLAS functions or not.
void conjugate()
Call to conjugate (or un-conjugate) the matrix for CBLAS functions.
bool is_transposed() const
Call to get whether the matrix should be conjugated in CBLAS functions or not.
Class to store data of complex arrays and its properties.