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

MatrixSum Class Reference

#include <matrix.hpp>

Inheritance diagram for MatrixSum:

Inheritance graph
[legend]
Collaboration diagram for MatrixSum:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class of view of sum of two matrices.

Definition at line 100 of file matrix.hpp.

Public Member Functions

 MatrixSum (const Matrix &_M1, const Matrix &_M2)
 Create view of sum of two matrices.
double elem (unsigned i, unsigned j) const
 Get element in position i,j.
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.
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

MatrixSum::MatrixSum const Matrix _M1,
const Matrix _M2
 

Create view of sum of two matrices.

Definition at line 79 of file matrix.cpp.


Member Function Documentation

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

Get element in position i,j.

Implements Matrix.

Definition at line 83 of file matrix.cpp.

References MatrixBinExpr::GetNumCols(), and MatrixBinExpr::GetNumRows().

const Matrix & MatrixBinExpr::GetFirst  )  const [inherited]
 

Get first matrix from pair.

Definition at line 69 of file matrix.cpp.

References MatrixBinExpr::M1.

const Matrix & MatrixBinExpr::GetSecond  )  const [inherited]
 

Get second matrix from pair.

Definition at line 74 of file matrix.cpp.

References MatrixBinExpr::M2.

unsigned MatrixBinExpr::GetNumRows  )  const [virtual, inherited]
 

Get number of rows.

Implements Matrix.

Definition at line 59 of file matrix.cpp.

References Matrix::GetNumRows(), and MatrixBinExpr::M1.

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

unsigned MatrixBinExpr::GetNumCols  )  const [virtual, inherited]
 

Get number of columns.

Implements Matrix.

Definition at line 64 of file matrix.cpp.

References Matrix::GetNumCols(), and MatrixBinExpr::M1.

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

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, inherited]
 

Definition at line 84 of file matrix.hpp.

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

const Matrix& MatrixBinExpr::M2 [protected, inherited]
 

Definition at line 85 of file matrix.hpp.

Referenced by MatrixBinExpr::GetSecond(), and MatrixBinExpr::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