#include </usr1/tp517/Tumble/trunk/src/tumble/util.h>
Public Member Functions | |
Matrix (int, int) | |
Matrix (const Matrix &) | |
~Matrix () | |
double | operator() (const int i, const int j) const |
void | set (int i, int j, double val) |
double | det () |
Matrix * | transpose_times_self () |
Matrix * | inverse () |
double * | transpose_times_vector (double *) |
double * | times_vector (double *) |
void | print () |
Public Attributes | |
double ** | m |
int | rows |
int | cols |
Private Member Functions | |
Matrix * | submat (int i, int j) |
double | matminor (int i, int j) |
double | cofactor (int i, int j) |
int | lu_decompose (int *P) |
Friends | |
std::ostream & | operator<< (std::ostream &, Matrix) |
Definition at line 526 of file util.h.
Matrix::Matrix | ( | int | , | |
int | ||||
) |
Matrix::Matrix | ( | const Matrix & | ) |
Matrix * Matrix::submat | ( | int | i, | |
int | j | |||
) | [private] |
double Matrix::matminor | ( | int | i, | |
int | j | |||
) | [private] |
Definition at line 408 of file util.C.
References det(), and submat().
Referenced by cofactor().
Here is the call graph for this function:
double Matrix::cofactor | ( | int | i, | |
int | j | |||
) | [private] |
Definition at line 418 of file util.C.
References m, and matminor().
Here is the call graph for this function:
int Matrix::lu_decompose | ( | int * | P | ) | [private] |
double Matrix::operator() | ( | const int | i, | |
const int | j | |||
) | const [inline] |
void Matrix::set | ( | int | i, | |
int | j, | |||
double | val | |||
) | [inline] |
double Matrix::det | ( | ) |
Definition at line 472 of file util.C.
References lu_decompose(), m, and rows.
Referenced by matminor().
Here is the call graph for this function:
Matrix * Matrix::transpose_times_self | ( | ) |
Definition at line 334 of file util.C.
References cols, m, Matrix(), and rows.
Referenced by _wrap_Matrix_transpose_times_self(), QBSpline::solve_small_system(), and QBSpline::solve_system().
Here is the call graph for this function:
Matrix * Matrix::inverse | ( | ) |
Definition at line 358 of file util.C.
References cols, m, Matrix(), and rows.
Referenced by _wrap_Matrix_inverse(), and QBSpline::solve_small_system().
Here is the call graph for this function:
double * Matrix::transpose_times_vector | ( | double * | ) |
Definition at line 502 of file util.C.
Referenced by QBSpline::solve_small_system(), and QBSpline::solve_system().
double * Matrix::times_vector | ( | double * | ) |
std::ostream& operator<< | ( | std::ostream & | , | |
Matrix | ||||
) | [friend] |
double** Matrix::m |
Definition at line 535 of file util.h.
Referenced by cofactor(), QBSpline::compute_new_points(), det(), inverse(), lu_decompose(), Matrix(), Matrix5::Matrix5(), operator()(), operator<<(), set(), QBSpline::solve_system(), submat(), times_vector(), transpose_times_self(), transpose_times_vector(), and ~Matrix().
int Matrix::rows |
Definition at line 536 of file util.h.
Referenced by det(), inverse(), Matrix(), Matrix5::Matrix5(), operator<<(), set(), submat(), times_vector(), transpose_times_self(), transpose_times_vector(), and ~Matrix().
int Matrix::cols |
Definition at line 536 of file util.h.
Referenced by inverse(), lu_decompose(), Matrix(), Matrix5::Matrix5(), operator<<(), set(), submat(), times_vector(), transpose_times_self(), and transpose_times_vector().