#include <Matrix.h>
Sequential [][] operators can be used to access the matrix. The first overload of [] is at the Matrix level. This returns a copy of a RealOnlyAccess and the second overload of [] allows access to the required element from the matrix.
For matrices that are always real. This method of accessing each element is the most efficient.
Definition at line 3321 of file Matrix.h.
Public Member Functions | |
double & | operator[] (const unsigned col) |
Set or get an element value. | |
RealOnlyAccess (MTX &pMatrix, const unsigned row) | |
The only constructor. | |
virtual | ~RealOnlyAccess () |
The destructor. | |
RealOnlyAccess & | operator= (const double value) |
The assignment operator from a double for single index operations. | |
RealOnlyAccess & | operator= (RealOnlyAccess &rhs) |
The assignment operator from another RealOnlyAccess object for single index operations. | |
RealOnlyAccess & | operator= (Element &rhs) |
The assignment operator from a MatrixElement object for single index operations. | |
operator const double () | |
The casting operator overload for double. | |
bool | operator+= (const int scalar) |
add a scaler int (shorthand notation: A[0] += 5). | |
bool | operator+= (const float scalar) |
add a scaler float (shorthand notation: A[0] += 5). | |
bool | operator+= (const double scalar) |
add a scaler double (shorthand notation: A[0] += 5). | |
bool | operator-= (const int scalar) |
subtract a scaler int (shorthand notation: A[0] -= 5). | |
bool | operator-= (const float scalar) |
subtract a scaler float (shorthand notation: A[0] -= 5). | |
bool | operator-= (const double scalar) |
subtract a scaler double (shorthand notation: A[0] -= 5). | |
bool | operator *= (const int scalar) |
multiply a scalar int (shorthand notation: A[0] *= 5). | |
bool | operator *= (const float scalar) |
multiply a scalar float (shorthand notation: A[0] *= 5). | |
bool | operator *= (const double scalar) |
multiply a scalar double (shorthand notation: A[0] *= 5). | |
bool | operator/= (const int scalar) |
divide a scalar int (shorthand notation: A[0] /= 5). | |
bool | operator/= (const float scalar) |
divide a scalar float (shorthand notation: A[0] /= 5). | |
bool | operator/= (const double scalar) |
divide a scalar double (shorthand notation: A[0] /= 5). | |
Friends | |
class | Matrix |
The matrix is a friend class. |
Zenautics::Matrix::RealOnlyAccess::RealOnlyAccess | ( | MTX & | pMatrix, | |
const unsigned | row | |||
) |
Zenautics::Matrix::RealOnlyAccess::~RealOnlyAccess | ( | ) | [virtual] |
double & Zenautics::Matrix::RealOnlyAccess::operator[] | ( | const unsigned | col | ) |
Matrix::RealOnlyAccess & Zenautics::Matrix::RealOnlyAccess::operator= | ( | const double | value | ) |
The assignment operator from a double for single index operations.
Definition at line 3432 of file Matrix.cpp.
Matrix::RealOnlyAccess & Zenautics::Matrix::RealOnlyAccess::operator= | ( | RealOnlyAccess & | rhs | ) |
The assignment operator from another RealOnlyAccess object for single index operations.
Definition at line 3482 of file Matrix.cpp.
Matrix::RealOnlyAccess & Zenautics::Matrix::RealOnlyAccess::operator= | ( | Matrix::Element & | rhs | ) |
The assignment operator from a MatrixElement object for single index operations.
Definition at line 3495 of file Matrix.cpp.
Zenautics::Matrix::RealOnlyAccess::operator const double | ( | ) |
bool Zenautics::Matrix::RealOnlyAccess::operator+= | ( | const int | scalar | ) | [inline] |
bool Zenautics::Matrix::RealOnlyAccess::operator+= | ( | const float | scalar | ) | [inline] |
bool Zenautics::Matrix::RealOnlyAccess::operator+= | ( | const double | scalar | ) |
bool Zenautics::Matrix::RealOnlyAccess::operator-= | ( | const int | scalar | ) | [inline] |
bool Zenautics::Matrix::RealOnlyAccess::operator-= | ( | const float | scalar | ) | [inline] |
bool Zenautics::Matrix::RealOnlyAccess::operator-= | ( | const double | scalar | ) |
subtract a scaler double (shorthand notation: A[0] -= 5).
Definition at line 3604 of file Matrix.cpp.
bool Zenautics::Matrix::RealOnlyAccess::operator *= | ( | const int | scalar | ) | [inline] |
bool Zenautics::Matrix::RealOnlyAccess::operator *= | ( | const float | scalar | ) | [inline] |
bool Zenautics::Matrix::RealOnlyAccess::operator *= | ( | const double | scalar | ) |
multiply a scalar double (shorthand notation: A[0] *= 5).
Definition at line 3657 of file Matrix.cpp.
bool Zenautics::Matrix::RealOnlyAccess::operator/= | ( | const int | scalar | ) | [inline] |
bool Zenautics::Matrix::RealOnlyAccess::operator/= | ( | const float | scalar | ) | [inline] |
bool Zenautics::Matrix::RealOnlyAccess::operator/= | ( | const double | scalar | ) |
friend class Matrix [friend] |