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