Flow123d  release_2.1.0-87-gfbc1563
Public Member Functions | Private Attributes | Friends | List of all members
TMatrix Class Reference

#include <matrix.h>

Public Member Functions

 TMatrix (int)
 
 TMatrix (const TMatrix &)
 
 TMatrix (int, int)
 
 ~TMatrix ()
 
int NRows () const
 
int NCols () const
 
void Set (int, int, double)
 
double Get (int, int) const
 
void SwapRows (int, int)
 

Private Attributes

int nc
 
int nr
 
double * elm
 

Friends

std::ostream & operator<< (std::ostream &, const TMatrix &)
 

Detailed Description

Definition at line 31 of file matrix.h.

Constructor & Destructor Documentation

TMatrix::TMatrix ( int  size)

Definition at line 25 of file matrix.cpp.

TMatrix::TMatrix ( const TMatrix x)

Definition at line 37 of file matrix.cpp.

TMatrix::TMatrix ( int  num_rows,
int  num_cols 
)

Definition at line 31 of file matrix.cpp.

TMatrix::~TMatrix ( )

Definition at line 45 of file matrix.cpp.

Member Function Documentation

double TMatrix::Get ( int  row,
int  col 
) const

Definition at line 91 of file matrix.cpp.

Here is the caller graph for this function:

int TMatrix::NCols ( ) const

Definition at line 145 of file matrix.cpp.

Here is the caller graph for this function:

int TMatrix::NRows ( ) const

Definition at line 141 of file matrix.cpp.

Here is the caller graph for this function:

void TMatrix::Set ( int  row,
int  col,
double  value 
)

Definition at line 82 of file matrix.cpp.

Here is the caller graph for this function:

void TMatrix::SwapRows ( int  r1,
int  r2 
)

Definition at line 99 of file matrix.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const TMatrix M 
)
friend

Definition at line 65 of file matrix.cpp.

Member Data Documentation

double* TMatrix::elm
private

Definition at line 36 of file matrix.h.

int TMatrix::nc
private

Definition at line 33 of file matrix.h.

int TMatrix::nr
private

Definition at line 34 of file matrix.h.


The documentation for this class was generated from the following files: