22 #ifndef fixed_square_matrix_h
23 #define fixed_square_matrix_h
25 #include "fixed_general_matrix.h"
60 template<
class Type,
class Row,
class Col>
83 int size()
const {
return M;};
92 inline operator std::vector<std::vector<AT> >();
98 template <
int M,
class AT>
99 inline const SquareMatrix<Fixed<M>,AT> SquareMatrix<Fixed<M>,AT>::T()
const {
100 SquareMatrix<Fixed<M>,AT> A(NONINIT);
101 for(
int i=0; i<M; i++)
102 for(
int j=0; j<M; j++)
107 template <
int M,
class AT>
109 std::vector<std::vector<AT> > ret(size());
110 for(
int r=0; r<size(); r++) {
111 ret[r].resize(size());
112 for(
int c=0; c<size(); c++)
SquareMatrix(const Matrix< Type, Row, Col, AT > &A)
Copy Constructor.
Definition: fixed_square_matrix.h:61
This is the basic matrix class for arbitrary matrices.
Definition: matrix.h:56
SquareMatrix< Fixed< M >, AT > & operator=(const Matrix< Type, Row, Col, AT > &A)
Copy operator.
Definition: fixed_square_matrix.h:74
int size() const
Size.
Definition: fixed_square_matrix.h:83
Basic shape class for matrices.
Definition: types.h:100