Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Defines | Functions

math-matrix.h File Reference

Matrix library. More...

Go to the source code of this file.

Defines

#define NR_END   1
#define MATRIX_MAX_SIZE   10

Functions

void matrixPrintF (float *matrix, int numRows, int numCols, char *label)
void matrixPrintL (long *matrix, int numRows, int numCols, char *label)
void matrixCopyF (float *source, int numRows, int numCols, float *destination)
void matrixCopyL (long *source, int numRows, int numCols, long *destination)
void matrixMultF (float *matrixA, float *matrixB, int numRowsA, int numColsA, int numColsB, float *matrixC)
void matrixMultL (long *matrixA, long *matrixB, int numRowsA, int numColsA, int numColsB, long *matrixC)
void matrixAddF (float *matrixA, float *matrixB, int numRowsA, int numColsA, float *matrixC)
void matrixAddL (long *matrixA, long *matrixB, int numRowsA, int numColsA, long *matrixC)
void matrixSubtractF (float *matrixA, float *matrixB, int numRowsA, int numColsA, float *matrixC)
void matrixSubtractL (long *matrixA, long *matrixB, int numRowsA, int numColsA, long *matrixC)
void matrixTransposeF (float *matrixA, int numRowsA, int numColsA, float *matrixC)
void matrixTransposeL (long *matrixA, int numRowsA, int numColsA, long *matrixC)

Detailed Description

Matrix library.

math-matrix.h provides a number of frequently used functions that are useful for doing math with matrices. Taken from http://playground.arduino.cc/Code/MatrixMath and ported to ROBOTC. License: You may use this code as you wish, provided you give credit where its due.

THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.

Changelog:

Author:
Charlie Matlack
RobH45345
Xander Soldaat (xander_at_botbench.com)
Date:
2 March 2013
Version:
0.1

Definition in file math-matrix.h.