-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatrixLib.h
18 lines (17 loc) · 1.79 KB
/
matrixLib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
float *returnVector(int size); // tested
float **returnMatrix(int row, int col); // tested
void freeMatrix(float **mat, int row); // tested
float mean(float *vec, int size); // tested
float correlation(float *vec, float *vec2, int size); // tested
float covariance(float *vec1, float *vec2, int size); // tested
float **matrixMultiplication(float **mat1, float **mat2, int row1, int col1, int row2, int col2); // tested
float **matrixTranspose(float **mat, int row, int col); // tested
float *rowMeans(float **mat, int row, int col); // tested
float *columnMeans(float **mat, int row, int col); // tested
float **covarianceMatrix(float **mat, int row, int col); // tested
float determinant(float **mat, int row); // tested
void printVector(float *vec, int N); // tested
void printMatrix(float **mat, int row, int col); // tested
float calculateVariance(float *vec, int row); // tested
void fillVector(float *vec, int size, int seed); // tested
void fillMatrix(float **mat, int row, int col, int seed); // tested