Matrix class auxiliary functions. More...
#include <stdio.h>
#include "sp_matrix.h"
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 class auxiliary functions.
Definition in file sp_matrix.c.
MATRIX create_matrix | ( | int | rows, | |
int | cols | |||
) |
Definition at line 53 of file sp_matrix.c.
VECTOR create_vector | ( | int | elements | ) |
Definition at line 119 of file sp_matrix.c.
float cross_product | ( | MATRIX const * | m, | |
int | f1, | |||
int | c1, | |||
int | f2, | |||
int | c2 | |||
) |
Definition at line 177 of file sp_matrix.c.
int determinant | ( | MATRIX const * | m, | |
float * | result | |||
) |
Definition at line 186 of file sp_matrix.c.
void initialize_matrix | ( | MATRIX * | m, | |
int | rows, | |||
int | cols | |||
) |
Definition at line 76 of file sp_matrix.c.
void initialize_vector | ( | VECTOR * | v, | |
int | elements | |||
) |
Definition at line 140 of file sp_matrix.c.
Definition at line 214 of file sp_matrix.c.
Definition at line 271 of file sp_matrix.c.
void print_matrix | ( | char * | message, | |
MATRIX const * | m | |||
) |
Definition at line 97 of file sp_matrix.c.
void print_vector | ( | char * | message, | |
VECTOR const * | v | |||
) |
Definition at line 157 of file sp_matrix.c.