#include <FixedSizeMatrix.h>
Inheritance diagram for OSCAR::FixedSizeMatrix< nRows, nCols >:

Public Methods | |
| FixedSizeMatrix () | |
| FixedSizeMatrix (const double *f, const String &name=String(), bool initMtx=true) | |
| FixedSizeMatrix (const Vector &v, OSCARError &err=DUMMY_ERROR(noError), const String &name=String()) | |
| FixedSizeMatrix (const Vector &v, const String &name=String()) | |
| FixedSizeMatrix (const Matrix &rhs) | |
| FixedSizeMatrix (const FixedSizeMatrix< nRows, nCols > &rhs) | |
| FixedSizeMatrix & | operator= (const Matrix &rhs) |
| FixedSizeMatrix & | operator= (const FixedSizeMatrix< nRows, nCols > &rhs) |
| FixedSizeMatrix< nRows, nCols > | operator * (const FixedSizeMatrix< nRows, nCols > &rhs) const |
| FixedSizeMatrix< nRows, nCols > | operator * (const Matrix &rhs) const |
| Vector | operator * (const Vector &rhs) const |
| FixedSizeMatrix< nRows, nCols > & | operator *= (const FixedSizeMatrix< nRows, nCols > &rhs) |
| FixedSizeMatrix< nRows, nCols > & | operator *= (const Matrix &rhs) |
| bool | Multiply (const FixedSizeMatrix< nRows, nCols > &with, FixedSizeMatrix< nRows, nCols > &result) const |
| bool | Multiply (const FixedSizeMatrix< nRows, nCols > &with, Matrix &result) const |
| bool | Multiply (const Vector &vec, Vector &result) const |
| bool | Multiply (const Matrix &with, FixedSizeMatrix< nRows, nCols > &result) const |
| FixedSizeMatrix< nRows, nCols > & | operator+= (const FixedSizeMatrix< nRows, nCols > &rhs) |
| FixedSizeMatrix< nRows, nCols > & | operator+= (const Matrix &rhs) |
| FixedSizeMatrix< nRows, nCols > & | operator-= (const FixedSizeMatrix< nRows, nCols > &rhs) |
| FixedSizeMatrix< nRows, nCols > & | operator-= (const Matrix &rhs) |
| FixedSizeMatrix< nRows, nCols > & | operator *= (double d) |
| FixedSizeMatrix< nRows, nCols > & | operator/= (double d) |
| FixedSizeMatrix< nRows, nCols > | operator+ (const FixedSizeMatrix< nRows, nCols > &rhs) const |
| FixedSizeMatrix< nRows, nCols > | operator+ (const Matrix &rhs) const |
| FixedSizeMatrix< nRows, nCols > | operator- (const FixedSizeMatrix< nRows, nCols > &rhs) const |
| FixedSizeMatrix< nRows, nCols > | operator- (const Matrix &rhs) const |
| FixedSizeMatrix< nRows, nCols > | operator * (double d) const |
| FixedSizeMatrix< nRows, nCols > | operator/ (double d) const |
| virtual | ~FixedSizeMatrix () |
Protected Methods | |
| virtual void | m_alloc (unsigned int nr, unsigned int nc) |
Protected Attributes | |
| double | data [nRows *nCols] |
| DoubleP | rows [nRows] |
|
|||||||||
|
Default Constructor. Default behavior: Constructs an (nr x nc) FixedSizeMatrix and initialized to zero matrix
|
|
||||||||||||||||||||
|
Constructor. Default behavior: Constructs an (nr x nc) FixedSizeMatrix and initialized to zero matrix Second behavior: (f specified) Constructs an (nr x nc) FixedSizeMatrix and initialized by the first (nr x nc) elements in array of doubles specified by *f. To use this constructor with a 2-D array, pass the array as Arr[0] or &Arr[0][0]. It initializes FixedSizeMatrix by using a row pattern, e.g. in an Nx4 matrix the first row is initialized with the first 4 values in the array *f. Behavior is undefined for array with less than (nr x nc) elements. Third behavior: (initMtx specified) If (initMtx == false), elements of the matrix are not initialized. This behavior is efficient for creating temporaries that will be initialized later.
|
|
||||||||||||||||||||
|
Constructor. Constructs an (nr x nc) FixedSizeMatrix initialized by an Vector. Initialization is by using a row pattern, e.g. in an Nx4 matrix the first row is initialized with the first 4 values in the Vector. The size of Vector must be of size nr*nc or an error will occur.
|
|
||||||||||||||||
|
|
|
||||||||||
|
Copy constructor. Constructs a fixed size matrix (size specified by template arguments) from an existing Matrix.
|
|
||||||||||
|
Copy constructor. This is the copy constructor for an object of type RRFixedArray. Use this to construct a fixed size matrix (size specified by template arguments) from an existing FixedSizeMatrix.
|
|
|||||||||
|
Virtual destructor. This is the destructor for an object of type FixedSizeMatrix. |
|
||||||||||||||||
|
Dummy method. This method prevents calling of the Matrix::m_alloc method, which dynamically allocates memory on the heap. It sets the size parameters and the pointers to memory locations in the Matrix class
Reimplemented from OSCAR::Matrix. |
|
||||||||||||||||
|
Multiply FixedSizeMatrix with Matrix. This is an optomization on Matrix multiply
|
|
||||||||||||||||
|
Matrix-vector multiplication. Multiplies an Vector object with calling object and puts values in resulting Vector object.
Reimplemented from OSCAR::Matrix. |
|
||||||||||||||||
|
Multiply two FixedSize matrices objects and place result in Matrix. This is an optomization on Matrix multiply
|
|
||||||||||||||||
|
Multiply two FixedSize matrices objects. This is an optomization on Matrix multiply
|
|
||||||||||
|
Overloaded operator*. Multiplies an Matrix object by a scalar and return the resulting Matrix object.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
Overloaded operator*. Multiplies an calling object by a vector and return the resulting Vector object.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
Overloaded operator*. Multiplies a FixedSizeMatrix with Matrix and returns the resulting Matrix object. An error occurs if the number of columns of the first matrix is not the same as the number of rows in the second matrix.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
operator*. Multiplies the curent FixedSizeMatrix with an argument of a square FixedSizeMatrix<nCols,nCols> FUTURE WORK: when compiler support becomes available (current gcc or VC++.Net 2003), this can be replaced by template<nColsRHS> to take FixedSizeMatrix<nCols,nColsRHS> and return an FixedSizeMatrix<nRows,nColsRHS>
|
|
||||||||||
|
Overloaded operator*=. Multiply an elements of Matrix object by a scalar.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
Overloaded operator*=. Multiply square (nCols,nCols) Matrix with current matrix and assign result to current matrix.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
operator*=. Multiplies the curent FixedSizeMatrix with an argument of a FixedSizeMatrix<nCols,nCols> and assigns the result back to this.
|
|
||||||||||
|
Overloaded operator+. Add two RRMatrices together and return the resulting Matrix object. An error occurs if the two RRMatrices are of different sizes.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
|
|
||||||||||
|
Overloaded operator+=. Element-wise addition to an Matrix from the current matrix.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
|
|
||||||||||
|
Overloaded operator-. Subtracts an Matrix from the current Matrix object and returns the resulting Matrix object. An error occurs if the two RRMatrices are of different sizes.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
|
|
||||||||||
|
Overloaded operator-=. Element-wise subtraction of an Matrix from the current matrix.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
|
|
||||||||||
|
Overloaded operator/. Divides an Matrix object by a scalar and return the resulting Matrix object.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
Overloaded operator/=. Multiply an elements of Matrix object by a scalar.
Reimplemented from OSCAR::Matrix. |
|
||||||||||
|
Assignment operator. Copies elements in an FixedSizeMatrix into a FixedSizeMatrix object. This function is about 3.5x faster than Matrix::operator= and 3% faster than operator=(Matrix) with VC++ v6.
|
|
||||||||||
|
Assignment operator. Copies elements from an Matrix into current FixedSizeMatrix. This function is about 3.5x faster than the Matrix::operator= and 3% slower than operator=(RRFSM<>) with VC++ v6.
Reimplemented from OSCAR::Matrix. Reimplemented in OSCAR::Rot3by3, OSCAR::SpatialXform, and OSCAR::Xform. |
|
|||||
|
|
|
|||||
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |