Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

FunctionMatrix Class Reference

#include <matrix.hpp>

Inheritance diagram for FunctionMatrix:

Inheritance graph
[legend]
Collaboration diagram for FunctionMatrix:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class of matrix generated by function.

Definition at line 142 of file matrix.hpp.

Public Member Functions

 FunctionMatrix (unsigned rows, unsigned cols, double _h, double(*func)(unsigned, unsigned, double))
 Initialize matrix wich i,j element equal func(i,j,h).
unsigned GetNumRows () const
 Get number of rows.
unsigned GetNumCols () const
 Get number of columns.
double elem (unsigned i, unsigned j) const
 Get element in position i,j.
Row GetRow (unsigned i) const
 Get view of i row of matrix.
Column GetCol (unsigned j) const
 Get view of j column of matrix.


Constructor & Destructor Documentation

FunctionMatrix::FunctionMatrix unsigned  rows,
unsigned  cols,
double  _h,
double(*)(unsigned, unsigned, double)  func
 

Initialize matrix wich i,j element equal func(i,j,h).

Definition at line 179 of file matrix.cpp.


Member Function Documentation

unsigned FunctionMatrix::GetNumRows  )  const [virtual]
 

Get number of rows.

Implements Matrix.

Definition at line 185 of file matrix.cpp.

unsigned FunctionMatrix::GetNumCols  )  const [virtual]
 

Get number of columns.

Implements Matrix.

Definition at line 190 of file matrix.cpp.

double FunctionMatrix::elem unsigned  i,
unsigned  j
const [virtual]
 

Get element in position i,j.

Implements Matrix.

Definition at line 195 of file matrix.cpp.

Matrix::Row Matrix::GetRow unsigned  i  )  const [inherited]
 

Get view of i row of matrix.

Definition at line 19 of file matrix.cpp.

Referenced by Cross::Approximate().

Matrix::Column Matrix::GetCol unsigned  j  )  const [inherited]
 

Get view of j column of matrix.

Definition at line 39 of file matrix.cpp.

Referenced by Cross::Approximate().


The documentation for this class was generated from the following files:
Generated on Sun May 25 01:58:08 2025 for SmoluchowskiSolver by Doxygen