#include "linalg.h"
#include "helper.h"
#include <string.h>
#include <math.h>
#include <gsl/gsl_linalg.h>
Go to the source code of this file.
Functions | |
Array * | matrix_get_col (Array *m, int col) |
get a column of a matrix as vector. | |
Array * | matrix_get_row (Array *m, int row, bool alloc) |
get a row of a matrix as vector. | |
Array * | matrix_mean (Array *a, int dim) |
calculate the mean of matrix a along dimension dim. | |
Array * | matrix_mult (const Array *m1, const Array *m2) |
Matrix Multiplication. | |
Array * | matrix_pca (Array *X, Array **var, bool alloc) |
Principal Components analysis. | |
gsl_matrix * | matrix_to_gsl (Array *in, bool alloc) |
convert 2D- Array struct to gsl_matrix. | |
Array * | matrix_transpose (Array *m, bool alloc) |
Matrix transpose. |