MatrixMath.h

Sat, 07 Nov 2015 13:24:46 +0100

author
mbayer
date
Sat, 07 Nov 2015 13:24:46 +0100
changeset 1
b584642d4f58
parent 0
2c8ba1964db7
permissions
-rw-r--r--

several modifications to support laser enable - still needs cleanup

/*
 *  MatrixMath.h Library for Matrix Math
 *
 *  Created by Charlie Matlack on 12/18/10.
 *  Modified from code by RobH45345 on Arduino Forums, taken from unknown source.
 */

#ifndef MatrixMath_h
#define MatrixMath_h

#include "Marlin.h"

class MatrixMath
{
public:
	MatrixMath();
	void MatrixPrint(float* A, int m, int n, String label);
	void MatrixCopy(float* A, int n, int m, float* B);
	void MatrixMult(float* A, float* B, int m, int p, int n, float* C);
	void MatrixAdd(float* A, float* B, int m, int n, float* C);
	void MatrixSubtract(float* A, float* B, int m, int n, float* C);
	void MatrixTranspose(float* A, int m, int n, float* C);
	int MatrixInvert(float* A, int n);
	void MatrixIdentity(float* A, int m, int n);
};

extern MatrixMath matrixMaths;

#endif

mercurial