Go to the source code of this file.
Functions | |
MATRIX | create_matrix (int rows, int cols) |
VECTOR | create_vector (int elements) |
float | cross_product (MATRIX const *m, int f1, int c1, int f2, int c2) |
int | determinant (MATRIX const *m, float *result) |
void | initialize_matrix (MATRIX *m, int rows, int cols) |
void | initialize_vector (VECTOR *v, int elements) |
int | inverse_matrix (MATRIX const *m, MATRIX *n) |
int | multiply_matrix_vector (MATRIX const *m, VECTOR const *v, VECTOR *r) |
void | print_matrix (char *message, MATRIX const *m) |
void | print_vector (char *message, VECTOR const *v) |
MATRIX create_matrix | ( | int | rows, |
int | cols | ||
) |
Definition at line 5 of file sp_matrix.c.
VECTOR create_vector | ( | int | elements | ) |
Definition at line 71 of file sp_matrix.c.
float cross_product | ( | MATRIX const * | m, |
int | f1, | ||
int | c1, | ||
int | f2, | ||
int | c2 | ||
) |
Definition at line 129 of file sp_matrix.c.
int determinant | ( | MATRIX const * | m, |
float * | result | ||
) |
Definition at line 138 of file sp_matrix.c.
void initialize_matrix | ( | MATRIX * | m, |
int | rows, | ||
int | cols | ||
) |
Definition at line 28 of file sp_matrix.c.
void initialize_vector | ( | VECTOR * | v, |
int | elements | ||
) |
Definition at line 92 of file sp_matrix.c.
int inverse_matrix | ( | MATRIX const * | m, |
MATRIX * | n | ||
) |
Definition at line 166 of file sp_matrix.c.
int multiply_matrix_vector | ( | MATRIX const * | m, |
VECTOR const * | v, | ||
VECTOR * | r | ||
) |
Definition at line 223 of file sp_matrix.c.
void print_matrix | ( | char * | message, |
MATRIX const * | m | ||
) |
Definition at line 49 of file sp_matrix.c.
void print_vector | ( | char * | message, |
VECTOR const * | v | ||
) |
Definition at line 109 of file sp_matrix.c.