Thu, 07 Jul 2016 12:23:34 +0200
added missing sanguino files
0 | 1 | /* |
2 | * MatrixMath.h Library for Matrix Math | |
3 | * | |
4 | * Created by Charlie Matlack on 12/18/10. | |
5 | * Modified from code by RobH45345 on Arduino Forums, taken from unknown source. | |
6 | */ | |
7 | ||
8 | #ifndef MatrixMath_h | |
9 | #define MatrixMath_h | |
10 | ||
11 | #include "Marlin.h" | |
12 | ||
13 | class MatrixMath | |
14 | { | |
15 | public: | |
16 | MatrixMath(); | |
17 | void MatrixPrint(float* A, int m, int n, String label); | |
18 | void MatrixCopy(float* A, int n, int m, float* B); | |
19 | void MatrixMult(float* A, float* B, int m, int p, int n, float* C); | |
20 | void MatrixAdd(float* A, float* B, int m, int n, float* C); | |
21 | void MatrixSubtract(float* A, float* B, int m, int n, float* C); | |
22 | void MatrixTranspose(float* A, int m, int n, float* C); | |
23 | int MatrixInvert(float* A, int n); | |
24 | void MatrixIdentity(float* A, int m, int n); | |
25 | }; | |
26 | ||
27 | extern MatrixMath matrixMaths; | |
28 | ||
29 | #endif |