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