STATUS: work in progress Linear Algebra. More...
#include "definitions.h"#include "array.h"#include <gsl/gsl_matrix.h>
Go to the source code of this file.
Defines | |
| #define | mat_IDX(m, i, j) array_INDEX2( m, double, i, j ) |
| index matrix at i,j. | |
| #define | matrix_CHECK(flag, m) |
| is m a matrix? | |
| #define | matrix_CHECKSQR(flag, m) |
| is m a square matrix? | |
| #define | vec_IDX(v, i) array_INDEX1( v, double, i ) |
| index vector at i. | |
| #define | vector_CHECK(flag, v) |
| is v a vector? | |
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. | |
STATUS: work in progress Linear Algebra.
Definition in file linalg.h.
1.7.0