1 #ifndef GRASS_LADEFSDEFS_H 2 #define GRASS_LADEFSDEFS_H
int G_vector_set(vec_struct *, int, int, vtype, int)
Set parameters for vector structure.
double G_matrix_get_element(mat_struct *, int, int)
Retrieve value of the (i,j)th element.
mat_struct * G__matrix_add(mat_struct *, mat_struct *, const double, const double)
General add/subtract/scalar multiply routine.
int G_matvect_retrieve_matrix(vec_struct *)
Revert a vector to matrix.
void G_vector_free(vec_struct *)
Free an allocated vector structure.
vec_struct * G_matvect_get_column(mat_struct *, int)
Retrieve a column of the matrix to a vector structure.
mat_struct * G_matrix_transpose(mat_struct *)
Transpose a matrix.
double G_vector_norm1(vec_struct *)
Calculates the 1-norm of a vector.
int G_matrix_stdin(mat_struct *)
int G_matvect_extract_vector(mat_struct *, vtype, int)
Convert matrix to vector.
vec_struct * G_matvect_product(mat_struct *, vec_struct *, vec_struct *)
Calculates the matrix-vector product.
mat_struct * G_matrix_subtract(mat_struct *, mat_struct *)
Subtract two matricies.
mat_struct * G_matrix_scalar_mul(double, mat_struct *, mat_struct *)
Calculates the scalar-matrix multiplication.
mat_struct * G_matrix_resize(mat_struct *, int, int)
Resizes a matrix.
mat_struct * G_matrix_inverse(mat_struct *)
Returns the matrix inverse.
double G_vector_norm_euclid(vec_struct *)
Calculates euclidean norm.
int G_matrix_eigen_sort(vec_struct *, mat_struct *)
Sort eigenvectors according to eigenvalues.
int G_matrix_LU_solve(const mat_struct *, mat_struct **, const mat_struct *, mat_type)
Solve a general system A.X = B.
mat_struct * G_matrix_init(int, int, int)
Initialize a matrix structure.
int G_matrix_set_element(mat_struct *, int, int, double)
Set the value of the (i, j)th element.
int G_matrix_zero(mat_struct *)
Clears (or resets) the matrix values to 0.
mat_struct * G_matrix_copy(const mat_struct *)
Copy a matrix.
mat_struct * G_matrix_add(mat_struct *, mat_struct *)
Adds two matricies.
vec_struct * G_vector_product(vec_struct *, vec_struct *, vec_struct *)
Calculates the vector product.
mat_struct * G_matrix_product(mat_struct *, mat_struct *)
Returns product of two matricies.
int G_matrix_read(FILE *, mat_struct *)
Read a matrix from a file stream.
vec_struct * G_matvect_get_row(mat_struct *, int)
Retrieve a row of the matrix to a vector structure.
vec_struct * G_vector_init(int, int, vtype)
Initialize a vector structure.
void G_matrix_free(mat_struct *)
Free up allocated matrix.
vec_struct * G_vector_sub(vec_struct *, vec_struct *, vec_struct *)
Subtract two vectors.
double G_vector_norm_maxval(vec_struct *, int)
Calculates maximum value.
vec_struct * G_vector_copy(const vec_struct *, int)
Returns a vector copied from vc1. Underlying structure is preserved unless DO_COMPACT flag...
mat_struct * G_matrix_scale(mat_struct *, const double)
Scale a matrix by a scalar value.
int G_matrix_set(mat_struct *, int, int, int)
Set parameters for an initialized matrix.
void G_matrix_print(mat_struct *)
Print out a matrix.