C++ wrapper to the GSL routines involving operations with vectors and matrices. More...
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_eigen.h>
#include "gsl_vector_double.h"
#include "gsl_vector_integer.h"
#include "gsl_matrix_double.h"
#include "gsl_matrix_integer.h"
#include "gsl_permutation.h"
#include <glpk.h>
Go to the source code of this file.
Functions | |
vector | operator* (const matrix &m, const vector &v) |
Function that multiplies a vector to a matrix. | |
vector | LU_solve (const matrix &m, const vector &v) |
Function that solves a system of linear equations using LU decomposition. | |
vector | singular_values (const matrix &m) |
Function that computes the singular values of a matrix. | |
double | condition_number (const matrix &m) |
Function that computes the condition number of a matrix. | |
matrix_int | addrow (const size_t &irow, const size_t &itot, const vector_int &v) |
Function that appends a vector of integers as a row to a matrix. | |
matrix | addrow (const size_t &irow, const size_t &itot, const vector &v) |
Function that appends a vector of double precision numbers as a row to a matrix. | |
matrix | extract_cols (const matrix &m, const vector_int &v) |
Function that extracts a submatrix whose column indices are stored in a vector. | |
matrix | tridiag_eigen_solve (const vector &v1, const vector &v2) |
Function that computes the eigenvalues and eigenvectors of a symmetric tri-diagonal matrix. | |
vector | subvector_elements (const vector &v, const vector_int &index) |
Function that extracts a subvector from a vector. | |
vector | simplex_method (const matrix &A, const vector &b, const vector &c) |
Function implementing the simplex method by linking with GLPK. | |
matrix_int | glex_dtuples (size_t dim, size_t total) |
Returns a matrix containing complete GLEX set of d-tuples. |
C++ wrapper to the GSL routines involving operations with vectors and matrices.