#include <Matrix.h>
Inheritance diagram for OSCAR::MatrixCol:

Public Methods | |
| MatrixCol (unsigned int col, const Matrix &m, const String &name="") | |
| MatrixCol (const MatrixCol &rhs) | |
| unsigned int | nRow () const |
| double & | at (unsigned int i) |
| const double & | at (unsigned int i) const |
| double & | operator() (unsigned int i) |
| const double & | operator() (unsigned int i) const |
| Matrix | Cross (const MatrixCol &b) |
| MatrixCol & | operator= (const MatrixCol &rhs) |
| void | operator+= (const MatrixCol &rhs) |
| virtual void | printOn (std::ostream &out) const |
Protected Attributes | |
| const Matrix * | pm |
| unsigned int | _col |
|
||||||||||||||||
|
Constructor. This is the constructor for an object of type MatrixCol. Use this to create a pointer to a const Matrix and store a column number. |
|
|
Copy Constructor. This is the copy constructor for an object of type MatrixCol. Use this to construct an MatrixCol object from an existing MatrixCol object.
|
|
|
Get an element of a const MatrixCol object. This method is used for read access of an element of a const MatrixCol object.
|
|
|
Get or Set an element of a const MatrixCol object. This method is used for read/write access of an element of a non-const MatrixCol object.
|
|
|
Get the Cross Product. This method is used to get the cross product of a MatrixCol object with the calling MatrixCol object. This method only works on MatrixCols objects of size 3.
|
|
|
Get the Number of rows. This method is used to get the number of rows in a MatrixCol object.
|
|
|
Overloaded const operator(). This overloaded operator is used for read access an element of a const MatrixCol object. Internally, it just calls the .at method.
|
|
|
Overloaded non-const operator(). This overloaded operator is used for read/write access an element of a non-const MatrixCol object. Internally, it just calls the .at method.
|
|
|
Overloaded operator+=. This overloaded operator+= is used to add a MatrixCol object to the calling MatrixCol object and assign the result to the calling MatrixCol object. Both the MatrixCol objects must have the same number of rows.
|
|
|
Assignment operator. This is the Assignment operator for an object of type MatrixCol. Use this to copy a specified MatrixCol object into another MatrixCol object. An error occurs if both objects have a different number of elements.
|
|
|
Output a MatrixCol object to an output stream. This method is used to output a MatrixCol object to an output stream.
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |