Functions

src/linalg.c File Reference

#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

Arraymatrix_get_col (Array *m, int col)
 get a column of a matrix as vector.
Arraymatrix_get_row (Array *m, int row, bool alloc)
 get a row of a matrix as vector.
Arraymatrix_mean (Array *a, int dim)
 calculate the mean of matrix a along dimension dim.
Arraymatrix_mult (const Array *m1, const Array *m2)
 Matrix Multiplication.
Arraymatrix_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.
Arraymatrix_transpose (Array *m, bool alloc)
 Matrix transpose.