![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Vector expression proxy that views a single row of an underlying matrix. More...
Inheritance diagram for CDPL.Math.FMatrixRow:Public Member Functions | |
| None | __init__ (FMatrixRow mr) |
Contructs a copy of the FMatrixRow instance mr. More... | |
| None | __init__ (FMatrixExpression m, int i) |
| Constructs the row proxy viewing row i of m. More... | |
| int | getIndex () |
| Returns the row index this proxy refers to within the wrapped matrix. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| FMatrixRow | assign (ConstFVectorExpression e) |
| Assigns the elements of the vector expression e to this row (via a temporary to handle aliasing). More... | |
| FMatrixRow | assign (ConstDVectorExpression e) |
| Assigns the elements of the vector expression e to this row (via a temporary to handle aliasing). More... | |
| FMatrixRow | assign (ConstLVectorExpression e) |
| Assigns the elements of the vector expression e to this row (via a temporary to handle aliasing). More... | |
| FMatrixRow | assign (ConstULVectorExpression e) |
| Assigns the elements of the vector expression e to this row (via a temporary to handle aliasing). More... | |
| FMatrixRow | assign (FMatrixRow r) |
| Copy-assigns the contents of r to this row (via a temporary to handle aliasing). More... | |
| FMatrixRow | assign (object a) |
Assigns the contents of the numpy.ndarray object a to this row. More... | |
| bool | isEmpty () |
| Tells whether the row is empty (the wrapped matrix has zero columns). More... | |
| int | getSize () |
| Returns the size of the row (number of columns of the wrapped matrix). More... | |
| float | getElement (int i) |
| Returns the element at column i of the row. More... | |
| object | toArray () |
Converts the FMatrixRow instance into a corresponding numpy.ndarray object. More... | |
| None | swap (FMatrixRow r) |
| Swaps the contents of this row with those of r (via element-wise swap of the underlying matrix elements). More... | |
| None | setElement (int i, float v) |
| Sets the value of the element at column i of the row to v. More... | |
| FMatrixExpression | getData () |
| Returns the wrapped matrix. More... | |
| bool | __eq__ (FMatrixRow r) |
Returns the result of the comparison operation self == r. More... | |
| bool | __eq__ (ConstFVectorExpression e) |
Returns the result of the comparison operation self == e. More... | |
| bool | __ne__ (FMatrixRow r) |
Returns the result of the comparison operation self != r. More... | |
| bool | __ne__ (ConstFVectorExpression e) |
Returns the result of the comparison operation self != e. More... | |
| float | __call__ (int i) |
| Returns the element at column i of the row. More... | |
| float | __getitem__ (int i) |
| Returns the element at column i of the row. More... | |
| int | __len__ () |
| Returns the size of the row (number of columns of the wrapped matrix). More... | |
| str | __str__ () |
Returns a string representation of the FMatrixRow instance. More... | |
| FMatrixRow | __pos__ () |
| Returns self. More... | |
| ConstFVectorExpression | __neg__ () |
Returns the result of the operation self * -1. More... | |
| ConstFVectorExpression | __add__ (ConstFVectorExpression e) |
Returns the result of the addition operation self + e. More... | |
| ConstFVectorExpression | __sub__ (ConstFVectorExpression e) |
Returns the result of the subtraction operation self - e. More... | |
| ConstFVectorExpression | __mul__ (float t) |
Returns the result of the multiplication operation self * t. More... | |
| ConstFVectorExpression | __mul__ (ConstFMatrixExpression e) |
Returns the result of the multiplication operation self * e. More... | |
| ConstFVectorExpression | __div__ (float t) |
Returns the result of the division operation self // t. More... | |
| ConstFVectorExpression | __truediv__ (float t) |
Returns the result of the true division operation self / t. More... | |
| ConstFVectorExpression | __rmul__ (float t) |
Returns the result of the multiplication operation t * self. More... | |
| None | __setitem__ (int i, float v) |
| Sets the value of the element at column i of the row to v. More... | |
| FMatrixRow | __iadd__ (FMatrixRow r) |
| Adds the elements of the matrix row r to this row (via a temporary to handle aliasing). More... | |
| FMatrixRow | __iadd__ (ConstFVectorExpression e) |
| Adds the elements of the vector expression e to this row (via a temporary to handle aliasing). More... | |
| FMatrixRow | __isub__ (FMatrixRow r) |
| Subtracts the elements of the matrix row r from this row (via a temporary to handle aliasing). More... | |
| FMatrixRow | __isub__ (ConstFVectorExpression e) |
| Subtracts the elements of the vector expression e from this row (via a temporary to handle aliasing). More... | |
| FMatrixRow | __imul__ (float t) |
| Multiplies every element of this row by the scalar t. More... | |
| FMatrixRow | __idiv__ (float t) |
| Divides every element of this row by the scalar t. More... | |
| FMatrixRow | __itruediv__ (float t) |
| Divides every element of this row by the scalar t. More... | |
Properties | |
| objectID = property(getObjectID) | |
| size = property(getSize) | |
| data = property(getData) | |
| index = property(getIndex) | |
Vector expression proxy that views a single row of an underlying matrix.
| None CDPL.Math.FMatrixRow.__init__ | ( | FMatrixRow | mr | ) |
Contructs a copy of the FMatrixRow instance mr.
| mr | The FMatrixRow instance to copy. |
| None CDPL.Math.FMatrixRow.__init__ | ( | FMatrixExpression | m, |
| int | i | ||
| ) |
Constructs the row proxy viewing row i of m.
| m | The wrapped matrix. |
| i | The zero-based row index to view. |
| int CDPL.Math.FMatrixRow.getIndex | ( | ) |
Returns the row index this proxy refers to within the wrapped matrix.
| int CDPL.Math.FMatrixRow.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python FMatrixRow instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two FMatrixRow instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().
| FMatrixRow CDPL.Math.FMatrixRow.assign | ( | ConstFVectorExpression | e | ) |
Assigns the elements of the vector expression e to this row (via a temporary to handle aliasing).
| e | The source vector expression. |
| FMatrixRow CDPL.Math.FMatrixRow.assign | ( | ConstDVectorExpression | e | ) |
Assigns the elements of the vector expression e to this row (via a temporary to handle aliasing).
| e | The source vector expression. |
| FMatrixRow CDPL.Math.FMatrixRow.assign | ( | ConstLVectorExpression | e | ) |
Assigns the elements of the vector expression e to this row (via a temporary to handle aliasing).
| e | The source vector expression. |
| FMatrixRow CDPL.Math.FMatrixRow.assign | ( | ConstULVectorExpression | e | ) |
Assigns the elements of the vector expression e to this row (via a temporary to handle aliasing).
| e | The source vector expression. |
| FMatrixRow CDPL.Math.FMatrixRow.assign | ( | FMatrixRow | r | ) |
Copy-assigns the contents of r to this row (via a temporary to handle aliasing).
| r | The source row. |
| FMatrixRow CDPL.Math.FMatrixRow.assign | ( | object | a | ) |
Assigns the contents of the numpy.ndarray object a to this row.
| a | The numpy.ndarray object. |
| bool CDPL.Math.FMatrixRow.isEmpty | ( | ) |
Tells whether the row is empty (the wrapped matrix has zero columns).
True if the wrapped matrix has zero columns, and False otherwise. | int CDPL.Math.FMatrixRow.getSize | ( | ) |
Returns the size of the row (number of columns of the wrapped matrix).
| float CDPL.Math.FMatrixRow.getElement | ( | int | i | ) |
Returns the element at column i of the row.
| i | The zero-based column index. |
m(index, i). | object CDPL.Math.FMatrixRow.toArray | ( | ) |
Converts the FMatrixRow instance into a corresponding numpy.ndarray object.
numpy.ndarray object. | None CDPL.Math.FMatrixRow.swap | ( | FMatrixRow | r | ) |
Swaps the contents of this row with those of r (via element-wise swap of the underlying matrix elements).
| r | The row to swap with. |
| None CDPL.Math.FMatrixRow.setElement | ( | int | i, |
| float | v | ||
| ) |
Sets the value of the element at column i of the row to v.
| i | The zero-based column index. |
| v | The new value of the element. |
| Base.IndexError | if i is not in the range [0, getSize()). |
| FMatrixExpression CDPL.Math.FMatrixRow.getData | ( | ) |
Returns the wrapped matrix.
| bool CDPL.Math.FMatrixRow.__eq__ | ( | FMatrixRow | r | ) |
Returns the result of the comparison operation self == r.
| r | The FMatrixRow instance to be compared with. |
| bool CDPL.Math.FMatrixRow.__eq__ | ( | ConstFVectorExpression | e | ) |
Returns the result of the comparison operation self == e.
| e | The ConstFVectorExpression instance to be compared with. |
| bool CDPL.Math.FMatrixRow.__ne__ | ( | FMatrixRow | r | ) |
Returns the result of the comparison operation self != r.
| r | The FMatrixRow instance to be compared with. |
| bool CDPL.Math.FMatrixRow.__ne__ | ( | ConstFVectorExpression | e | ) |
Returns the result of the comparison operation self != e.
| e | The ConstFVectorExpression instance to be compared with. |
| float CDPL.Math.FMatrixRow.__call__ | ( | int | i | ) |
Returns the element at column i of the row.
| i | The zero-based column index. |
m(index, i). | float CDPL.Math.FMatrixRow.__getitem__ | ( | int | i | ) |
Returns the element at column i of the row.
| i | The zero-based column index. |
m(index, i). | int CDPL.Math.FMatrixRow.__len__ | ( | ) |
Returns the size of the row (number of columns of the wrapped matrix).
| str CDPL.Math.FMatrixRow.__str__ | ( | ) |
Returns a string representation of the FMatrixRow instance.
| FMatrixRow CDPL.Math.FMatrixRow.__pos__ | ( | ) |
Returns self.
| ConstFVectorExpression CDPL.Math.FMatrixRow.__neg__ | ( | ) |
Returns the result of the operation self * -1.
ConstFVectorExpression instance holding the result of the element negation. | ConstFVectorExpression CDPL.Math.FMatrixRow.__add__ | ( | ConstFVectorExpression | e | ) |
Returns the result of the addition operation self + e.
| e | Specifies the second addend. |
ConstFVectorExpression instance holding the result of the addition. | ConstFVectorExpression CDPL.Math.FMatrixRow.__sub__ | ( | ConstFVectorExpression | e | ) |
Returns the result of the subtraction operation self - e.
| e | Specifies the subtrahend. |
FMatrixRow instance holding the result of the subtraction. | ConstFVectorExpression CDPL.Math.FMatrixRow.__mul__ | ( | float | t | ) |
Returns the result of the multiplication operation self * t.
| t | Specifies the multiplier. |
ConstFVectorExpression instance holding the result of the multiplication. | ConstFVectorExpression CDPL.Math.FMatrixRow.__mul__ | ( | ConstFMatrixExpression | e | ) |
Returns the result of the multiplication operation self * e.
| e | Specifies the multiplier. |
ConstFVectorExpression instance holding the result of the multiplication. | ConstFVectorExpression CDPL.Math.FMatrixRow.__div__ | ( | float | t | ) |
Returns the result of the division operation self // t.
| t | Specifies the divisor. |
ConstFVectorExpression instance holding the result of the division. | ConstFVectorExpression CDPL.Math.FMatrixRow.__truediv__ | ( | float | t | ) |
Returns the result of the true division operation self / t.
| t | Specifies the divisor. |
ConstFVectorExpression instance holding the result of the division. | ConstFVectorExpression CDPL.Math.FMatrixRow.__rmul__ | ( | float | t | ) |
Returns the result of the multiplication operation t * self.
| t | Specifies the multiplicand. |
ConstFVectorExpression instance holding the result of the multiplication. | None CDPL.Math.FMatrixRow.__setitem__ | ( | int | i, |
| float | v | ||
| ) |
Sets the value of the element at column i of the row to v.
| i | The zero-based column index. |
| v | The new value of the element. |
| Base.IndexError | if i is not in the range [0, getSize()). |
| FMatrixRow CDPL.Math.FMatrixRow.__iadd__ | ( | FMatrixRow | r | ) |
Adds the elements of the matrix row r to this row (via a temporary to handle aliasing).
| r | The source matrix row. |
| FMatrixRow CDPL.Math.FMatrixRow.__iadd__ | ( | ConstFVectorExpression | e | ) |
Adds the elements of the vector expression e to this row (via a temporary to handle aliasing).
| e | The source vector expression. |
| FMatrixRow CDPL.Math.FMatrixRow.__isub__ | ( | FMatrixRow | r | ) |
Subtracts the elements of the matrix row r from this row (via a temporary to handle aliasing).
| r | The source matrix row. |
| FMatrixRow CDPL.Math.FMatrixRow.__isub__ | ( | ConstFVectorExpression | e | ) |
Subtracts the elements of the vector expression e from this row (via a temporary to handle aliasing).
| e | The source vector expression. |
| FMatrixRow CDPL.Math.FMatrixRow.__imul__ | ( | float | t | ) |
Multiplies every element of this row by the scalar t.
| t | The scalar multiplier. |
| FMatrixRow CDPL.Math.FMatrixRow.__idiv__ | ( | float | t | ) |
Divides every element of this row by the scalar t.
| t | The scalar divisor. |
| FMatrixRow CDPL.Math.FMatrixRow.__itruediv__ | ( | float | t | ) |
Divides every element of this row by the scalar t.
| t | The scalar divisor. |