![]() |
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.ConstULHomogenousCoordsAdapter:Public Member Functions | |
| None | __init__ (ConstULHomogenousCoordsAdapter va) |
Contructs a copy of the ConstULHomogenousCoordsAdapter instance va. More... | |
| None | __init__ (ConstULVectorExpression 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... | |
| int | getElement (int i) |
| Returns the element at index i of the view. More... | |
| object | toArray () |
Converts the ConstULHomogenousCoordsAdapter instance into a corresponding numpy.ndarray object. More... | |
| ConstULVectorExpression | getData () |
| Returns the wrapped vector. More... | |
| bool | __eq__ (ConstULHomogenousCoordsAdapter va) |
Returns the result of the comparison operation self == va. More... | |
| bool | __eq__ (ConstULVectorExpression e) |
Returns the result of the comparison operation self == e. More... | |
| bool | __ne__ (ConstULHomogenousCoordsAdapter va) |
Returns the result of the comparison operation self != va. More... | |
| bool | __ne__ (ConstULVectorExpression e) |
Returns the result of the comparison operation self != e. More... | |
| int | __call__ (int i) |
| Returns the element at index i of the view. More... | |
| int | __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 ConstULHomogenousCoordsAdapter instance. More... | |
| ConstULHomogenousCoordsAdapter | __pos__ () |
| Returns self. More... | |
| ConstULVectorExpression | __neg__ () |
Returns the result of the operation self * -1. More... | |
| ConstULVectorExpression | __add__ (ConstULVectorExpression e) |
Returns the result of the addition operation self + e. More... | |
| ConstULVectorExpression | __sub__ (ConstULVectorExpression e) |
Returns the result of the subtraction operation self - e. More... | |
| ConstULVectorExpression | __mul__ (int t) |
Returns the result of the multiplication operation self * t. More... | |
| ConstULVectorExpression | __mul__ (ConstULMatrixExpression e) |
Returns the result of the multiplication operation self * e. More... | |
| ConstULVectorExpression | __div__ (int t) |
Returns the result of the division operation self // t. More... | |
| ConstULVectorExpression | __truediv__ (int t) |
Returns the result of the true division operation self / t. More... | |
| ConstULVectorExpression | __rmul__ (int 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.ConstULHomogenousCoordsAdapter.__init__ | ( | ConstULHomogenousCoordsAdapter | va | ) |
Contructs a copy of the ConstULHomogenousCoordsAdapter instance va.
| va | The ConstULHomogenousCoordsAdapter instance to copy. |
| None CDPL.Math.ConstULHomogenousCoordsAdapter.__init__ | ( | ConstULVectorExpression | v | ) |
Constructs the adapter wrapping v.
| v | The vector to be viewed as its homogeneous-coordinate extension. |
| int CDPL.Math.ConstULHomogenousCoordsAdapter.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python ConstULHomogenousCoordsAdapter 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 ConstULHomogenousCoordsAdapter 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.ConstULHomogenousCoordsAdapter.isEmpty | ( | ) |
Tells whether the view is empty (always False).
False. | int CDPL.Math.ConstULHomogenousCoordsAdapter.getSize | ( | ) |
Returns the dimensionality of the view (wrapped vector size + 1).
| int CDPL.Math.ConstULHomogenousCoordsAdapter.getElement | ( | int | i | ) |
Returns the element at index i of the view.
| i | The zero-based index within the view. |
| object CDPL.Math.ConstULHomogenousCoordsAdapter.toArray | ( | ) |
Converts the ConstULHomogenousCoordsAdapter instance into a corresponding numpy.ndarray object.
numpy.ndarray object. | ConstULVectorExpression CDPL.Math.ConstULHomogenousCoordsAdapter.getData | ( | ) |
Returns the wrapped vector.
| bool CDPL.Math.ConstULHomogenousCoordsAdapter.__eq__ | ( | ConstULHomogenousCoordsAdapter | va | ) |
Returns the result of the comparison operation self == va.
| va | The ConstULHomogenousCoordsAdapter instance to be compared with. |
| bool CDPL.Math.ConstULHomogenousCoordsAdapter.__eq__ | ( | ConstULVectorExpression | e | ) |
Returns the result of the comparison operation self == e.
| e | The ConstULVectorExpression instance to be compared with. |
| bool CDPL.Math.ConstULHomogenousCoordsAdapter.__ne__ | ( | ConstULHomogenousCoordsAdapter | va | ) |
Returns the result of the comparison operation self != va.
| va | The ConstULHomogenousCoordsAdapter instance to be compared with. |
| bool CDPL.Math.ConstULHomogenousCoordsAdapter.__ne__ | ( | ConstULVectorExpression | e | ) |
Returns the result of the comparison operation self != e.
| e | The ConstULVectorExpression instance to be compared with. |
| int CDPL.Math.ConstULHomogenousCoordsAdapter.__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. |
| int CDPL.Math.ConstULHomogenousCoordsAdapter.__getitem__ | ( | int | i | ) |
Returns the element at index i of the view.
| i | The zero-based index within the view. |
| int CDPL.Math.ConstULHomogenousCoordsAdapter.__len__ | ( | ) |
Returns the dimensionality of the view (wrapped vector size + 1).
| str CDPL.Math.ConstULHomogenousCoordsAdapter.__str__ | ( | ) |
Returns a string representation of the ConstULHomogenousCoordsAdapter instance.
| ConstULHomogenousCoordsAdapter CDPL.Math.ConstULHomogenousCoordsAdapter.__pos__ | ( | ) |
Returns self.
| ConstULVectorExpression CDPL.Math.ConstULHomogenousCoordsAdapter.__neg__ | ( | ) |
Returns the result of the operation self * -1.
ConstULVectorExpression instance holding the result of the element negation. | ConstULVectorExpression CDPL.Math.ConstULHomogenousCoordsAdapter.__add__ | ( | ConstULVectorExpression | e | ) |
Returns the result of the addition operation self + e.
| e | Specifies the second addend. |
ConstULVectorExpression instance holding the result of the addition. | ConstULVectorExpression CDPL.Math.ConstULHomogenousCoordsAdapter.__sub__ | ( | ConstULVectorExpression | e | ) |
Returns the result of the subtraction operation self - e.
| e | Specifies the subtrahend. |
ConstULHomogenousCoordsAdapter instance holding the result of the subtraction. | ConstULVectorExpression CDPL.Math.ConstULHomogenousCoordsAdapter.__mul__ | ( | int | t | ) |
Returns the result of the multiplication operation self * t.
| t | Specifies the multiplier. |
ConstULVectorExpression instance holding the result of the multiplication. | ConstULVectorExpression CDPL.Math.ConstULHomogenousCoordsAdapter.__mul__ | ( | ConstULMatrixExpression | e | ) |
Returns the result of the multiplication operation self * e.
| e | Specifies the multiplier. |
ConstULVectorExpression instance holding the result of the multiplication. | ConstULVectorExpression CDPL.Math.ConstULHomogenousCoordsAdapter.__div__ | ( | int | t | ) |
Returns the result of the division operation self // t.
| t | Specifies the divisor. |
ConstULVectorExpression instance holding the result of the division. | ConstULVectorExpression CDPL.Math.ConstULHomogenousCoordsAdapter.__truediv__ | ( | int | t | ) |
Returns the result of the true division operation self / t.
| t | Specifies the divisor. |
ConstULVectorExpression instance holding the result of the division. | ConstULVectorExpression CDPL.Math.ConstULHomogenousCoordsAdapter.__rmul__ | ( | int | t | ) |
Returns the result of the multiplication operation t * self.
| t | Specifies the multiplicand. |
ConstULVectorExpression instance holding the result of the multiplication.