Zenautics::Matrix::Element Class Reference

#include <Matrix.h>


Detailed Description

This is a nested class that is an element of the matrix. i.e. Matrix M; M(i,j) is the element. It is used for operator(,) access by the Matrix.

Definition at line 4409 of file Matrix.h.


Public Member Functions

 Element (MTX &mtx)
 The only constructor binds the reference to the deep level matrix. The row and column members are set later.
virtual ~Element ()
 The destructor.
const double real ()
 Get the real part.
const double imag ()
 Get the imaginary part.
const Elementoperator= (double v)
 The operator overload for setting the matrix element from a double.
const Elementoperator= (std::complex< double > v)
 The operator overload for setting the matrix element from a std::complex.
const Elementoperator= (Element v)
 The operator overload for setting the matrix element from another the matrix element.
 operator const std::complex< double > () const
 This operator allows explict conversion to a std::complex.
void operator+= (const double scalar)
 Add a scalar inplace.
void operator+= (const std::complex< double > &v)
 Add a complex value inplace.
void operator+= (const Element &v)
 Add a Element inplace.
void operator-= (const double scalar)
 Subtract a scalar inplace.
void operator-= (const std::complex< double > &v)
 Subtract a complex value inplace.
void operator-= (const Element &v)
 Subtract a Element inplace.
void operator *= (const double scalar)
 Multiply a scalar inplace.
void operator *= (const std::complex< double > &v)
 Multiply a complex value inplace.
void operator *= (const Element &v)
 Multiply a Element inplace.
void operator/= (const double scalar)
 Divide a scalar inplace.
void operator/= (const std::complex< double > &v)
 Divide a complex value inplace.
void operator/= (const Element &v)
 Divide a Element inplace.

Friends

class Matrix
 The matrix class is a friend.
const std::complex< double > operator+ (const Element &m, double scalar)
 The operator overload for adding a double to an element.
const std::complex< double > operator+ (const Element &a, const Element &b)
 The operator overload for adding an element to an element.
const std::complex< double > operator+ (const Element &a, const std::complex< double > &b)
 The operator overload for adding an element to an complex.
const std::complex< double > operator+ (double scalar, const Element &m)
 The operator overload for adding an element and a double.
const std::complex< double > operator+ (const std::complex< double > &b, const Element &a)
 The operator overload for adding a complex and an element.
const std::complex< double > operator- (const Element &m, double scalar)
 The operator overload for subtracting a double from an element.
const std::complex< double > operator- (const Element &a, const Element &b)
 The operator overload for subtracting an element from an element.
const std::complex< double > operator- (const Element &a, const std::complex< double > &b)
 The operator overload for subtracting an complex from an element.
const std::complex< double > operator- (double scalar, const Element &m)
 The operator overload for subtracting an element from a double.
const std::complex< double > operator- (const std::complex< double > &b, const Element &a)
 The operator overload for subtracting an element from a complex.
const std::complex< double > operator * (const Element &m, double scalar)
 The operator overload for multiplying an element and a double.
const std::complex< double > operator * (const Element &a, const Element &b)
 The operator overload for multiplying an element and an element.
const std::complex< double > operator * (const Element &a, const std::complex< double > &b)
 The operator overload for multiplying an element and a complex.
const std::complex< double > operator * (double scalar, const Element &m)
 The operator overload for multiplying a double and an element.
const std::complex< double > operator * (const std::complex< double > &b, const Element &a)
 The operator overload for multiplying a complex and an element.
const std::complex< double > operator/ (const Element &m, double scalar)
 The operator overload for dividing an element by a double.
const std::complex< double > operator/ (const Element &a, const Element &b)
 The operator overload for dividing an element by an element.
const std::complex< double > operator/ (const Element &a, const std::complex< double > &b)
 The operator overload for dividing an element by an complex.
const std::complex< double > operator/ (double scalar, const Element &m)
 The operator overload for dividing a double by an element.
const std::complex< double > operator/ (const std::complex< double > &b, const Element &a)
 The operator overload for dividing a complex by an element.
