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 
12 {
14 };
15 
25 enum matrix_type TransposeMatrix(matrix_element **matrix, size_t size);
26 
33 void SwapElements(matrix_element *first, matrix_element *second);
34 
41 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
matrix_type
enum for matrix types
Definition: Transpose.h:12
@ SKEW_SYMMETRIC
Definition: Transpose.h:13
@ SYMMETRIC
Definition: Transpose.h:13
@ NONE
Definition: Transpose.h:13