![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Mutable view adapter that exposes the transpose of a matrix M as a matrix expression ( \( (i, j) \to M(j, i) \)). More...
Inheritance diagram for CDPL.Math.LMatrixTranspose:Public Member Functions | |
| None | __init__ (LMatrixTranspose mt) |
Contructs a copy of the LMatrixTranspose instance mt. More... | |
| None | __init__ (LMatrixExpression m) |
| Constructs the transpose view proxy referring to m. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| LMatrixTranspose | assign (ConstFMatrixExpression e) |
| Assigns the matrix expression e to this transpose view (writes the transpose into the wrapped matrix). More... | |
| LMatrixTranspose | assign (ConstDMatrixExpression e) |
| Assigns the matrix expression e to this transpose view (writes the transpose into the wrapped matrix). More... | |
| LMatrixTranspose | assign (ConstLMatrixExpression e) |
| Assigns the matrix expression e to this transpose view (writes the transpose into the wrapped matrix). More... | |
| LMatrixTranspose | assign (ConstULMatrixExpression e) |
| Assigns the matrix expression e to this transpose view (writes the transpose into the wrapped matrix). More... | |
| LMatrixTranspose | assign (LMatrixTranspose mt) |
| Copy-assigns the wrapped matrix from the contents of mt's wrapped matrix. More... | |
| None | assign (object a) |
Assigns the contents of the 2D numpy.ndarray object a to this transpose view. More... | |
| int | getSize1 () |
| Returns the number of rows of the transpose view (= number of columns of the wrapped matrix). More... | |
| int | getSize2 () |
| Returns the number of columns of the transpose view (= number of rows of the wrapped matrix). More... | |
| bool | isEmpty () |
| Tells whether the view is empty (the wrapped matrix has zero rows or zero columns). More... | |
| int | getElement (int i, int j) |
| Returns the wrapped matrix's element at (j, i). More... | |
| object | toArray () |
Converts the LMatrixTranspose instance into a corresponding numpy.ndarray object. More... | |
| None | swap (LMatrixTranspose mt) |
| Swaps the underlying matrices of the two transpose views. More... | |
| None | setElement (int i, int j, int v) |
| Sets the value of the wrapped matrix's element at (j, i) to v. More... | |
| LMatrixExpression | getData () |
| Returns the wrapped matrix. More... | |
| int | __call__ (int i, int j) |
| Returns the wrapped matrix's element at (j, i). More... | |
| int | __getitem__ (tuple ij) |
| Returns the wrapped matrix's element at (j, i). More... | |
| int | __len__ () |
| Returns the number of rows of the transpose view (= number of columns of the wrapped matrix). More... | |
| bool | __eq__ (LMatrixTranspose mt) |
Returns the result of the comparison operation self == mt. More... | |
| bool | __eq__ (ConstLMatrixExpression e) |
Returns the result of the comparison operation self == e. More... | |
| bool | __ne__ (LMatrixTranspose mt) |
Returns the result of the comparison operation self != mt. More... | |
| bool | __ne__ (ConstLMatrixExpression e) |
Returns the result of the comparison operation self != e. More... | |
| str | __str__ () |
Returns a string representation of the LMatrixTranspose instance. More... | |
| LMatrixTranspose | __pos__ () |
| Returns self. More... | |
| ConstLMatrixExpression | __neg__ () |
Returns the result of the operation self * -1. More... | |
| ConstLMatrixExpression | __add__ (ConstLMatrixExpression e) |
Returns the result of the addition operation self + e. More... | |
| ConstLMatrixExpression | __sub__ (ConstLMatrixExpression e) |
Returns the result of the subtraction operation self - e. More... | |
| ConstLMatrixExpression | __mul__ (int t) |
Returns the result of the multiplication operation self * t. More... | |
| ConstLMatrixExpression | __mul__ (ConstLMatrixExpression e) |
Returns the result of the multiplication operation self * e. More... | |
| ConstLVectorExpression | __mul__ (ConstLVectorExpression e) |
Returns the result of the multiplication operation self * e. More... | |
| ConstLMatrixExpression | __div__ (int t) |
Returns the result of the division operation self // t. More... | |
| ConstLMatrixExpression | __truediv__ (int t) |
Returns the result of the true division operation self / t. More... | |
| ConstLMatrixExpression | __rmul__ (int t) |
Returns the result of the multiplication operation t * self. More... | |
| None | __setitem__ (tuple ij, int v) |
| LMatrixTranspose | __iadd__ (LMatrixTranspose mt) |
| Adds the matrix transpose mt to this transpose view. More... | |
| LMatrixTranspose | __iadd__ (ConstLMatrixExpression e) |
| Adds the matrix expression e to this transpose view. More... | |
| LMatrixTranspose | __isub__ (LMatrixTranspose mt) |
| Subtracts the matrix transpose mt from this transpose view. More... | |
| LMatrixTranspose | __isub__ (ConstLMatrixExpression e) |
| Subtracts the matrix expression e from this transpose view. More... | |
| LMatrixTranspose | __imul__ (int t) |
| Multiplies every element of the wrapped matrix by the scalar t. More... | |
| LMatrixTranspose | __idiv__ (int t) |
| Divides every element of the wrapped matrix by the scalar t. More... | |
| LMatrixTranspose | __itruediv__ (int t) |
| Divides every element of the wrapped matrix by the scalar t. More... | |
Properties | |
| objectID = property(getObjectID) | |
| size1 = property(getSize1) | |
| size2 = property(getSize2) | |
| data = property(getData) | |
Mutable view adapter that exposes the transpose of a matrix M as a matrix expression ( \( (i, j) \to M(j, i) \)).
| None CDPL.Math.LMatrixTranspose.__init__ | ( | LMatrixTranspose | mt | ) |
Contructs a copy of the LMatrixTranspose instance mt.
| mt | The LMatrixTranspose instance to copy. |
| None CDPL.Math.LMatrixTranspose.__init__ | ( | LMatrixExpression | m | ) |
Constructs the transpose view proxy referring to m.
| m | The wrapped matrix. |
| int CDPL.Math.LMatrixTranspose.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python LMatrixTranspose 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 LMatrixTranspose 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().
| LMatrixTranspose CDPL.Math.LMatrixTranspose.assign | ( | ConstFMatrixExpression | e | ) |
Assigns the matrix expression e to this transpose view (writes the transpose into the wrapped matrix).
| e | The source matrix expression. |
| LMatrixTranspose CDPL.Math.LMatrixTranspose.assign | ( | ConstDMatrixExpression | e | ) |
Assigns the matrix expression e to this transpose view (writes the transpose into the wrapped matrix).
| e | The source matrix expression. |
| LMatrixTranspose CDPL.Math.LMatrixTranspose.assign | ( | ConstLMatrixExpression | e | ) |
Assigns the matrix expression e to this transpose view (writes the transpose into the wrapped matrix).
| e | The source matrix expression. |
| LMatrixTranspose CDPL.Math.LMatrixTranspose.assign | ( | ConstULMatrixExpression | e | ) |
Assigns the matrix expression e to this transpose view (writes the transpose into the wrapped matrix).
| e | The source matrix expression. |
| LMatrixTranspose CDPL.Math.LMatrixTranspose.assign | ( | LMatrixTranspose | mt | ) |
Copy-assigns the wrapped matrix from the contents of mt's wrapped matrix.
| mt | The source transpose view. |
| None CDPL.Math.LMatrixTranspose.assign | ( | object | a | ) |
Assigns the contents of the 2D numpy.ndarray object a to this transpose view.
| a | The numpy.ndarray object. |
| int CDPL.Math.LMatrixTranspose.getSize1 | ( | ) |
Returns the number of rows of the transpose view (= number of columns of the wrapped matrix).
| int CDPL.Math.LMatrixTranspose.getSize2 | ( | ) |
Returns the number of columns of the transpose view (= number of rows of the wrapped matrix).
| bool CDPL.Math.LMatrixTranspose.isEmpty | ( | ) |
Tells whether the view is empty (the wrapped matrix has zero rows or zero columns).
True if the wrapped matrix is empty, and False otherwise. | int CDPL.Math.LMatrixTranspose.getElement | ( | int | i, |
| int | j | ||
| ) |
Returns the wrapped matrix's element at (j, i).
| i | The zero-based row index in the transposed view. |
| j | The zero-based column index in the transposed view. |
m(j, i). | object CDPL.Math.LMatrixTranspose.toArray | ( | ) |
Converts the LMatrixTranspose instance into a corresponding numpy.ndarray object.
numpy.ndarray object. | None CDPL.Math.LMatrixTranspose.swap | ( | LMatrixTranspose | mt | ) |
Swaps the underlying matrices of the two transpose views.
| mt | The transpose view to swap with. |
| None CDPL.Math.LMatrixTranspose.setElement | ( | int | i, |
| int | j, | ||
| int | v | ||
| ) |
Sets the value of the wrapped matrix's element at (j, i) to v.
| i | The zero-based row index in the transposed view. |
| j | The zero-based column index in the transposed view. |
| v | The new value of the element. |
| Base.IndexError | if any of the indices is out of range. |
| LMatrixExpression CDPL.Math.LMatrixTranspose.getData | ( | ) |
Returns the wrapped matrix.
| int CDPL.Math.LMatrixTranspose.__call__ | ( | int | i, |
| int | j | ||
| ) |
Returns the wrapped matrix's element at (j, i).
| i | The zero-based row index in the transposed view. |
| j | The zero-based column index in the transposed view. |
m(j, i). | int CDPL.Math.LMatrixTranspose.__getitem__ | ( | tuple | ij | ) |
Returns the wrapped matrix's element at (j, i).
| i | The zero-based row index in the transposed view. |
| j | The zero-based column index in the transposed view. |
m(j, i). | int CDPL.Math.LMatrixTranspose.__len__ | ( | ) |
Returns the number of rows of the transpose view (= number of columns of the wrapped matrix).
| bool CDPL.Math.LMatrixTranspose.__eq__ | ( | LMatrixTranspose | mt | ) |
Returns the result of the comparison operation self == mt.
| mt | The LMatrixTranspose instance to be compared with. |
| bool CDPL.Math.LMatrixTranspose.__eq__ | ( | ConstLMatrixExpression | e | ) |
Returns the result of the comparison operation self == e.
| e | The ConstLMatrixExpression instance to be compared with. |
| bool CDPL.Math.LMatrixTranspose.__ne__ | ( | LMatrixTranspose | mt | ) |
Returns the result of the comparison operation self != mt.
| mt | The LMatrixTranspose instance to be compared with. |
| bool CDPL.Math.LMatrixTranspose.__ne__ | ( | ConstLMatrixExpression | e | ) |
Returns the result of the comparison operation self != e.
| e | The ConstLMatrixExpression instance to be compared with. |
| str CDPL.Math.LMatrixTranspose.__str__ | ( | ) |
Returns a string representation of the LMatrixTranspose instance.
| LMatrixTranspose CDPL.Math.LMatrixTranspose.__pos__ | ( | ) |
Returns self.
| ConstLMatrixExpression CDPL.Math.LMatrixTranspose.__neg__ | ( | ) |
Returns the result of the operation self * -1.
ConstLMatrixExpression instance holding the result of the element negation. | ConstLMatrixExpression CDPL.Math.LMatrixTranspose.__add__ | ( | ConstLMatrixExpression | e | ) |
Returns the result of the addition operation self + e.
| e | Specifies the second addend. |
ConstLMatrixExpression instance holding the result of the addition. | ConstLMatrixExpression CDPL.Math.LMatrixTranspose.__sub__ | ( | ConstLMatrixExpression | e | ) |
Returns the result of the subtraction operation self - e.
| e | Specifies the subtrahend. |
LMatrixTranspose instance holding the result of the subtraction. | ConstLMatrixExpression CDPL.Math.LMatrixTranspose.__mul__ | ( | int | t | ) |
Returns the result of the multiplication operation self * t.
| t | Specifies the multiplier. |
ConstLMatrixExpression instance holding the result of the multiplication. | ConstLMatrixExpression CDPL.Math.LMatrixTranspose.__mul__ | ( | ConstLMatrixExpression | e | ) |
Returns the result of the multiplication operation self * e.
| e | Specifies the multiplier. |
ConstLMatrixExpression instance holding the result of the multiplication. | ConstLVectorExpression CDPL.Math.LMatrixTranspose.__mul__ | ( | ConstLVectorExpression | e | ) |
Returns the result of the multiplication operation self * e.
| e | Specifies the multiplier. |
ConstLVectorExpression instance holding the result of the multiplication. | ConstLMatrixExpression CDPL.Math.LMatrixTranspose.__div__ | ( | int | t | ) |
Returns the result of the division operation self // t.
| t | Specifies the divisor. |
ConstLMatrixExpression instance holding the result of the division. | ConstLMatrixExpression CDPL.Math.LMatrixTranspose.__truediv__ | ( | int | t | ) |
Returns the result of the true division operation self / t.
| t | Specifies the divisor. |
ConstLMatrixExpression instance holding the result of the division. | ConstLMatrixExpression CDPL.Math.LMatrixTranspose.__rmul__ | ( | int | t | ) |
Returns the result of the multiplication operation t * self.
| t | Specifies the multiplicand. |
ConstLMatrixExpression instance holding the result of the multiplication. | LMatrixTranspose CDPL.Math.LMatrixTranspose.__iadd__ | ( | LMatrixTranspose | mt | ) |
Adds the matrix transpose mt to this transpose view.
| mt | The source matrix transpose. |
| LMatrixTranspose CDPL.Math.LMatrixTranspose.__iadd__ | ( | ConstLMatrixExpression | e | ) |
Adds the matrix expression e to this transpose view.
| e | The source matrix expression. |
| LMatrixTranspose CDPL.Math.LMatrixTranspose.__isub__ | ( | LMatrixTranspose | mt | ) |
Subtracts the matrix transpose mt from this transpose view.
| mt | The source matrix transpose. |
| LMatrixTranspose CDPL.Math.LMatrixTranspose.__isub__ | ( | ConstLMatrixExpression | e | ) |
Subtracts the matrix expression e from this transpose view.
| e | The source matrix expression. |
| LMatrixTranspose CDPL.Math.LMatrixTranspose.__imul__ | ( | int | t | ) |
Multiplies every element of the wrapped matrix by the scalar t.
| t | The scalar multiplier. |
| LMatrixTranspose CDPL.Math.LMatrixTranspose.__idiv__ | ( | int | t | ) |
Divides every element of the wrapped matrix by the scalar t.
| t | The scalar divisor. |
| LMatrixTranspose CDPL.Math.LMatrixTranspose.__itruediv__ | ( | int | t | ) |
Divides every element of the wrapped matrix by the scalar t.
| t | The scalar divisor. |