#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <gandalf/common/misc_defs.h>
#include <gandalf/linalg/linalg_defs.h>
#include <gandalf/linalg/vecf_gen.h>
#include <gandalf/linalg/matf_gen.h>
Go to the source code of this file.
Classes | |
struct | Gan_SquMatrixFFuncs |
Structure containing type-specific functions. More... | |
struct | Gan_SquMatrix_f |
Structure definition for single precision general size square matrix. More... | |
Typedefs | |
typedef Gan_SquMatrixFFuncs | Gan_SquMatrixFFuncs |
Structure containing type-specific functions. | |
typedef Gan_SquMatrix_f | Gan_SquMatrix_f |
Structure definition for single precision general size square matrix. | |
Functions | |
Gan_SquMatrix_f * | gan_squmatf_alloc (Gan_SquMatrixType type, unsigned long size) |
Macro: Allocate and return a square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_form (Gan_SquMatrix_f *A, Gan_SquMatrixType type, unsigned long size) |
Macro: Form and return a square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_form_data (Gan_SquMatrix_f *A, Gan_SquMatrixType type, unsigned long size, float *data, size_t data_size) |
Macro: Form and return a square symmetric matrix. | |
Gan_Bool | gan_squmatf_set_el (Gan_SquMatrix_f *A, unsigned row, unsigned col, float value) |
Macro: Set specific element of square matrix. | |
float | gan_squmatf_get_el (const Gan_SquMatrix_f *A, unsigned row, unsigned col) |
Macro: Get specific element of square matrix. | |
Gan_Bool | gan_squmatf_inc_el (Gan_SquMatrix_f *A, unsigned row, unsigned col, float value) |
Macro: Increment specific element of square matrix by given value. | |
Gan_Bool | gan_squmatf_dec_el (Gan_SquMatrix_f *A, unsigned row, unsigned col, float value) |
Macro: Decrement specific element of square matrix by given value. | |
Gan_Bool | gan_squmatf_fprint (FILE *fp, const Gan_SquMatrix_f *A, const char *prefix, int indent, const char *fmt) |
Macro: Print square matrix to file pointer. | |
Gan_Bool | gan_squmatf_print (const Gan_SquMatrix_f *A, const char *prefix, int indent, const char *fmt) |
Macro: Print square matrix to standard output. | |
Gan_SquMatrix_f * | gan_squmatf_fill_const_s (Gan_SquMatrixType type, unsigned long size, float value) |
Macro: Allocates a square matrix and fills it with a value. | |
Gan_SquMatrix_f * | gan_squmatf_fill_zero_q (Gan_SquMatrix_f *A, Gan_SquMatrixType type, unsigned long size) |
Macro: Sets the size of square matrix, and fills it with zero. | |
Gan_SquMatrix_f * | gan_squmatf_fill_zero_s (Gan_SquMatrixType type, unsigned long size) |
Macro: Allocates a square matrix and fills it with zero. | |
Gan_SquMatrix_f * | gan_squmatf_copy_q (const Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Copy square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_copy_s (const Gan_SquMatrix_f *A) |
Macro: Copy square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_scale_q (Gan_SquMatrix_f *A, float a, Gan_SquMatrix_f *B) |
Macro: Multiply square matrix by scalar. | |
Gan_SquMatrix_f * | gan_squmatf_scale_s (Gan_SquMatrix_f *A, float a) |
Macro: Multiply square matrix by scalar. | |
Gan_SquMatrix_f * | gan_squmatf_scale_i (Gan_SquMatrix_f *A, float a) |
Macro: Multiply square matrix by scalar. | |
Gan_SquMatrix_f * | gan_squmatf_divide_q (Gan_SquMatrix_f *A, float a, Gan_SquMatrix_f *B) |
Macro: Divide square matrix by scalar. | |
Gan_SquMatrix_f * | gan_squmatf_divide_s (Gan_SquMatrix_f *A, float a) |
Macro: Divide square matrix by scalar. | |
Gan_SquMatrix_f * | gan_squmatf_divide_i (Gan_SquMatrix_f *A, float a) |
Macro: Divide square matrix by scalar. | |
Gan_SquMatrix_f * | gan_squmatf_negate_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Negate square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_negate_s (Gan_SquMatrix_f *A) |
Macro: Negate square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_negate_i (Gan_SquMatrix_f *A) |
Macro: Negate square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_add_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B, Gan_SquMatrix_f *C) |
Macro: Add two square matrices. | |
Gan_SquMatrix_f * | gan_squmatf_add_s (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Add two square matrices and return the result as a new matrix. | |
Gan_SquMatrix_f * | gan_squmatf_add_i1 (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Add two square matrices and overwrite the first with the result. | |
Gan_SquMatrix_f * | gan_squmatf_add_i2 (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Add two square matrices and overwrite the second with the result. | |
Gan_SquMatrix_f * | gan_squmatf_increment (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Increment a square matrix with another square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_addT_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B, Gan_SquMatrix_f *C) |
Macro: Add two square matrices, the second transposed. | |
Gan_SquMatrix_f * | gan_squmatf_addT_s (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Add two square matrices, the second transposed. | |
Gan_SquMatrix_f * | gan_squmatf_incrementT (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Increment a square matrix with the transpose of another square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_sub_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B, Gan_SquMatrix_f *C) |
Macro: Subtract two square matrices and write result into a third. | |
Gan_SquMatrix_f * | gan_squmatf_sub_s (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Subtract two square matrices and return the result as a new square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_sub_i1 (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Subtract two square matrices and overwrite the first with the result. | |
Gan_SquMatrix_f * | gan_squmatf_sub_i2 (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Subtract two square matrices and overwrite the second with the result. | |
Gan_SquMatrix_f * | gan_squmatf_decrement (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Decrement a square matrix with another square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_subT_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B, Gan_SquMatrix_f *C) |
Macro: Subtract two square matrices, the second transposed. | |
Gan_SquMatrix_f * | gan_squmatf_subT_s (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Subtract two square matrices, the second transposed. | |
Gan_SquMatrix_f * | gan_squmatf_decrementT (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Decrement a square matrix with the transpose of another square matrix. | |
Gan_Vector_f * | gan_squmatf_multv_q (const Gan_SquMatrix_f *A, Gan_Vector_f *x, Gan_Vector_f *y) |
Macro: Multiply square matrix by a vector, writing the result into another vector. | |
Gan_Vector_f * | gan_squmatf_multv_s (const Gan_SquMatrix_f *A, Gan_Vector_f *x) |
Macro: Multiply square matrix by a vector, returning the result as a new vector. | |
Gan_Vector_f * | gan_squmatf_multv_i (const Gan_SquMatrix_f *A, Gan_Vector_f *x) |
Macro: Multiply square matrix by a vector, overwriting the vector with the result. | |
Gan_Vector_f * | gan_squmatTf_multv_q (const Gan_SquMatrix_f *A, Gan_Vector_f *x, Gan_Vector_f *y) |
Macro: Multiply the transpose of a square matrix by a vector. | |
Gan_Vector_f * | gan_squmatTf_multv_s (const Gan_SquMatrix_f *A, Gan_Vector_f *x) |
Macro: Multiply transpose of square matrix by a vector. | |
Gan_Vector_f * | gan_squmatTf_multv_i (const Gan_SquMatrix_f *A, Gan_Vector_f *x) |
Macro: Multiply transpose of square matrix by a vector. | |
Gan_Vector_f * | gan_squmatIf_multv_q (const Gan_SquMatrix_f *A, Gan_Vector_f *x, Gan_Vector_f *y) |
Macro: Multiply inverse of square matrix by a vector. | |
Gan_Vector_f * | gan_squmatIf_multv_s (const Gan_SquMatrix_f *A, Gan_Vector_f *x) |
Macro: Multiply inverse of square matrix by a vector. | |
Gan_Vector_f * | gan_squmatIf_multv_i (const Gan_SquMatrix_f *A, Gan_Vector_f *x) |
Macro: Multiply inverse of square matrix by a vector. | |
Gan_Vector_f * | gan_squmatITf_multv_q (const Gan_SquMatrix_f *A, Gan_Vector_f *x, Gan_Vector_f *y) |
Macro: Multiply the inverse transpose of a square matrix by a vector. | |
Gan_Vector_f * | gan_squmatITf_multv_s (const Gan_SquMatrix_f *A, Gan_Vector_f *x) |
Macro: Multiply inverse transpose of square matrix by a vector. | |
Gan_Vector_f * | gan_squmatITf_multv_i (const Gan_SquMatrix_f *A, Gan_Vector_f *x) |
Macro: Multiply inverse transpose of square matrix by a vector. | |
Gan_Matrix_f * | gan_squmatf_rmult_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply square matrix by generic matrix, and write result into a third. | |
Gan_Matrix_f * | gan_squmatf_rmult_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatf_rmult_i (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatf_rmultT_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply square matrix by transpose of generic matrix. | |
Gan_Matrix_f * | gan_squmatf_rmultT_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply square matrix by transpose of generic matrix. | |
Gan_Matrix_f * | gan_squmatTf_rmult_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply transpose of square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatTf_rmult_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply transpose of square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatTf_rmult_i (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply transpose of square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatTf_rmultT_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply transpose of square matrix by transpose of generic matrix. | |
Gan_Matrix_f * | gan_squmatTf_rmultT_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply transpose of square matrix by transpose of generic matrix. | |
Gan_Matrix_f * | gan_squmatIf_rmult_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply inverse of square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatIf_rmult_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply inverse of square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatIf_rmult_i (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply inverse of square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatIf_rmultT_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply inverse of square matrix by transpose of generic matrix. | |
Gan_Matrix_f * | gan_squmatIf_rmultT_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply inverse of square matrix by transpose of generic matrix. | |
Gan_Matrix_f * | gan_squmatITf_rmult_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply inverse transpose of square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatITf_rmult_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply inverse transpose of square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatITf_rmult_i (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply inverse transpose of square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatITf_rmultT_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply inverse transpose of square matrix by transpose of generic matrix. | |
Gan_Matrix_f * | gan_squmatITf_rmultT_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply inverse transpose of square matrix by transpose of generic matrix. | |
Gan_Matrix_f * | gan_squmatf_lmult_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply generic matrix by square matrix, and write result into a third. | |
Gan_Matrix_f * | gan_squmatf_lmult_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply generic matrix by square matrix. | |
Gan_Matrix_f * | gan_squmatf_lmult_i (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply generic matrix by square matrix. | |
Gan_Matrix_f * | gan_squmatf_lmultT_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply transpose of generic matrix by square matrix. | |
Gan_Matrix_f * | gan_squmatf_lmultT_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply transpose of generic matrix by square matrix. | |
Gan_Matrix_f * | gan_squmatTf_lmult_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply generic matrix by the transpose of square matrix. | |
Gan_Matrix_f * | gan_squmatTf_lmult_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply generic matrix by transpose of square matrix. | |
Gan_Matrix_f * | gan_squmatTf_lmult_i (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply transpose of square matrix by generic matrix. | |
Gan_Matrix_f * | gan_squmatTf_lmultT_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply transpose of generic matrix by transpose of square matrix. | |
Gan_Matrix_f * | gan_squmatTf_lmultT_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply transpose of generic matrix by transpose of square matrix. | |
Gan_Matrix_f * | gan_squmatIf_lmult_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply generic matrix by inverse of square matrix. | |
Gan_Matrix_f * | gan_squmatIf_lmult_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply generic matrix by inverse of square matrix. | |
Gan_Matrix_f * | gan_squmatIf_lmult_i (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply generic matrix by inverse of square matrix. | |
Gan_Matrix_f * | gan_squmatIf_lmultT_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply transpose of generic matrix by inverse of square matrix. | |
Gan_Matrix_f * | gan_squmatIf_lmultT_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply transpose of generic matrix by inverse of square matrix. | |
Gan_Matrix_f * | gan_squmatITf_lmult_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply generic matrix by inverse transpose of square matrix. | |
Gan_Matrix_f * | gan_squmatITf_lmult_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply generic matrix by inverse transpose of square matrix. | |
Gan_Matrix_f * | gan_squmatITf_lmult_i (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply generic matrix by inverse transpose of square matrix. | |
Gan_Matrix_f * | gan_squmatITf_lmultT_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B, Gan_Matrix_f *C) |
Macro: Multiply transpose of generic matrix by inverse transpose of square matrix. | |
Gan_Matrix_f * | gan_squmatITf_lmultT_s (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Multiply transpose of generic matrix by inverse transpose of square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_srmultT_squ_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Right-multiply square matrix by its own transpose. | |
Gan_SquMatrix_f * | gan_squmatf_srmultT_squ_s (Gan_SquMatrix_f *A) |
Macro: Right-multiply square matrix by its own transpose. | |
Gan_SquMatrix_f * | gan_squmatf_srmultT_squ_i (Gan_SquMatrix_f *A) |
Macro: Right-multiply square matrix by its own transpose. | |
Gan_SquMatrix_f * | gan_squmatTf_srmult_squ_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Right-multiply transpose of square matrix by itself. | |
Gan_SquMatrix_f * | gan_squmatTf_srmult_squ_s (Gan_SquMatrix_f *A) |
Macro: Right-multiply transpose of square matrix by itself. | |
Gan_SquMatrix_f * | gan_squmatTf_srmult_squ_i (Gan_SquMatrix_f *A) |
Macro: Right-multiply transpose of square matrix by itself. | |
Gan_SquMatrix_f * | gan_squmatIf_srmultIT_squ_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Right-multiply inverse of square matrix by its inverse transpose. | |
Gan_SquMatrix_f * | gan_squmatIf_srmultIT_squ_s (Gan_SquMatrix_f *A) |
Macro: Right-multiply inverse of square matrix by its inverse transpose. | |
Gan_SquMatrix_f * | gan_squmatIf_srmultIT_squ_i (Gan_SquMatrix_f *A) |
Macro: Right-multiply inverse of square matrix by its inverse transpose. | |
Gan_SquMatrix_f * | gan_squmatITf_srmultI_squ_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Self-multiply inverse transpose by inverse of square matrix. | |
Gan_SquMatrix_f * | gan_squmatITf_srmultI_squ_s (Gan_SquMatrix_f *A) |
Macro: Self-multiply inverse transpose by inverse of square matrix. | |
Gan_SquMatrix_f * | gan_squmatITf_srmultI_squ_i (Gan_SquMatrix_f *A) |
Macro: Self-multiply inverse transpose by inverse of square matrix. | |
Gan_SquMatrix_f * | gan_symmatf_lrmult_q (Gan_SquMatrix_f *A, const Gan_Matrix_f *B, const Gan_Matrix_f *C, Gan_SquMatrix_f *D) |
Macro: Multiply symmetric matrix on left and right by generic matrix and transpose. | |
Gan_SquMatrix_f * | gan_symmatf_lrmult_s (Gan_SquMatrix_f *A, const Gan_Matrix_f *B, const Gan_Matrix_f *C) |
Macro: Multiply symmetric matrix on left and right by generic matrix and transpose. | |
Gan_SquMatrix_f * | gan_symmatf_lrmultT_q (Gan_SquMatrix_f *A, const Gan_Matrix_f *B, const Gan_Matrix_f *C, Gan_SquMatrix_f *D) |
Macro: Multiply symmetric matrix on left and right by generic matrix and transpose. | |
Gan_SquMatrix_f * | gan_symmatf_lrmultT_s (Gan_SquMatrix_f *A, const Gan_Matrix_f *B, const Gan_Matrix_f *C) |
Macro: Multiply symmetric matrix on left and right by generic matrix and transpose. | |
Gan_SquMatrix_f * | gan_squmatf_invert_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *B) |
Macro: Apply matrix inversion. | |
Gan_SquMatrix_f * | gan_squmatf_invert_s (Gan_SquMatrix_f *A) |
Macro: Apply matrix inversion. | |
Gan_SquMatrix_f * | gan_squmatf_invert_i (Gan_SquMatrix_f *A) |
Macro: Apply matrix inversion. | |
Gan_SquMatrix_f * | gan_squmatf_cholesky_q (Gan_SquMatrix_f *A, Gan_SquMatrix_f *L) |
Macro: Apply Cholesky factorisation. | |
Gan_SquMatrix_f * | gan_squmatf_cholesky_s (Gan_SquMatrix_f *A) |
Macro: Apply Cholesky factorisation. | |
Gan_SquMatrix_f * | gan_squmatf_cholesky_i (Gan_SquMatrix_f *A) |
Macro: Apply Cholesky factorisation. | |
float | gan_squmatf_sumsqr (Gan_SquMatrix_f *A) |
Macro: Squared Frobenius norm of square matrix. | |
float | gan_squmatf_Fnorm (Gan_SquMatrix_f *A) |
Macro: Frobenius norm of square matrix. | |
Gan_Matrix_f * | gan_matf_from_squmatf_q (const Gan_SquMatrix_f *A, Gan_Matrix_f *B) |
Macro: Convert square matrix to generic matrix. | |
Gan_Matrix_f * | gan_matf_from_squmatf_s (const Gan_SquMatrix_f *A) |
Macro: Convert square matrix to generic matrix. | |
Gan_Bool | gan_squmatf_same_type (const Gan_SquMatrix_f *A, const Gan_SquMatrix_f *B) |
Macro: Checks that two square matrices have the same type. | |
Gan_Bool | gan_squmatf_same_size (const Gan_SquMatrix_f *A, const Gan_SquMatrix_f *B) |
Macro: Checks that two square matrices have the same size. | |
Gan_Bool | gan_squmatf_same_type_size (const Gan_SquMatrix_f *A, const Gan_SquMatrix_f *B) |
Macro: Checks that two square matrices have the same type and size. | |
Gan_SquMatrix_f * | gan_squmatf_set_type (Gan_SquMatrix_f *A, Gan_SquMatrixType type) |
Macro: Set type of square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_set_size (Gan_SquMatrix_f *A, unsigned long size) |
Macro: Set size of square matrix. | |
Gan_Bool | gan_squmatf_test_size (const Gan_Matrix_f *A, unsigned long size) |
Macro: Test size of square matrix. | |
Gan_Bool | gan_squmatf_symmetric_type (const Gan_SquMatrix_f *A) |
Macro: Test whether square matrix has symmetric type. | |
Gan_Bool | gan_squmatf_diagonal_type (const Gan_SquMatrix_f *A) |
Macro: Test whether square matrix has diagonal type. | |
Gan_Bool | gan_squmatf_symmetric (const Gan_SquMatrix_f *A) |
Macro: Test whether square matrix is symmetric. | |
Gan_Bool | gan_squmatf_diagonal (const Gan_SquMatrix_f *A) |
Macro: Test whether square matrix is diagonal. | |
Gan_SquMatrix_f * | gan_squmatf_fscanf_s (FILE *fp, const char *prefix, int prefix_len) |
Macro: Read square matrix from ASCII file. | |
Gan_SquMatrix_f * | gan_squmatf_fread_s (FILE *fp, gan_uint32 *magic_number) |
Macro: Read square matrix from binary file. Read square matrix from file pointer fp in binary format. The magic number for the matrix is read from the file into the provided pointer. | |
void | gan_squmatf_free (Gan_SquMatrix_f *A) |
Function to free square matrix. | |
void | gan_squmatf_free_va (Gan_SquMatrix_f *A,...) |
Free a NULL terminated variable argument list of square matrices. | |
Gan_SquMatrix_f * | gan_squmatf_set_type_size (Gan_SquMatrix_f *A, Gan_SquMatrixType type, unsigned long size) |
Set type and size of square matrix. | |
Gan_SquMatrix_f * | gan_squmatf_fill_vap (Gan_SquMatrix_f *A, Gan_SquMatrixType type, unsigned long size, va_list *aptr) |
Fill square matrix from variable argument list. | |
Gan_SquMatrix_f * | gan_squmatf_fill_const_q (Gan_SquMatrix_f *A, Gan_SquMatrixType type, unsigned long size, float value) |
Fill square matrix with constant value. | |
size_t | gan_squmatf_data_size (Gan_SquMatrixType type, unsigned long size) |
Returns size of data array needed to create a matrix of given type & size. | |
Gan_SquMatrix_f * | gan_squmatf_fscanf_q (FILE *fp, Gan_SquMatrix_f *A, char *prefix, int prefix_len) |
Read square matrix from ASCII file. | |
Gan_Bool | gan_squmatf_fwrite (FILE *fp, const Gan_SquMatrix_f *A, gan_uint32 magic_number) |
Write square matrix to binary file. | |
Gan_SquMatrix_f * | gan_squmatf_fread_q (FILE *fp, Gan_SquMatrix_f *A, gan_uint32 *magic_number) |
Read square matrix from binary file. | |
Gan_SquMatrix_f * | gan_squmatf_form_gen (Gan_SquMatrix_f *A, Gan_SquMatrixType type, unsigned long size, float *data, size_t data_size) |
void | gan_squmatf_free_func (Gan_SquMatrix_f *A) |
Part of: Gandalf Library