|
HP85 GPIB Disk Emulator
1.0
HP85GPIBDiskEmulator
|
matrix functions More...
Go to the source code of this file.
Functions | |
| MEMSPACE int | TestSquare (mat_t MatA) |
| Credits: https://www.cs.rochester.edu/~brown/Crypto/assts/projects/adj.html. More... | |
| MEMSPACE mat_t | MatAlloc (int rows, int cols) |
| Allocate a matrix. More... | |
| MEMSPACE mat_t | MatAllocSQ (int size) |
| Allocate a matrix. More... | |
| MEMSPACE void | MatFree (mat_t matF) |
| Free a matrix. More... | |
| MEMSPACE mat_t | MatLoad (void *V, int rows, int cols) |
| Load a matrix. More... | |
| MEMSPACE mat_t | MatLoadSQ (void *V, int size) |
| Load a square matrix. More... | |
| MEMSPACE void | MatPrint (mat_t matrix) |
| Print a matrix. More... | |
| MEMSPACE mat_t | DeleteRowCol (mat_t MatA, int row, int col) |
| Create smaller matrix by deleatting specified row and colume Used by Minor and Cofactor. More... | |
| MEMSPACE mat_t | Transpose (mat_t MatA) |
| Transpose matrix. More... | |
| MEMSPACE float | Minor (mat_t MatA, int row, int col) |
| Compute determinate of the minor submatrix Minor submatrix has one less row and column as a result. More... | |
| MEMSPACE float | Cofactor (mat_t MatA, int row, int col) |
| Cofactor is determinate of minor submatrix * (-1)exp(row+col) Minor submatrix has one less row and column as a result. More... | |
| MEMSPACE mat_t | Adjugate (mat_t MatA) |
| Adjugate is transpose of cofactor matrix of A. More... | |
| MEMSPACE float | Determinant (mat_t MatA) |
| Determinant by recursion using Cofactors. More... | |
| MEMSPACE mat_t | Invert (mat_t MatA) |
| Calculate Matrix Inverse. More... | |
| MEMSPACE mat_t | PseudoInvert (mat_t MatA) |
| Calculate Pseudo Matrix Inverse Used for least square fitting of non square matrix with excess solutions Pseudo Inverse matrix(A) = 1/(AT Ã A) Ã AT. More... | |
| MEMSPACE mat_t | MatMul (mat_t MatA, mat_t MatB) |
| Multiply two matrix. More... | |
| MEMSPACE mat_t | MatRead (char *name) |
| Read a matrix. More... | |
| MEMSPACE int | MatWrite (char *name, mat_t MatW) |
| Write a matrix. More... | |
matrix functions
This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file matrix.c.
Cofactor is determinate of minor submatrix * (-1)exp(row+col) Minor submatrix has one less row and column as a result.
| [in] | MatA | matrix A |
| [in] | row | row to delete |
| [in] | col | col to delete |
Definition at line 317 of file matrix.c.
Referenced by Adjugate(), and Determinant().
Calculate Matrix Inverse.
| [in] | MatA | square matrix A input |
Definition at line 408 of file matrix.c.
Referenced by PseudoInvert().
Allocate a matrix.
| [in] | size | size of square matrix to allocate |
Definition at line 48 of file matrix.c.
Referenced by Adjugate(), DeleteRowCol(), MatAllocSQ(), MatLoad(), MatMul(), MatRead(), and Transpose().
Free a matrix.
| [in] | **Mat | Matrix to free |
Definition at line 117 of file matrix.c.
Referenced by MatAlloc(), MatRead(), Minor(), and PseudoInvert().
Load a matrix.
| [in] | *V | matrix data |
| [in] | size | size of square matrix |
Definition at line 154 of file matrix.c.
Referenced by MatLoadSQ().
Multiply two matrix.
| [in] | MatA | matrix A |
| [in] | MatB | matrix B |
Definition at line 500 of file matrix.c.
Referenced by PseudoInvert().
Compute determinate of the minor submatrix Minor submatrix has one less row and column as a result.
| [in] | MatA | matrix A |
| [in] | row | row to delete |
| [in] | col | col to delete |
Definition at line 297 of file matrix.c.
Referenced by Cofactor().
Credits: https://www.cs.rochester.edu/~brown/Crypto/assts/projects/adj.html.
Test is a matrix is square
| [in] | MatA | matrix A |
1.8.17