|
C Workshop
|
#include <stdio.h>Go to the source code of this file.
Macros | |
| #define | CELL_WIDTH 3 |
| #define | CELL_PRECISION 0 |
Typedefs | |
| typedef double | matrix_element |
| Type definition for a numeric matrix element. More... | |
Functions | |
| void | TransposeMatrix (matrix_element **matrix, size_t size) |
| Recieves a square matrix and transposes it in place. More... | |
| void | SwapElements (matrix_element *first, matrix_element *second) |
| Swaps two matrix elements. More... | |
| void | PrintMatrix (matrix_element **matrix, size_t size) |
| Prints a square matrix. More... | |
| #define CELL_PRECISION 0 |
| #define CELL_WIDTH 3 |
| typedef double matrix_element |
Type definition for a numeric matrix element.
| void PrintMatrix | ( | matrix_element ** | matrix, |
| size_t | size | ||
| ) |
Prints a square matrix.
| matrix | Matrix to print |
| size | Size of the matrix (rows and columns) |
| void SwapElements | ( | matrix_element * | first, |
| matrix_element * | second | ||
| ) |
Swaps two matrix elements.
| first | The first element |
| second | The element to swap with |
| void TransposeMatrix | ( | matrix_element ** | matrix, |
| size_t | size | ||
| ) |
Recieves a square matrix and transposes it in place.
| matrix | The matrix to transpose |
| size | The size of the matrix (rows and columns) |