Flow123d  release_2.2.1-10-gb9fad4d
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 26 of file matrix.cpp.

TMatrix::TMatrix ( const TMatrix x)

Definition at line 38 of file matrix.cpp.

TMatrix::TMatrix ( int  num_rows,
int  num_cols 
)

Definition at line 32 of file matrix.cpp.

TMatrix::~TMatrix ( )

Definition at line 46 of file matrix.cpp.

Member Function Documentation

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

Definition at line 92 of file matrix.cpp.

Here is the caller graph for this function:

int TMatrix::NCols ( ) const

Definition at line 146 of file matrix.cpp.

Here is the caller graph for this function:

int TMatrix::NRows ( ) const

Definition at line 142 of file matrix.cpp.

Here is the caller graph for this function:

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

Definition at line 83 of file matrix.cpp.

Here is the caller graph for this function:

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

Definition at line 100 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 66 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: