#include <stdarg.h>
#include <gandalf/linalg/vec_gen.h>
#include <gandalf/linalg/mat_gen.h>
#include <gandalf/linalg/mat_symmetric.h>
#include <gandalf/linalg/clapack.h>
#include <gandalf/linalg/cblas.h>
#include <gandalf/common/allocate.h>
#include <gandalf/common/misc_error.h>
#include <gandalf/common/endian_io.h>
Functions | |
Gan_Bool | gan_vec_realloc (Gan_Vector *x, unsigned long rows) |
void | gan_vec_free (Gan_Vector *x) |
Free a vector. | |
Gan_Vector * | gan_vec_set_size (Gan_Vector *x, unsigned long rows) |
Set size of vector. | |
Gan_Vector * | gan_vec_fill_va (Gan_Vector *x, unsigned long rows,...) |
Fill vector from variable argument list. | |
Gan_Vector * | gan_vec_fill_vap (Gan_Vector *x, unsigned long rows, va_list *aptr) |
Fill vector from variable argument list. | |
Gan_Vector * | gan_vec_fill_const_q (Gan_Vector *x, unsigned long rows, double value) |
Fill all elements of a vector with the same value. | |
Gan_Bool | gan_vec_read_va (const Gan_Vector *x, unsigned long rows,...) |
Read vector from variable argument list. | |
Gan_Vector * | gan_vec_copy_q (const Gan_Vector *x, Gan_Vector *y) |
Copy vector. | |
Gan_Vector * | gan_vec_scale_q (Gan_Vector *x, double a, Gan_Vector *y) |
Multiply vector by scalar. | |
Gan_Vector * | gan_vec_add_q (Gan_Vector *x, Gan_Vector *y, Gan_Vector *z) |
Add two vectors and write result into a third. | |
Gan_Vector * | gan_vec_sub_q (Gan_Vector *x, Gan_Vector *y, Gan_Vector *z) |
Subtract two vectors and write result into a third. | |
double | gan_vec_dot (const Gan_Vector *x, const Gan_Vector *y) |
Vector dot product. | |
Gan_Matrix * | gan_vec_outer_q (const Gan_Vector *x, const Gan_Vector *y, Gan_Matrix *A) |
Vector outer product. | |
Gan_SquMatrix * | gan_vec_outer_sym_q (const Gan_Vector *x, Gan_SquMatrix *A) |
Vector outer product with self. | |
Gan_Vector * | gan_vec_insert (Gan_Vector *x, unsigned long rx, const Gan_Vector *y, unsigned long ry, unsigned long rows) |
Insert part of vector in another vector. | |
Gan_Vector * | gan_vec_insert_mat (Gan_Vector *x, unsigned long rx, const Gan_Matrix *A, unsigned long ra, unsigned long ca, unsigned long rows) |
Insert part of a column of a matrix in a vector. | |
Gan_Vector * | gan_vec_insert_matT (Gan_Vector *x, unsigned long rx, const Gan_Matrix *A, unsigned long ra, unsigned long ca, unsigned long rows) |
Insert part of a row of a matrix in a vector. | |
void | gan_vec_free_va (Gan_Vector *x,...) |
Free a NULL terminated variable argument list of vectors. | |
Gan_Vector * | gan_vec_form_gen (Gan_Vector *x, unsigned long rows, double *data, size_t data_size) |
Gan_Bool | gan_vec_fprint (FILE *fp, const Gan_Vector *x, const char *prefix, int indent, const char *fmt) |
Print vector to file pointer. | |
Gan_Vector * | gan_vec_fscanf_q (FILE *fp, Gan_Vector *x, char *prefix, int prefix_len) |
Read vector from file. | |
Gan_Bool | gan_vec_fwrite (FILE *fp, const Gan_Vector *x, gan_uint32 magic_number) |
Print vector to binary file pointer. | |
Gan_Vector * | gan_vec_fread_q (FILE *fp, Gan_Vector *x, gan_uint32 *magic_number) |
Read vector from file. | |
void | gan_vec_db (const Gan_Vector *x) |
Part of: Gandalf Library