1 #ifndef _theplu_yat_utility_matrix_ 2 #define _theplu_yat_utility_matrix_ 33 #include "Exception.h" 34 #include "MatrixExpression.h" 35 #include "MatrixMutable.h" 36 #include "StrideIterator.h" 38 #include "VectorConstView.h" 39 #include "VectorExpression.h" 40 #include "VectorView.h" 41 #include "yat_assert.h" 43 #include <gsl/gsl_matrix.h> 80 void operator()(MatrixMutable& rhs);
82 void copy_assign(
const MatrixMutable& rhs);
123 Matrix(
const size_t& r,
const size_t& c,
double init_value=0);
240 explicit Matrix(std::istream &,
char sep=
'\0');
262 void resize(
size_t r,
size_t c,
double init_value=0);
283 using MatrixMutable::operator=;
297 using MatrixMutable::operator*=;
349 gsl_matrix* create_gsl_matrix_copy(
void)
const;
352 friend class detail::Mover;
353 void visit(detail::Mover& mover);
366 void inverse_svd(
const MatrixBase& input, Matrix& result);
383 bool nan(
const MatrixBase& templat, Matrix& flag);
399 detail::deallocate(m_);
void copy_assign(const gsl_matrix *rhs)
Definition: MatrixBase.h:54
gsl_matrix * gsl_matrix_p(void)
Class for errors reported from underlying GSL calls.
Definition: Exception.h:102
The Department of Theoretical Physics namespace as we define it.
virtual ~Matrix(void)
Destructor.
const gsl_matrix * gsl_matrix_p(void) const
Definition: MatrixExpression.h:138
void resize(size_t r, size_t c, double init_value=0)
Resize Matrix.
void copy_assign(const MatrixBase &other)
Behaves like operator=(const MatrixBase&)
Matrix(void)
The default constructor.
Matrix(MatrixExpression< T > &&other)
Definition: Matrix.h:203
void move(gsl_matrix *&m)
Definition: MatrixExpression.h:121
An expression that can be converted to a Matrix.
Definition: MatrixExpression.h:46
Interface to GSL matrix.
Definition: Matrix.h:104
void move_assign(MatrixMutable &&rhs)
const Matrix & operator=(const Matrix &other)
The assignment operator.
Definition: MatrixMutable.h:58
const Matrix & operator*=(const Matrix &)
Multiply and assignment operator.
void transpose(void)
Transpose the matrix.