22 #ifndef fixed_square_matrix_h
23 #define fixed_square_matrix_h
25 #include "fixed_general_matrix.h"
41 typedef AT AtomicType;
61 template<
class Type,
class Row,
class Col>
84 int size()
const {
return M;};
93 inline operator std::vector<std::vector<AT> >();
99 template <
int M,
class AT>
100 inline const SquareMatrix<Fixed<M>,AT> SquareMatrix<Fixed<M>,AT>::T()
const {
101 SquareMatrix<Fixed<M>,AT> A(NONINIT);
102 for(
int i=0; i<M; i++)
103 for(
int j=0; j<M; j++)
108 template <
int M,
class AT>
110 std::vector<std::vector<AT> > ret(size());
111 for(
int r=0; r<size(); r++) {
112 ret[r].resize(size());
113 for(
int c=0; c<size(); c++)
SquareMatrix(const Matrix< Type, Row, Col, AT > &A)
Copy Constructor.
Definition: fixed_square_matrix.h:62
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)
Copy operator.
Definition: fixed_square_matrix.h:75
int size() const
Size.
Definition: fixed_square_matrix.h:84
Basic shape class for matrices.
Definition: types.h:100