![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
A memory-efficient pure-real quaternion with component values of type long.
More...
Inheritance diagram for CDPL.Math.LRealQuaternion:Public Member Functions | |
| None | __init__ () |
| Constructs a zero-valued real quaternion (C1 = 0). | |
| None | __init__ (LRealQuaternion q) |
| Constructs a copy of the real quaternion q (possibly converting the component type). More... | |
| None | __init__ (int r) |
| Constructs the real quaternion with the supplied real component. More... | |
| LRealQuaternion | set (int r=0) |
| Assigns the scalar r to the real component. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| int | getC1 () |
| Returns the real component C1. More... | |
| int | getC2 () |
| Returns the imaginary component C2 (always zero for a real quaternion). More... | |
| int | getC3 () |
| Returns the imaginary component C3 (always zero for a real quaternion). More... | |
| int | getC4 () |
| Returns the imaginary component C4 (always zero for a real quaternion). More... | |
| object | toArray () |
Converts the LRealQuaternion instance into a corresponding numpy.ndarray object. More... | |
| LRealQuaternion | assign (LRealQuaternion q) |
| Copy-assigns the real component from q. More... | |
| None | swap (LRealQuaternion q) |
| Swaps the real component value with q. More... | |
| LRealQuaternion | __iadd__ (int t) |
| Adds the scalar t to the real component. More... | |
| LRealQuaternion | __iadd__ (object q) |
| Adds the real component of q to this quaternion's real component. More... | |
| LRealQuaternion | __isub__ (int t) |
| Subtracts the scalar t from the real component. More... | |
| LRealQuaternion | __isub__ (object q) |
| Subtracts the real component of q from this quaternion's real component. More... | |
| LRealQuaternion | __imul__ (int t) |
| Multiplies the real component by the scalar t. More... | |
| LRealQuaternion | __imul__ (object q) |
| Multiplies the real component by the real component of q. More... | |
| LRealQuaternion | __idiv__ (int t) |
| Divides the real component by the scalar t. More... | |
| LRealQuaternion | __idiv__ (object q) |
| Divides the real component by the real component of q. More... | |
| LRealQuaternion | __itruediv__ (int t) |
| Divides the real component by the scalar t. More... | |
| LRealQuaternion | __itruediv__ (object q) |
| Divides the real component by the real component of q. More... | |
| bool | __eq__ (LRealQuaternion q) |
Returns the result of the comparison operation self == q. More... | |
| bool | __eq__ (ConstLQuaternionExpression q) |
Returns the result of the comparison operation self == q. More... | |
| bool | __ne__ (LRealQuaternion q) |
Returns the result of the comparison operation self != q. More... | |
| bool | __ne__ (ConstLQuaternionExpression q) |
Returns the result of the comparison operation self != q. More... | |
| str | __str__ () |
Returns a string representation of the LRealQuaternion instance. More... | |
| LRealQuaternion | __pos__ () |
| Returns self. More... | |
| ConstLQuaternionExpression | __neg__ () |
Returns the result of the operation self * -1. More... | |
| ConstLQuaternionExpression | __add__ (int t) |
Returns the result of the addition operation self + t. More... | |
| ConstLQuaternionExpression | __add__ (ConstLQuaternionExpression e) |
Returns the result of the addition operation self + e. More... | |
| ConstLQuaternionExpression | __radd__ (int t) |
Returns the result of the addition operation t + self. More... | |
| ConstLQuaternionExpression | __sub__ (int t) |
Returns the result of the subtraction operation self - t. More... | |
| ConstLQuaternionExpression | __sub__ (ConstLQuaternionExpression e) |
Returns the result of the subtraction operation self - e. More... | |
| ConstLQuaternionExpression | __rsub__ (int t) |
Returns the result of the subtraction operation t - self. More... | |
| ConstLQuaternionExpression | __mul__ (int t) |
Returns the result of the multiplication operation self * t. More... | |
| ConstLQuaternionExpression | __mul__ (ConstLQuaternionExpression e) |
Returns the result of the multiplication operation self * e. More... | |
| ConstLQuaternionExpression | __rmul__ (int t) |
Returns the result of the multiplication operation t * self. More... | |
| ConstLQuaternionExpression | __div__ (int t) |
Returns the result of the division operation self // t. More... | |
| ConstLQuaternionExpression | __div__ (ConstLQuaternionExpression e) |
Returns the result of the division operation self // e. More... | |
| ConstLQuaternionExpression | __truediv__ (int t) |
Returns the result of the true division operation self / t. More... | |
| ConstLQuaternionExpression | __rdiv__ (int t) |
Returns the result of the division operation t // self. More... | |
Properties | |
| objectID = property(getObjectID) | |
A memory-efficient pure-real quaternion with component values of type long.
| None CDPL.Math.LRealQuaternion.__init__ | ( | LRealQuaternion | q | ) |
Constructs a copy of the real quaternion q (possibly converting the component type).
| q | The real quaternion to copy. |
| None CDPL.Math.LRealQuaternion.__init__ | ( | int | r | ) |
Constructs the real quaternion with the supplied real component.
| r | The real component value. |
| LRealQuaternion CDPL.Math.LRealQuaternion.set | ( | int | r = 0 | ) |
Assigns the scalar r to the real component.
| r | The scalar value. |
| int CDPL.Math.LRealQuaternion.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python LRealQuaternion 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 LRealQuaternion 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().
| int CDPL.Math.LRealQuaternion.getC1 | ( | ) |
Returns the real component C1.
| int CDPL.Math.LRealQuaternion.getC2 | ( | ) |
Returns the imaginary component C2 (always zero for a real quaternion).
| int CDPL.Math.LRealQuaternion.getC3 | ( | ) |
Returns the imaginary component C3 (always zero for a real quaternion).
| int CDPL.Math.LRealQuaternion.getC4 | ( | ) |
Returns the imaginary component C4 (always zero for a real quaternion).
| object CDPL.Math.LRealQuaternion.toArray | ( | ) |
Converts the LRealQuaternion instance into a corresponding numpy.ndarray object.
numpy.ndarray object. | LRealQuaternion CDPL.Math.LRealQuaternion.assign | ( | LRealQuaternion | q | ) |
Copy-assigns the real component from q.
| q | The source real quaternion. |
| None CDPL.Math.LRealQuaternion.swap | ( | LRealQuaternion | q | ) |
Swaps the real component value with q.
| q | The real quaternion to swap with. |
| LRealQuaternion CDPL.Math.LRealQuaternion.__iadd__ | ( | int | t | ) |
Adds the scalar t to the real component.
| t | The scalar addend. |
| LRealQuaternion CDPL.Math.LRealQuaternion.__iadd__ | ( | object | q | ) |
Adds the real component of q to this quaternion's real component.
| q | The source real quaternion. |
| LRealQuaternion CDPL.Math.LRealQuaternion.__isub__ | ( | int | t | ) |
Subtracts the scalar t from the real component.
| t | The scalar subtrahend. |
| LRealQuaternion CDPL.Math.LRealQuaternion.__isub__ | ( | object | q | ) |
Subtracts the real component of q from this quaternion's real component.
| q | The source real quaternion. |
| LRealQuaternion CDPL.Math.LRealQuaternion.__imul__ | ( | int | t | ) |
Multiplies the real component by the scalar t.
| t | The scalar multiplier. |
| LRealQuaternion CDPL.Math.LRealQuaternion.__imul__ | ( | object | q | ) |
Multiplies the real component by the real component of q.
| q | The source real quaternion. |
| LRealQuaternion CDPL.Math.LRealQuaternion.__idiv__ | ( | int | t | ) |
Divides the real component by the scalar t.
| t | The scalar divisor. |
| LRealQuaternion CDPL.Math.LRealQuaternion.__idiv__ | ( | object | q | ) |
Divides the real component by the real component of q.
| q | The source real quaternion. |
| LRealQuaternion CDPL.Math.LRealQuaternion.__itruediv__ | ( | int | t | ) |
Divides the real component by the scalar t.
| t | The scalar divisor. |
| LRealQuaternion CDPL.Math.LRealQuaternion.__itruediv__ | ( | object | q | ) |
Divides the real component by the real component of q.
| q | The source real quaternion. |
| bool CDPL.Math.LRealQuaternion.__eq__ | ( | LRealQuaternion | q | ) |
Returns the result of the comparison operation self == q.
| q | The LRealQuaternion instance to be compared with. |
| bool CDPL.Math.LRealQuaternion.__eq__ | ( | ConstLQuaternionExpression | q | ) |
Returns the result of the comparison operation self == q.
| q | The ConstLQuaternionExpression instance to be compared with. |
| bool CDPL.Math.LRealQuaternion.__ne__ | ( | LRealQuaternion | q | ) |
Returns the result of the comparison operation self != q.
| q | The LRealQuaternion instance to be compared with. |
| bool CDPL.Math.LRealQuaternion.__ne__ | ( | ConstLQuaternionExpression | q | ) |
Returns the result of the comparison operation self != q.
| q | The ConstLQuaternionExpression instance to be compared with. |
| str CDPL.Math.LRealQuaternion.__str__ | ( | ) |
Returns a string representation of the LRealQuaternion instance.
| LRealQuaternion CDPL.Math.LRealQuaternion.__pos__ | ( | ) |
Returns self.
| ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__neg__ | ( | ) |
Returns the result of the operation self * -1.
ConstLQuaternionExpression instance holding the result of the element negation. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__add__ | ( | int | t | ) |
Returns the result of the addition operation self + t.
| t | Specifies the second addend. |
ConstLQuaternionExpression instance holding the result of the addition. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__add__ | ( | ConstLQuaternionExpression | e | ) |
Returns the result of the addition operation self + e.
| e | Specifies the second addend. |
ConstLQuaternionExpression instance holding the result of the addition. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__radd__ | ( | int | t | ) |
Returns the result of the addition operation t + self.
| t | Specifies the first addend. |
ConstLQuaternionExpression instance holding the result of the addition. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__sub__ | ( | int | t | ) |
Returns the result of the subtraction operation self - t.
| t | Specifies the subtrahend. |
LRealQuaternion instance holding the result of the subtraction. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__sub__ | ( | ConstLQuaternionExpression | e | ) |
Returns the result of the subtraction operation self - e.
| e | Specifies the subtrahend. |
LRealQuaternion instance holding the result of the subtraction. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__rsub__ | ( | int | t | ) |
Returns the result of the subtraction operation t - self.
| t | Specifies the minuend. |
LRealQuaternion instance holding the result of the subtraction. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__mul__ | ( | int | t | ) |
Returns the result of the multiplication operation self * t.
| t | Specifies the multiplier. |
ConstLQuaternionExpression instance holding the result of the multiplication. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__mul__ | ( | ConstLQuaternionExpression | e | ) |
Returns the result of the multiplication operation self * e.
| e | Specifies the multiplier. |
ConstLQuaternionExpression instance holding the result of the multiplication. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__rmul__ | ( | int | t | ) |
Returns the result of the multiplication operation t * self.
| t | Specifies the multiplicand. |
ConstLQuaternionExpression instance holding the result of the multiplication. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__div__ | ( | int | t | ) |
Returns the result of the division operation self // t.
| t | Specifies the divisor. |
ConstLQuaternionExpression instance holding the result of the division. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__div__ | ( | ConstLQuaternionExpression | e | ) |
Returns the result of the division operation self // e.
| e | Specifies the divisor. |
ConstLQuaternionExpression instance holding the result of the division. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__truediv__ | ( | int | t | ) |
Returns the result of the true division operation self / t.
| t | Specifies the divisor. |
ConstLQuaternionExpression instance holding the result of the division. | ConstLQuaternionExpression CDPL.Math.LRealQuaternion.__rdiv__ | ( | int | t | ) |
Returns the result of the division operation t // self.
| t | Specifies the dividend. |
ConstLQuaternionExpression instance holding the result of the division.