X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flinal%2Fsquarematrix.h;fp=source%2Flinal%2Fsquarematrix.h;h=6cda86a5baa6b202ec00dba93acb0a152b03a985;hb=839a88cd2b9a2f054323627c4e76cdcefc652c63;hp=0000000000000000000000000000000000000000;hpb=4d9e2d03503ba3d90633d2acdaadf64869bf2ab4;p=libs%2Fmath.git diff --git a/source/linal/squarematrix.h b/source/linal/squarematrix.h new file mode 100644 index 0000000..6cda86a --- /dev/null +++ b/source/linal/squarematrix.h @@ -0,0 +1,27 @@ +#ifndef MSP_LINAL_SQUAREMATRIX_H_ +#define MSP_LINAL_SQUAREMATRIX_H_ + +#include "matrix.h" + +namespace Msp { +namespace LinAl { + +template +class SquareMatrix: public Matrix +{ +public: + SquareMatrix(); + SquareMatrix(const T *); + template + SquareMatrix(const Matrix &); + static SquareMatrix identity(); + + SquareMatrix &operator*=(const SquareMatrix &); + + void invert(); +}; + +} // namespace LinAl +} // namespace Msp + +#endif