const bool operator== (const Element &m, double scalar)
 The operator overload for testing equality between an element and a double.
const bool operator== (const Element &a, const Element &b)
 The operator overload for testing equality between an element and an element.
const bool operator== (const Element &a, const std::complex< double > &b)
 The operator overload for testing equality between an element and a complex.
const bool operator== (double scalar, const Element &m)
 The operator overload for testing equality between a double and an element.
const bool operator== (const std::complex< double > &b, const Element &a)
 The operator overload for testing equality between a complex and an element.

Constructor & Destructor Documentation

Zenautics::Matrix::Element::Element ( MTX mtx  ) 

The only constructor binds the reference to the deep level matrix. The row and column members are set later.

Definition at line 4105 of file Matrix.cpp.

Zenautics::Matrix::Element::~Element (  )  [virtual]

The destructor.

Definition at line 4112 of file Matrix.cpp.


Member Function Documentation

const double Zenautics::Matrix::Element::real (  ) 

Get the real part.

Definition at line 4115 of file Matrix.cpp.

const double Zenautics::Matrix::Element::imag (  ) 

Get the imaginary part.

Definition at line 4127 of file Matrix.cpp.

const Matrix::Element & Zenautics::Matrix::Element::operator= ( double  v  ) 

The operator overload for setting the matrix element from a double.

Definition at line 4139 of file Matrix.cpp.

const Matrix::Element & Zenautics::Matrix::Element::operator= ( std::complex< double >  v  ) 

The operator overload for setting the matrix element from a std::complex.

Definition at line 4153 of file Matrix.cpp.

const Matrix::Element & Zenautics::Matrix::Element::operator= ( Element  v  ) 

The operator overload for setting the matrix element from another the matrix element.

Definition at line 4178 of file Matrix.cpp.

Zenautics::Matrix::Element::operator const std::complex< double > (  )  const

This operator allows explict conversion to a std::complex.

Definition at line 4212 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator+= ( const double  scalar  ) 

Add a scalar inplace.

Definition at line 4227 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator+= ( const std::complex< double > &  v  ) 

Add a complex value inplace.

Definition at line 4239 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator+= ( const Element v  ) 

Add a Element inplace.

Definition at line 4264 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator-= ( const double  scalar  ) 

Subtract a scalar inplace.

Definition at line 4271 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator-= ( const std::complex< double > &  v  ) 

Subtract a complex value inplace.

Definition at line 4283 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator-= ( const Element v  ) 

Subtract a Element inplace.

Definition at line 4308 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator *= ( const double  scalar  ) 

Multiply a scalar inplace.

Definition at line 4315 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator *= ( const std::complex< double > &  v  ) 

Multiply a complex value inplace.

Definition at line 4328 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator *= ( const Element v  ) 

Multiply a Element inplace.

Definition at line 4356 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator/= ( const double  scalar  ) 

Divide a scalar inplace.

Definition at line 4363 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator/= ( const std::complex< double > &  v  ) 

Divide a complex value inplace.

Definition at line 4384 of file Matrix.cpp.

void Zenautics::Matrix::Element::operator/= ( const Element v  ) 

Divide a Element inplace.

Definition at line 4429 of file Matrix.cpp.


Friends And Related Function Documentation

friend class Matrix [friend]

The matrix class is a friend.

Definition at line 4421 of file Matrix.h.

const std::complex<double> operator+ ( const Element m,
double  scalar 
) [friend]

The operator overload for adding a double to an element.

Definition at line 4441 of file Matrix.cpp.

const std::complex<double> operator+ ( const Element a,
const Element b 
) [friend]

The operator overload for adding an element to an element.

Definition at line 4450 of file Matrix.cpp.

const std::complex<double> operator+ ( const Element a,
const std::complex< double > &  b 
) [friend]

The operator overload for adding an element to an complex.

Definition at line 4461 of file Matrix.cpp.

const std::complex<double> operator+ ( double  scalar,
const Element m 
) [friend]

