Matrix Class Reference

A standard dense matrix class. More...

#include </usr1/tp517/Tumble/trunk/src/tumble/util.h>

List of all members.

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 ()
Matrixtranspose_times_self ()
Matrixinverse ()
double * transpose_times_vector (double *)
double * times_vector (double *)
void print ()

Public Attributes

double ** m
int rows
int cols

Private Member Functions

Matrixsubmat (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)


Detailed Description

A standard dense matrix class.

Definition at line 526 of file util.h.


Constructor & Destructor Documentation

Matrix::Matrix ( int  ,
int   
)

Definition at line 295 of file util.C.

References cols, m, and rows.

Referenced by inverse(), submat(), and transpose_times_self().

Matrix::Matrix ( const Matrix  ) 

Definition at line 310 of file util.C.

References cols, m, and rows.

Matrix::~Matrix (  ) 

Definition at line 327 of file util.C.

References m, and rows.


Member Function Documentation

Matrix * Matrix::submat ( int  i,
int  j 
) [private]

Definition at line 391 of file util.C.

References cols, m, Matrix(), and rows.

Referenced by matminor().

Here is the call graph for this function:

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]

Definition at line 424 of file util.C.

References cols, and m.

Referenced by det().

double Matrix::operator() ( const int  i,
const int  j 
) const [inline]

Definition at line 544 of file util.h.

References m.

void Matrix::set ( int  i,
int  j,
double  val 
) [inline]

Definition at line 547 of file util.h.

References cols, m, and rows.

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.

References cols, m, and rows.

Referenced by QBSpline::solve_small_system(), and QBSpline::solve_system().

double * Matrix::times_vector ( double *   ) 

Definition at line 517 of file util.C.

References cols, m, and rows.

Referenced by QBSpline::solve_small_system().

void Matrix::print (  )  [inline]

Definition at line 565 of file util.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
Matrix   
) [friend]


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Mon May 24 09:53:34 2010 for TUMBLE by  doxygen 1.5.2