Flow123d  release_2.2.0-914-gf1a3a4f
Public Member Functions | Private Attributes | Friends | List of all members
ngh::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 34 of file matrix.h.

Constructor & Destructor Documentation

ngh::TMatrix::TMatrix ( int  size)

Definition at line 28 of file matrix.cpp.

ngh::TMatrix::TMatrix ( const TMatrix x)

Definition at line 40 of file matrix.cpp.

ngh::TMatrix::TMatrix ( int  num_rows,
int  num_cols 
)

Definition at line 34 of file matrix.cpp.

ngh::TMatrix::~TMatrix ( )

Definition at line 48 of file matrix.cpp.

Member Function Documentation

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

Definition at line 94 of file matrix.cpp.

Here is the caller graph for this function:

int ngh::TMatrix::NCols ( ) const

Definition at line 148 of file matrix.cpp.

Here is the caller graph for this function:

int ngh::TMatrix::NRows ( ) const

Definition at line 144 of file matrix.cpp.

Here is the caller graph for this function:

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

Definition at line 85 of file matrix.cpp.

Here is the caller graph for this function:

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

Definition at line 102 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 68 of file matrix.cpp.

Member Data Documentation

double* ngh::TMatrix::elm
private

Definition at line 39 of file matrix.h.

int ngh::TMatrix::nc
private

Definition at line 36 of file matrix.h.

int ngh::TMatrix::nr
private

Definition at line 37 of file matrix.h.


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