]> git.tdb.fi Git - libs/math.git/blobdiff - source/linal/squarematrix.h
Rename the library to mspmath and make linal a sublibrary
[libs/math.git] / source / linal / squarematrix.h
diff --git a/source/linal/squarematrix.h b/source/linal/squarematrix.h
new file mode 100644 (file)
index 0000000..6cda86a
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef MSP_LINAL_SQUAREMATRIX_H_
+#define MSP_LINAL_SQUAREMATRIX_H_
+
+#include "matrix.h"
+
+namespace Msp {
+namespace LinAl {
+
+template<typename T, unsigned S>
+class SquareMatrix: public Matrix<T, S, S>
+{
+public:
+       SquareMatrix();
+       SquareMatrix(const T *);
+       template<typename U>
+       SquareMatrix(const Matrix<U, S, S> &);
+       static SquareMatrix identity();
+
+       SquareMatrix &operator*=(const SquareMatrix &);
+
+       void invert();
+};
+
+} // namespace LinAl
+} // namespace Msp
+
+#endif