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

Matrix Class Reference

#include <matrix.hpp>

Inheritance diagram for Matrix:

Inheritance graph
[legend]
List of all members.

Detailed Description

A abstract class for matrices.

Definition at line 35 of file matrix.hpp.

Public Member Functions

 Matrix ()
 The constructor.
virtual ~Matrix ()
 The destructor.
virtual unsigned GetNumRows () const =0
 Get number of rows.
virtual unsigned GetNumCols () const =0
 Get number of columns.
virtual double elem (unsigned i, unsigned j) const =0
 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.

Classes

class  Column
 Class of view matrix column. More...
class  Row
 Class of view matrix row. More...


Constructor & Destructor Documentation

Matrix::Matrix  ) 
 

The constructor.

Definition at line 38 of file matrix.hpp.

virtual Matrix::~Matrix  )  [virtual]
 

The destructor.

Definition at line 40 of file matrix.hpp.


Member Function Documentation

virtual unsigned Matrix::GetNumRows  )  const [pure virtual]
 

Get number of rows.

Implemented in Cross, MatrixBinExpr, ReallocatableMatrix, and FunctionMatrix.

Referenced by MatrixBinExpr::GetNumRows(), Cross::GetNumRows(), Matrix::Column::GetSize(), MatrixBinExpr::MatrixBinExpr(), Skeleton::MatvecF(), Skeleton::MatvecLT(), and Skeleton::MatvecUT().

virtual unsigned Matrix::GetNumCols  )  const [pure virtual]
 

Get number of columns.

Implemented in Cross, MatrixBinExpr, ReallocatableMatrix, and FunctionMatrix.

Referenced by MatrixBinExpr::GetNumCols(), Cross::GetNumCols(), Matrix::Row::GetSize(), MatrixBinExpr::MatrixBinExpr(), Skeleton::MatvecF(), Skeleton::MatvecLT(), and Skeleton::MatvecUT().

virtual double Matrix::elem unsigned  i,
unsigned  j
const [pure virtual]
 

Get element in position i,j.

Implemented in Cross, MatrixSum, MatrixSub, ReallocatableMatrix, and FunctionMatrix.

Referenced by SmoluchowskiCalcFast::calc_L1(), SmoluchowskiCalcDirect::calc_L1(), SmoluchowskiCalcFast::calc_L1_fix_f(), SmoluchowskiCalcDirect::calc_L1_fix_f(), SmoluchowskiCalcFast::calc_L2(), SmoluchowskiCalcDirect::calc_L2(), SmoluchowskiCalcFast::calc_L2_fix_f(), SmoluchowskiCalcDirect::calc_L2_fix_f(), SmoluchowskiCalcFast::calc_L3(), SmoluchowskiCalcDirect::calc_L3(), SmoluchowskiCalcFast::calc_L4(), SmoluchowskiCalcDirect::calc_L4(), SmoluchowskiCalcFast::calc_L5(), SmoluchowskiCalcDirect::calc_L5(), Matrix::Column::elem(), Matrix::Row::elem(), SmoluchowskiCalcFast::fix_f_arg(), SmoluchowskiCalcDirect::fix_f_arg(), Skeleton::MatvecF(), Skeleton::MatvecLT(), and Skeleton::MatvecUT().

Matrix::Row Matrix::GetRow unsigned  i  )  const
 

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
 

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