#include <gandalf/linalg/pseudo_inverse.h>
#include <gandalf/linalg/mat_symmetric.h>
#include <gandalf/linalg/mat_diagonal.h>
#include <gandalf/linalg/mat_triangular.h>
#include <gandalf/linalg/mat_gen.h>
#include <gandalf/linalg/vec_gen.h>
#include <gandalf/linalg/mat_lq.h>
#include <gandalf/linalg/matvec_clapack.h>
#include <gandalf/linalg/matvec_blas.h>
#include <gandalf/common/misc_error.h>
#include <gandalf/common/allocate.h>
#include <gandalf/common/compare.h>
Defines | |
#define | gel(M, i, j) gan_mat_get_el(M,i,j) |
#define | sel(M, i, j, v) gan_mat_set_el(M,i,j,v) |
#define | sgel(M, i, j) gan_squmat_get_el(M,i,j) |
#define | ssel(M, i, j, v) gan_squmat_set_el(M,i,j,v) |
#define | vgel(M, i) gan_vec_get_el(M,i) |
#define | vsel(M, i, v) gan_vec_set_el(M,i,v) |
Functions | |
Gan_PseudoInverseStruct * | gan_pseudoinv_form (Gan_PseudoInverseStruct *pis, long max_asize, long max_bsize) |
Forms a pseudo-inverse equation solving structure. | |
void | gan_pseudoinv_free (Gan_PseudoInverseStruct *pis) |
Frees a pseudo-inverse equation solving structure. | |
Gan_Bool | gan_pseudoinv_reset (Gan_PseudoInverseStruct *pis, long asize, long bsize) |
Initialises a pseudo-inverse equation solver to zero. | |
Gan_Bool | gan_pseudoinv_increment (Gan_PseudoInverseStruct *pis, double scale,...) |
Decrements a pseudo-inverse equation solver. | |
Gan_Bool | gan_pseudoinv_decrement (Gan_PseudoInverseStruct *pis, double scale,...) |
Decrements a pseudo-inverse equation solver. | |
Gan_Bool | gan_pseudoinv_set_constraint (Gan_PseudoInverseStruct *pis, Gan_Matrix *C, Gan_Matrix *D) |
Build a constraint into a system of linear equations. | |
Gan_Bool | gan_pseudoinv_set_null_space (Gan_PseudoInverseStruct *pis, int null_space) |
Sets the size of the null space in a system of linear equations. | |
Gan_Bool | gan_pseudoinv_set_ratio_thres (Gan_PseudoInverseStruct *pis, double ratio_thres) |
Sets the threshold on singular value ratios. | |
Gan_Bool | gan_pseudoinv_set_low_values_allowed (Gan_PseudoInverseStruct *pis, int low_values_allowed) |
Sets the number of allowed low singular values. | |
Gan_Bool | gan_pseudoinv_solve (Gan_PseudoInverseStruct *pis, int *error_code) |
Solve an accumulated system of linear equations. | |
Gan_Matrix * | gan_pseudoinv_get_solution (Gan_PseudoInverseStruct *pis) |
Return solution of an accumulated system of linear equations. | |
Gan_Vector * | gan_pseudoinv_get_null_vector (Gan_PseudoInverseStruct *pis) |
Return a null vector from the solution space. |
Part of: Gandalf Library