#include <matrix.hpp>
Inheritance diagram for MatrixSum:
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 Matrix & | GetFirst () const |
Get first matrix from pair. | |
const Matrix & | GetSecond () 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 Matrix & | M1 |
const Matrix & | M2 |
|
Create view of sum of two matrices.
Definition at line 79 of file matrix.cpp. |
|
Get element in position i,j.
Implements Matrix. Definition at line 83 of file matrix.cpp. References MatrixBinExpr::GetNumCols(), and MatrixBinExpr::GetNumRows(). |
|
Get first matrix from pair.
Definition at line 69 of file matrix.cpp. References MatrixBinExpr::M1. |
|
Get second matrix from pair.
Definition at line 74 of file matrix.cpp. References MatrixBinExpr::M2. |
|
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(). |
|
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(). |
|
Get view of i row of matrix.
Definition at line 19 of file matrix.cpp. Referenced by Cross::Approximate(). |
|
Get view of j column of matrix.
Definition at line 39 of file matrix.cpp. Referenced by Cross::Approximate(). |
|
Definition at line 84 of file matrix.hpp. Referenced by MatrixBinExpr::GetFirst(), MatrixBinExpr::GetNumCols(), MatrixBinExpr::GetNumRows(), and MatrixBinExpr::MatrixBinExpr(). |
|
Definition at line 85 of file matrix.hpp. Referenced by MatrixBinExpr::GetSecond(), and MatrixBinExpr::MatrixBinExpr(). |