Flow123d  jenkins-Flow123d-linux-release-multijob-198
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 14 of file matrix.h.

Constructor & Destructor Documentation

TMatrix::TMatrix ( int  size)

Definition at line 8 of file matrix.cpp.

TMatrix::TMatrix ( const TMatrix x)

Definition at line 20 of file matrix.cpp.

TMatrix::TMatrix ( int  num_rows,
int  num_cols 
)

Definition at line 14 of file matrix.cpp.

TMatrix::~TMatrix ( )

Definition at line 28 of file matrix.cpp.

Member Function Documentation

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

Definition at line 74 of file matrix.cpp.

Here is the caller graph for this function:

int TMatrix::NCols ( ) const

Definition at line 128 of file matrix.cpp.

Here is the caller graph for this function:

int TMatrix::NRows ( ) const

Definition at line 124 of file matrix.cpp.

Here is the caller graph for this function:

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

Definition at line 65 of file matrix.cpp.

Here is the caller graph for this function:

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

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

Member Data Documentation

double* TMatrix::elm
private

Definition at line 19 of file matrix.h.

int TMatrix::nc
private

Definition at line 16 of file matrix.h.

int TMatrix::nr
private

Definition at line 17 of file matrix.h.


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