#include <stdio.h>
Go to the source code of this file.
◆ CELL_PRECISION
◆ CELL_WIDTH
◆ matrix_element
Type definition for a numeric matrix element.
◆ matrix_type
enum for matrix types
| Enumerator |
|---|
| NONE | |
| SYMMETRIC | |
| SKEW_SYMMETRIC | |
◆ PrintMatrix()
Prints a square matrix.
- Parameters
-
| matrix | Matrix to print |
| size | Size of the matrix (rows and columns) |
◆ SwapElements()
Swaps two matrix elements.
- Parameters
-
| first | The first element |
| second | The element to swap with |
◆ TransposeMatrix()
Recieves a square matrix and transposes it in place.
- Parameters
-
| matrix | The matrix to transpose |
| size | The size of the matrix (rows and columns) |
- Returns
- corresponding value from the enum matrix_type describing whether it is symmetric, skew-symmetric, or neither
- Parameters
-
| matrix | The matrix to transpose |
| size | The size of the matrix (rows and columns) |