C Workshop
Transpose.h
Go to the documentation of this file.
1 #include <stdio.h>
2 #define CELL_WIDTH 3
3 #define CELL_PRECISION 0
4 
6 
8 typedef double matrix_element;
9 
16 void TransposeMatrix(matrix_element **matrix, size_t size);
17 
24 void SwapElements(matrix_element *first, matrix_element *second);
25 
32 void PrintMatrix(matrix_element **matrix, size_t size);
void SwapElements(matrix_element *first, matrix_element *second)
Swaps two matrix elements.
Definition: Transpose.c:16
double matrix_element
Type definition for a numeric matrix element.
Definition: Transpose.h:8
void PrintMatrix(matrix_element **matrix, size_t size)
Prints a square matrix.
Definition: Transpose.c:23
void TransposeMatrix(matrix_element **matrix, size_t size)
Recieves a square matrix and transposes it in place.
Definition: Transpose.c:4