| ||||||
Files | |
| file | math-matrix.h |
Matrix library. | |
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) |
matrix Math Library
| #define MATRIX_MAX_SIZE 10 |
Definition at line 39 of file math-matrix.h.
| #define NR_END 1 |
Definition at line 37 of file math-matrix.h.
| void matrixAddF | ( | float * | matrixA, |
| float * | matrixB, | ||
| int | numRowsA, | ||
| int | numColsA, | ||
| float * | matrixC | ||
| ) |
Adds values of two matrices
This function is for floats
| matrixA | the first matrix to be added |
| matrixB | the second matrix to be added |
| numRowsA | the number of rows of both matrices |
| numColsA | the number of columns of both matrices |
| matrixC | the resulting matrix |
Definition at line 176 of file math-matrix.h.
| void matrixAddL | ( | long * | matrixA, |
| long * | matrixB, | ||
| int | numRowsA, | ||
| int | numColsA, | ||
| long * | matrixC | ||
| ) |
Adds values of two matrices
This function is for longs
| matrixA | the first matrix to be added |
| matrixB | the second matrix to be added |
| numRowsA | the number of rows of both matrices |
| numColsA | the number of columns of both matrices |
| matrixC | the resulting matrix |
Definition at line 195 of file math-matrix.h.
| void matrixCopyF | ( | float * | source, |
| int | numRows, | ||
| int | numCols, | ||
| float * | destination | ||
| ) |
Copies all the values from one matrix into another
This function is for floats
| source | the matrix which is to be copied |
| numRows | the number of rows in the source matrix |
| numCols | the number of columns in the source matrix |
| destination | the matrix to copy to |
Definition at line 97 of file math-matrix.h.
| void matrixCopyL | ( | long * | source, |
| int | numRows, | ||
| int | numCols, | ||
| long * | destination | ||
| ) |
Copies all the values from one matrix into another
This function is for longs
| source | the matrix which is to be copied |
| numRows | the number of rows in the source matrix |
| numCols | the number of columns in the source matrix |
| destination | the matrix to copy to |
Definition at line 112 of file math-matrix.h.
| void matrixMultF | ( | float * | matrixA, |
| float * | matrixB, | ||
| int | numRowsA, | ||
| int | numColsA, | ||
| int | numColsB, | ||
| float * | matrixC | ||
| ) |
Copies all the values from one matrix into another
This function is for floats
| matrixA | the first matrix to be multiplied |
| matrixB | the second matrix to be multiplied |
| numRowsA | the number of rows in the first matrix |
| numColsA | the number of columns in the first matrix |
| numColsB | the number of columns in the second matrix |
| matrixC | the resulting matrix |
Definition at line 129 of file math-matrix.h.
| void matrixMultL | ( | long * | matrixA, |
| long * | matrixB, | ||
| int | numRowsA, | ||
| int | numColsA, | ||
| int | numColsB, | ||
| long * | matrixC | ||
| ) |
Copies all the values from one matrix into another
This function is for longs
| matrixA | the first matrix to be multiplied |
| matrixB | the second matrix to be multiplied |
| numRowsA | the number of rows in the first matrix |
| numColsA | the number of columns in the first matrix |
| numColsB | the number of columns in the second matrix |
| matrixC | the resulting matrix |
Definition at line 153 of file math-matrix.h.
| void matrixPrintF | ( | float * | matrix, |
| int | numRows, | ||
| int | numCols, | ||
| char * | label | ||
| ) |
Prints a nicely formatted version of the matrix to the debugstream
This function is for floats
| matrix | the matrix to be printed |
| numRows | the number of rows in the matrix |
| numCols | the number of columns in the matrix |
| label | the label to use when printing the matrix |
Definition at line 51 of file math-matrix.h.
| void matrixPrintL | ( | long * | matrix, |
| int | numRows, | ||
| int | numCols, | ||
| char * | label | ||
| ) |
Prints a nicely formatted version of the matrix to the debugstream
This function is for longs
| matrix | the matrix to be printed |
| numRows | the number of rows in the matrix |
| numCols | the number of columns in the matrix |
| label | the label to use when printing the matrix |
Definition at line 74 of file math-matrix.h.
| void matrixSubtractF | ( | float * | matrixA, |
| float * | matrixB, | ||
| int | numRowsA, | ||
| int | numColsA, | ||
| float * | matrixC | ||
| ) |
Adds values of two matrices
This function is for floats
| matrixA | the first matrix to be added |
| matrixB | the second matrix to be added |
| numRowsA | the number of rows of both matrices |
| numColsA | the number of columns of both matrices |
| matrixC | the resulting matrix |
Definition at line 214 of file math-matrix.h.
| void matrixSubtractL | ( | long * | matrixA, |
| long * | matrixB, | ||
| int | numRowsA, | ||
| int | numColsA, | ||
| long * | matrixC | ||
| ) |
Adds values of two matrices
This function is for longs
| matrixA | the first matrix to be added |
| matrixB | the second matrix to be added |
| numRowsA | the number of rows of both matrices |
| numColsA | the number of columns of both matrices |
| matrixC | the resulting matrix |
Definition at line 233 of file math-matrix.h.
| void matrixTransposeF | ( | float * | matrixA, |
| int | numRowsA, | ||
| int | numColsA, | ||
| float * | matrixC | ||
| ) |
Transpose a matrix
This function is for floats
| matrixA | the first matrix to be transposed |
| numRowsA | the number of rows of matrixA |
| numColsA | the number of columns matrixA |
| matrixC | the resulting matrix |
Definition at line 251 of file math-matrix.h.
| void matrixTransposeL | ( | long * | matrixA, |
| int | numRowsA, | ||
| int | numColsA, | ||
| long * | matrixC | ||
| ) |
Transpose a matrix
This function is for longs
| matrixA | the first matrix to be transposed |
| numRowsA | the number of rows of matrixA |
| numColsA | the number of columns matrixA |
| matrixC | the resulting matrix |
Definition at line 269 of file math-matrix.h.
1.7.2