apop_linear_algebra.c File Reference
Functions
- double apop_det_and_inv (const gsl_matrix *in, gsl_matrix **out, int calc_det, int calc_inv)
- gsl_matrix * apop_matrix_inverse (const gsl_matrix *in)
- double apop_matrix_determinant (const gsl_matrix *in)
- apop_data * apop_matrix_pca (gsl_matrix *data, int dimensions_we_want)
- void apop_vector_increment (gsl_vector *v, int i, double amt)
- void apop_matrix_increment (gsl_matrix *m, int i, int j, double amt)
- void apop_vector_log10 (gsl_vector *v)
- void apop_vector_log (gsl_vector *v)
- void apop_vector_exp (gsl_vector *v)
- gsl_vector * apop_vector_stack (gsl_vector *v1, gsl_vector *v2, char inplace)
- gsl_matrix * apop_matrix_stack (gsl_matrix *m1, gsl_matrix *m2, char posn, char inplace)
- gsl_matrix * apop_matrix_rm_columns (gsl_matrix *in, int *drop)
- int apop_vector_bounded (const gsl_vector *in, long double max)
- apop_data * apop_dot (const apop_data *d1, const apop_data *d2, char form1, char form2)
Detailed Description
Assorted things to do with matrices, such as take determinants or do singular value decompositions. Includes many convenience functions that don't actually do math but add/delete columns, check bounds, et cetera.
Function Documentation
| gsl_matrix* apop_matrix_rm_columns |
( |
gsl_matrix * |
in, |
|
|
int * |
drop | |
|
) |
| | |
Delete columns from a matrix.
This is done via copying, so if you have an exceptionally large data set, you're better off producing the matrix in the perfect form directly.
- Parameters:
-
| in | the gsl_matrix to be subsetted |
- Returns:
- a
gsl_matrix with the specified columns removed. If you ask me to remove no columns, I'll return a copy of the original. If you ask me to remove all columns, I'll return NULL.
- Parameters:
-
| drop | an array of ints. If use[7]==1, then column seven will be cut from the output. |
Autogenerated by doxygen on 23 Nov 2009.