The operator overload for adding an element and a double.

Definition at line 4470 of file Matrix.cpp.

const std::complex<double> operator+ ( const std::complex< double > &  b,
const Element a 
) [friend]

The operator overload for adding a complex and an element.

Definition at line 4477 of file Matrix.cpp.

const std::complex<double> operator- ( const Element m,
double  scalar 
) [friend]

The operator overload for subtracting a double from an element.

Definition at line 4484 of file Matrix.cpp.

const std::complex<double> operator- ( const Element a,
const Element b 
) [friend]

The operator overload for subtracting an element from an element.

Definition at line 4493 of file Matrix.cpp.

const std::complex<double> operator- ( const Element a,
const std::complex< double > &  b 
) [friend]

The operator overload for subtracting an complex from an element.

Definition at line 4504 of file Matrix.cpp.

const std::complex<double> operator- ( double  scalar,
const Element m 
) [friend]

The operator overload for subtracting an element from a double.

Definition at line 4513 of file Matrix.cpp.

const std::complex<double> operator- ( const std::complex< double > &  b,
const Element a 
) [friend]

The operator overload for subtracting an element from a complex.

Definition at line 4520 of file Matrix.cpp.

const std::complex<double> operator * ( const Element m,
double  scalar 
) [friend]

The operator overload for multiplying an element and a double.

Definition at line 4529 of file Matrix.cpp.

const std::complex<double> operator * ( const Element a,
const Element b 
) [friend]

The operator overload for multiplying an element and an element.

Definition at line 4538 of file Matrix.cpp.

const std::complex<double> operator * ( const Element a,
const std::complex< double > &  b 
) [friend]

The operator overload for multiplying an element and a complex.

Definition at line 4549 of file Matrix.cpp.

const std::complex<double> operator * ( double  scalar,
const Element m 
) [friend]

The operator overload for multiplying a double and an element.

Definition at line 4558 of file Matrix.cpp.

const std::complex<double> operator * ( const std::complex< double > &  b,
const Element a 
) [friend]

The operator overload for multiplying a complex and an element.

Definition at line 4564 of file Matrix.cpp.

const std::complex<double> operator/ ( const Element m,
double  scalar 
) [friend]

The operator overload for dividing an element by a double.

Definition at line 4571 of file Matrix.cpp.

const std::complex<double> operator/ ( const Element a,
const Element b 
) [friend]

The operator overload for dividing an element by an element.

Definition at line 4580 of file Matrix.cpp.

const std::complex<double> operator/ ( const Element a,
const std::complex< double > &  b 
) [friend]

The operator overload for dividing an element by an complex.

Definition at line 4591 of file Matrix.cpp.

const std::complex<double> operator/ ( double  scalar,
const Element m 
) [friend]

The operator overload for dividing a double by an element.

Definition at line 4600 of file Matrix.cpp.

const std::complex<double> operator/ ( const std::complex< double > &  b,
const Element a 
) [friend]

The operator overload for dividing a complex by an element.

Definition at line 4608 of file Matrix.cpp.

const bool operator== ( const Element m,
double  scalar 
) [friend]

The operator overload for testing equality between an element and a double.

Definition at line 4617 of file Matrix.cpp.

const bool operator== ( const Element a,
const Element b 
) [friend]

The operator overload for testing equality between an element and an element.

Definition at line 4638 of file Matrix.cpp.

const bool operator== ( const Element a,
const std::complex< double > &  b 
) [friend]

The operator overload for testing equality between an element and a complex.

Definition at line 4682 of file Matrix.cpp.

const bool operator== ( double  scalar,
const Element m 
) [friend]

The operator overload for testing equality between a double and an element.

Definition at line 4703 of file Matrix.cpp.

const bool operator== ( const std::complex< double > &  b,
const Element a 
) [friend]

The operator overload for testing equality between a complex and an element.

Definition at line 4709 of file Matrix.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Feb 8 15:31:11 2009 for The Zenautics Matrix Project by  doxygen 1.5.4