11 #ifndef MATRIX_REAL_ANY_H 12 #define MATRIX_REAL_ANY_H 39 int rows()
const {
return is_float64() ? m64_->rows : m32_->rows; }
40 int cols()
const {
return is_float64() ? m64_->cols : m32_->cols; }
41 int stride()
const {
return is_float64() ? m64_->stride : m32_->stride; }
45 throw std::string(
"Matrix_real_any::as_float64 called on float32 matrix");
52 throw std::string(
"Matrix_real_any::as_float32 called on float64 matrix");
Class to store single-precision real arrays and properties.
matrix_real_precision precision_
Non-owning carrier that can reference either Matrix_real or Matrix_real_float.
Matrix_real_any(Matrix_real_float &m)
Matrix_real & as_float64()
Matrix_real_any(Matrix_real &m)
Matrix_real_float & as_float32()
matrix_real_precision precision() const
Class to store data of complex arrays and its properties.