![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Vector expression that exposes a vector as its homogeneous-coordinate extension by appending an implicit 1 at the end. More...
Inheritance diagram for CDPL.Math.ConstFHomogenousCoordsAdapter:Public Member Functions | |
| None | __init__ (ConstFHomogenousCoordsAdapter va) |
Contructs a copy of the ConstFHomogenousCoordsAdapter instance va. More... | |
| None | __init__ (ConstFVectorExpression v) |
| Constructs the adapter wrapping v. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| bool | isEmpty () |
Tells whether the view is empty (always False). More... | |
| int | getSize () |
| Returns the dimensionality of the view (wrapped vector size + 1). More... | |
| float | getElement (int i) |
| Returns the element at index i of the view. More... | |
| object | toArray () |
Converts the ConstFHomogenousCoordsAdapter instance into a corresponding numpy.ndarray object. More... | |
| ConstFVectorExpression | getData () |
| Returns the wrapped vector. More... | |
| bool | __eq__ (ConstFHomogenousCoordsAdapter va) |
Returns the result of the comparison operation self == va. More... | |
| bool | __eq__ (ConstFVectorExpression e) |
Returns the result of the comparison operation self == e. More... | |
| bool | __ne__ (ConstFHomogenousCoordsAdapter va) |
Returns the result of the comparison operation self != va. More... | |
| bool | __ne__ (ConstFVectorExpression e) |
Returns the result of the comparison operation self != e. More... | |
| float | __call__ (int i) |
| Returns the element at index i of the view. More... | |
| float | __getitem__ (int i) |
| Returns the element at index i of the view. More... | |
| int | __len__ () |
| Returns the dimensionality of the view (wrapped vector size + 1). More... | |
| str | __str__ () |
Returns a string representation of the ConstFHomogenousCoordsAdapter instance. More... | |
| ConstFHomogenousCoordsAdapter | __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... | |
Properties | |
| objectID = property(getObjectID) | |
| size = property(getSize) | |
| data = property(getData) | |
Vector expression that exposes a vector as its homogeneous-coordinate extension by appending an implicit 1 at the end.
| None CDPL.Math.ConstFHomogenousCoordsAdapter.__init__ | ( | ConstFHomogenousCoordsAdapter | va | ) |
Contructs a copy of the ConstFHomogenousCoordsAdapter instance va.
| va | The ConstFHomogenousCoordsAdapter instance to copy. |
| None CDPL.Math.ConstFHomogenousCoordsAdapter.__init__ | ( | ConstFVectorExpression | v | ) |
Constructs the adapter wrapping v.
| v | The vector to be viewed as its homogeneous-coordinate extension. |
| int CDPL.Math.ConstFHomogenousCoordsAdapter.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python ConstFHomogenousCoordsAdapter 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 ConstFHomogenousCoordsAdapter 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().
| bool CDPL.Math.ConstFHomogenousCoordsAdapter.isEmpty | ( | ) |
Tells whether the view is empty (always False).
False. | int CDPL.Math.ConstFHomogenousCoordsAdapter.getSize | ( | ) |
Returns the dimensionality of the view (wrapped vector size + 1).
| float CDPL.Math.ConstFHomogenousCoordsAdapter.getElement | ( | int | i | ) |
Returns the element at index i of the view.
| i | The zero-based index within the view. |
| object CDPL.Math.ConstFHomogenousCoordsAdapter.toArray | ( | ) |
Converts the ConstFHomogenousCoordsAdapter instance into a corresponding numpy.ndarray object.
numpy.ndarray object. | ConstFVectorExpression CDPL.Math.ConstFHomogenousCoordsAdapter.getData | ( | ) |
Returns the wrapped vector.
| bool CDPL.Math.ConstFHomogenousCoordsAdapter.__eq__ | ( | ConstFHomogenousCoordsAdapter | va | ) |
Returns the result of the comparison operation self == va.
| va | The ConstFHomogenousCoordsAdapter instance to be compared with. |
| bool CDPL.Math.ConstFHomogenousCoordsAdapter.__eq__ | ( | ConstFVectorExpression | e | ) |
Returns the result of the comparison operation self == e.
| e | The ConstFVectorExpression instance to be compared with. |
| bool CDPL.Math.ConstFHomogenousCoordsAdapter.__ne__ | ( | ConstFHomogenousCoordsAdapter | va | ) |
Returns the result of the comparison operation self != va.
| va | The ConstFHomogenousCoordsAdapter instance to be compared with. |
| bool CDPL.Math.ConstFHomogenousCoordsAdapter.__ne__ | ( | ConstFVectorExpression | e | ) |
Returns the result of the comparison operation self != e.
| e | The ConstFVectorExpression instance to be compared with. |
| float CDPL.Math.ConstFHomogenousCoordsAdapter.__call__ | ( | int | i | ) |
Returns the element at index i of the view.
At index getSize() - 1 the method returns the extension element (initialized to 1). At lower indices it returns the corresponding element of the wrapped vector.
| i | The zero-based index within the view. |
| float CDPL.Math.ConstFHomogenousCoordsAdapter.__getitem__ | ( | int | i | ) |
Returns the element at index i of the view.
| i | The zero-based index within the view. |
| int CDPL.Math.ConstFHomogenousCoordsAdapter.__len__ | ( | ) |
Returns the dimensionality of the view (wrapped vector size + 1).
| str CDPL.Math.ConstFHomogenousCoordsAdapter.__str__ | ( | ) |
Returns a string representation of the ConstFHomogenousCoordsAdapter instance.
| ConstFHomogenousCoordsAdapter CDPL.Math.ConstFHomogenousCoordsAdapter.__pos__ | ( | ) |
Returns self.
| ConstFVectorExpression CDPL.Math.ConstFHomogenousCoordsAdapter.__neg__ | ( | ) |
Returns the result of the operation self * -1.
ConstFVectorExpression instance holding the result of the element negation. | ConstFVectorExpression CDPL.Math.ConstFHomogenousCoordsAdapter.__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.ConstFHomogenousCoordsAdapter.__sub__ | ( | ConstFVectorExpression | e | ) |
Returns the result of the subtraction operation self - e.
| e | Specifies the subtrahend. |
ConstFHomogenousCoordsAdapter instance holding the result of the subtraction. | ConstFVectorExpression CDPL.Math.ConstFHomogenousCoordsAdapter.__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.ConstFHomogenousCoordsAdapter.__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.ConstFHomogenousCoordsAdapter.__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.ConstFHomogenousCoordsAdapter.__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.ConstFHomogenousCoordsAdapter.__rmul__ | ( | float | t | ) |
Returns the result of the multiplication operation t * self.
| t | Specifies the multiplicand. |
ConstFVectorExpression instance holding the result of the multiplication.