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

MatrixBinExpr Class Reference

#include <matrix.hpp>

Inheritance diagram for MatrixBinExpr:

Inheritance graph
[legend]
Collaboration diagram for MatrixBinExpr:

Collaboration graph
[legend]
List of all members.

Detailed Description

Abstract class of pair matrix with equal sizes; TODO: rename this class.

Definition at line 82 of file matrix.hpp.

Public Member Functions

 MatrixBinExpr (const Matrix &_M1, const Matrix &_M2)
 Create pair of matrices M1 and M2 which sizes are equal.
const MatrixGetFirst () const
 Get first matrix from pair.
const MatrixGetSecond () const
 Get second matrix from pair.
unsigned GetNumRows () const
 Get number of rows.
unsigned GetNumCols () const
 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.

Protected Attributes

const MatrixM1
const MatrixM2


Constructor & Destructor Documentation

MatrixBinExpr::MatrixBinExpr const Matrix _M1,
const Matrix _M2
 

Create pair of matrices M1 and M2 which sizes are equal.

Definition at line 47 of file matrix.cpp.

References Matrix::GetNumCols(), Matrix::GetNumRows(), M1, and M2.


Member Function Documentation

const Matrix & MatrixBinExpr::GetFirst  )  const
 

Get first matrix from pair.

Definition at line 69 of file matrix.cpp.

References M1.

const Matrix & MatrixBinExpr::GetSecond  )  const
 

Get second matrix from pair.

Definition at line 74 of file matrix.cpp.

References M2.

unsigned MatrixBinExpr::GetNumRows  )  const [virtual]
 

Get number of rows.

Implements Matrix.

Definition at line 59 of file matrix.cpp.

References Matrix::GetNumRows(), and M1.

Referenced by MatrixSub::elem(), and MatrixSum::elem().

unsigned MatrixBinExpr::GetNumCols  )  const [virtual]
 

Get number of columns.

Implements Matrix.

Definition at line 64 of file matrix.cpp.

References Matrix::GetNumCols(), and M1.

Referenced by MatrixSub::elem(), and MatrixSum::elem().

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

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 [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().


Member Data Documentation

const Matrix& MatrixBinExpr::M1 [protected]
 

Definition at line 84 of file matrix.hpp.

Referenced by GetFirst(), GetNumCols(), GetNumRows(), and MatrixBinExpr().

const Matrix& MatrixBinExpr::M2 [protected]
 

Definition at line 85 of file matrix.hpp.

Referenced by GetSecond(), and MatrixBinExpr().


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