MATRIX(3)

NAME
matrix - matrix multiplication and inversion routines invertM, invertM_ev, matrix_vector_multiply, square_matrix_invert, square_matrix_multiply, square_matrix_transpose, square_normalize_and_sort, square_singular_value_decomposition, transposed_matrix_vector_multiply

SYNOPSIS

float **invertM(nhidden, M_mmatrix, max_ratio)
int nhidden;
float **M_matrix, max_ratio;

float **invertM_ev(nhidden, M_matrix, max_ratio, eigenvalues)
int nhidden;
float **M_matrix, max_ratio, **eigenvalues;

matrix_vector_multiply (matrix, vector, result, rows, columns)
int columns, rows;
float **matrix, *result, *vector;

square_matrix_invert(ninputs, input_matrix, output_matrix,
eigenvalues, max_ratio)
int ninputs;
float **input_matrix, **output_matrix, *eigenvalues, max_ratio;

square_matrix_multiply(ninputs, input_matrix1, input_matrix2, output_matrix)
int ninputs;
float **input_matrix1, **input_matrix2, **output_matrix;

square_matrix_transpose(ninputs, input_matrix, output_matrix)
int ninputs;
float **input_matrix, **output_matrix;

square_normalize_and_sort(ninputs, eigenvectors, eigenvalues)
int ninputs;
float **eigenvectors, *eigenvalues;

square_singular_value_decomposition(input_matrix, output_matrix,
ninputs, eigenvalues)
int ninputs;
float **input_matrix, **eigenveectors, *eigenvalues;

transposed_matrix_vector_multiply(matrix,vector,result, rows,
columns)
int rows, columns;
float **matrix, *result, *vector;

DESCRIPTION
These subroutines perform matrix multiplcation, transpositions, and inversions. the routines invertM and invertM_ev were taken from Numerical Recipes in C. They use singlular value decomposition to find an inverse of tthe matrix M_matrix. invertM_ev also takes a pointer to a vector of floats. The eigenvalues found during singular value decomposition are copied into that vector

EXAMPLES

SEE ALSO