22 #ifndef fixed_square_matrix_h 23 #define fixed_square_matrix_h 25 #include "fixed_general_matrix.h" 41 typedef AT value_type;
72 template<
class Type,
class Row,
class Col>
83 inline SquareMatrix<Fixed<M>,AT>& operator=(
const SquareMatrix<Fixed<M>,AT> &A) =
default;
91 template <
class Type,
class Row,
class Col>
103 template<
class Type,
class Row,
class Col>
119 explicit inline operator std::vector<std::vector<AT>>()
const;
124 template <
int M,
class AT>
125 inline const SquareMatrix<Fixed<M>,AT> SquareMatrix<Fixed<M>,AT>::T()
const {
126 SquareMatrix<Fixed<M>,AT> A(NONINIT);
127 for(
int i=0; i<M; i++)
128 for(
int j=0; j<M; j++)
133 template <
int M,
class AT>
135 std::vector<std::vector<AT>> ret(size());
136 for(
int r=0; r<size(); r++) {
137 ret[r].resize(size());
138 for(
int c=0; c<size(); c++)
SquareMatrix(const Matrix< Type, Row, Col, AT > &A)
Copy Constructor.
Definition: fixed_square_matrix.h:73
This is the basic matrix class for arbitrary matrices.
Definition: fmatvec.h:41
SquareMatrix< Fixed< M >, AT > & operator=(const Matrix< Type, Row, Col, AT > &A)
Assignment operator.
Definition: fixed_square_matrix.h:92
SquareMatrix(const SquareMatrix< Row, AT > &A)
Copy Constructor.
Definition: fixed_square_matrix.h:66
Namespace fmatvec.
Definition: _memory.cc:28
int size() const
Size.
Definition: fixed_square_matrix.h:110
Basic shape class for matrices.
Definition: types.h:132