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

Public Methods | |
| MatrixRow (unsigned int row, const Matrix &m, const String &name="") | |
| MatrixRow (const MatrixRow &rhs) | |
| unsigned int | nCol () 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 |
| double | operator * (const MatrixCol &rhs) const |
| MatrixRow & | operator= (const MatrixRow &rhs) |
| double & | operator[] (unsigned int j) |
| const double & | operator[] (unsigned int j) const |
| virtual void | printOn (std::ostream &out) const |
Protected Attributes | |
| const Matrix * | pm |
| unsigned int | _row |
|
||||||||||||||||
|
Constructor. This is the constructor for an object of type Application MatrixRow. Use this to create a pointer to a Matrix and store a row number. |
|
|
Copy Constructor. This is the copy constructor for an object of type MatrixRow. Use this to construct an MatrixRow object from an existing MatrixRow object.
|
|
|
Get an element of a MatrixRow object. This method is used to access an element of a MatrixRow object.
|
|
|
Get/set an element of a MatrixRow object. This method is used for read/write access of an element of a MatrixRow object.
|
|
|
Get the Number of columns. This method is used to get the number of columns in a MatrixRow object.
|
|
|
Overloaded operator*. This overloaded operator* is used to get the dot product of a MatrixCol object with the calling MatrixRow object. An error occurs if the number of columns in the MatrixRow object do not match the number of rows in the MatrixCol object.
|
|
|
Overloaded const operator(). This overloaded operator is used for read access an element of a const MatrixRow. Internally, it just calls the .at method.
|
|
|
Overloaded operator(). This overloaded operator is used for read/write access an element of a MatrixRow. Internally, it just calls the .at method.
|
|
|
Assignment operator. This is the Assignment operator for an object of type MatrixRow. Use this to copy a specified MatrixRow object into another MatrixRow object. An error occurs if both objects have a different number of elements.
|
|
|
Overloaded const operator[]. This overloaded operator is used for read access an element of a const MatrixRow. Internally, it just calls the .at method.
|
|
|
Overloaded operator[]. This overloaded operator is used for read/write access an element of a MatrixRow by using matrix[i][j]. Internally, it just calls the .at method.
|
|
|
Output a MatrixRow object to an output stream. This method is used to output a MatrixRow object to an output stream.
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |