]> git.tdb.fi Git - libs/math.git/blob - source/squarematrix.h
Basic vector and matrix classes
[libs/math.git] / source / squarematrix.h
1 #ifndef MSP_LINAL_SQUAREMATRIX_H_
2 #define MSP_LINAL_SQUAREMATRIX_H_
3
4 #include "matrix.h"
5
6 namespace Msp {
7 namespace LinAl {
8
9 template<typename T, unsigned S>
10 class SquareMatrix: public Matrix<T, S, S>
11 {
12 public:
13         SquareMatrix();
14         SquareMatrix(const T *);
15         template<typename U>
16         SquareMatrix(const Matrix<U, S, S> &);
17         static SquareMatrix identity();
18
19         SquareMatrix &operator*=(const SquareMatrix &);
20
21         void invert();
22 };
23
24 } // namespace LinAl
25 } // namespace Msp
26
27 #endif