![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Unbounded sparse matrix holding unsigned integers of type unsigned long.
More...
Inheritance diagram for CDPL.Math.SparseULMatrix:Public Member Functions | |
| None | __init__ () |
| Constructs an empty sparse matrix (zero rows, zero columns, no stored entries). | |
| None | __init__ (SparseULMatrix m) |
| Move-constructs a sparse matrix from m (m is left in a valid empty state). More... | |
| None | __init__ (int m, int n) |
| Constructs a sparse matrix of size \( m \times n \) with no stored entries. More... | |
| None | __init__ (ConstFMatrixExpression e) |
Initializes the SparseULMatrix instance. More... | |
| None | __init__ (ConstDMatrixExpression e) |
Initializes the SparseULMatrix instance. More... | |
| None | __init__ (ConstLMatrixExpression e) |
Initializes the SparseULMatrix instance. More... | |
| None | __init__ (ConstULMatrixExpression e) |
Initializes the SparseULMatrix instance. More... | |
| None | __init__ (object a) |
Initializes the SparseULMatrix instance. More... | |
| None | resize (int m, int n) |
| Resizes the logical dimensions to \( m \times n \), dropping any stored entries that fall outside the new bounds. More... | |
| None | clear () |
| Removes all explicitly stored entries (the logical dimensions remain unchanged). | |
| int | getNumElements () |
| Returns the number of explicitly stored (non-default) entries. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| SparseULMatrix | assign (ConstFMatrixExpression e) |
| Resizes this matrix to match e and assigns its elements without intermediate temporary. More... | |
| SparseULMatrix | assign (ConstDMatrixExpression e) |
| Resizes this matrix to match e and assigns its elements without intermediate temporary. More... | |
| SparseULMatrix | assign (ConstLMatrixExpression e) |
| Resizes this matrix to match e and assigns its elements without intermediate temporary. More... | |
| SparseULMatrix | assign (ConstULMatrixExpression e) |
| Resizes this matrix to match e and assigns its elements without intermediate temporary. More... | |
| SparseULMatrix | assign (SparseULMatrix m) |
| Move-assigns the contents of m to this sparse matrix. More... | |
| None | assign (object a) |
Replaces the current state of self with a copy of the state of the object instance a. More... | |
| int | getSize1 () |
| Returns the logical number of rows. More... | |
| int | getSize2 () |
| Returns the logical number of columns. More... | |
| bool | isEmpty () |
| Tells whether the matrix is empty (zero rows or zero columns). More... | |
| int | getElement (int i, int j) |
| object | toArray () |
| None | swap (SparseULMatrix m) |
| Swaps the contents of this sparse matrix with those of m. More... | |
| None | setElement (int i, int j, int v) |
| int | __call__ (int i, int j) |
| Returns a reference to the element at (i, j). More... | |
| int | __getitem__ (tuple ij) |
| int | __len__ () |
| bool | __eq__ (SparseULMatrix m) |
Returns the result of the comparison operation self == m. More... | |
| bool | __eq__ (ConstULMatrixExpression e) |
Returns the result of the comparison operation self == e. More... | |
| bool | __ne__ (SparseULMatrix m) |
Returns the result of the comparison operation self != m. More... | |
| bool | __ne__ (ConstULMatrixExpression e) |
Returns the result of the comparison operation self != e. More... | |
| str | __str__ () |
Returns a string representation of the SparseULMatrix instance. More... | |
| SparseULMatrix | __pos__ () |
| ConstULMatrixExpression | __neg__ () |
| ConstULMatrixExpression | __add__ (ConstULMatrixExpression e) |
Returns the result of the addition operation self + e. More... | |
| ConstULMatrixExpression | __sub__ (ConstULMatrixExpression e) |
Returns the result of the subtraction operation self - e. More... | |
| ConstULMatrixExpression | __mul__ (int t) |
Returns the result of the multiplication operation self * t. More... | |
| ConstULMatrixExpression | __mul__ (ConstULMatrixExpression e) |
Returns the result of the multiplication operation self * e. More... | |
| ConstULVectorExpression | __mul__ (ConstULVectorExpression e) |
Returns the result of the multiplication operation self * e. More... | |
| ConstULMatrixExpression | __div__ (int t) |
Returns the result of the division operation self // t. More... | |
| ConstULMatrixExpression | __truediv__ (int t) |
Returns the result of the true division operation self / t. More... | |
| ConstULMatrixExpression | __rmul__ (int t) |
Returns the result of the multiplication operation t * self. More... | |
| None | __setitem__ (tuple ij, int v) |
| SparseULMatrix | __iadd__ (SparseULMatrix m) |
Performs the in-place addition operation self += m. More... | |
| SparseULMatrix | __iadd__ (ConstULMatrixExpression e) |
Performs the in-place addition operation self += e. More... | |
| SparseULMatrix | __isub__ (SparseULMatrix m) |
Performs the in-place subtraction operation self -= m. More... | |
| SparseULMatrix | __isub__ (ConstULMatrixExpression e) |
Performs the in-place subtraction operation self -= e. More... | |
| SparseULMatrix | __imul__ (int t) |
Performs the in-place multiplication operation self *= t. More... | |
| SparseULMatrix | __idiv__ (int t) |
Performs the in-place division operation self /= t. More... | |
| SparseULMatrix | __itruediv__ (int t) |
Properties | |
| objectID = property(getObjectID) | |
| size1 = property(getSize1) | |
| size2 = property(getSize2) | |
| numElements = property(getNumElements) | |
Unbounded sparse matrix holding unsigned integers of type unsigned long.
| None CDPL.Math.SparseULMatrix.__init__ | ( | SparseULMatrix | m | ) |
Move-constructs a sparse matrix from m (m is left in a valid empty state).
| m | The sparse matrix to move from. |
| None CDPL.Math.SparseULMatrix.__init__ | ( | int | m, |
| int | n | ||
| ) |
Constructs a sparse matrix of size \( m \times n \) with no stored entries.
| m | The number of rows. |
| n | The number of columns. |
| Base.SizeError | if \( m \cdot n \) exceeds the underlying container's capacity. |
| None CDPL.Math.SparseULMatrix.__init__ | ( | ConstFMatrixExpression | e | ) |
Initializes the SparseULMatrix instance.
| e |
| None CDPL.Math.SparseULMatrix.__init__ | ( | ConstDMatrixExpression | e | ) |
Initializes the SparseULMatrix instance.
| e |
| None CDPL.Math.SparseULMatrix.__init__ | ( | ConstLMatrixExpression | e | ) |
Initializes the SparseULMatrix instance.
| e |
| None CDPL.Math.SparseULMatrix.__init__ | ( | ConstULMatrixExpression | e | ) |
Initializes the SparseULMatrix instance.
| e |
| None CDPL.Math.SparseULMatrix.__init__ | ( | object | a | ) |
Initializes the SparseULMatrix instance.
| a |
| None CDPL.Math.SparseULMatrix.resize | ( | int | m, |
| int | n | ||
| ) |
Resizes the logical dimensions to \( m \times n \), dropping any stored entries that fall outside the new bounds.
| m | The new row count. |
| n | The new column count. |
| Base.SizeError | if \( m \cdot n \) exceeds the underlying container's capacity. |
| int CDPL.Math.SparseULMatrix.getNumElements | ( | ) |
Returns the number of explicitly stored (non-default) entries.
| int CDPL.Math.SparseULMatrix.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python SparseULMatrix 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 SparseULMatrix 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().
| SparseULMatrix CDPL.Math.SparseULMatrix.assign | ( | ConstFMatrixExpression | e | ) |
Resizes this matrix to match e and assigns its elements without intermediate temporary.
| e | The source matrix expression. |
| SparseULMatrix CDPL.Math.SparseULMatrix.assign | ( | ConstDMatrixExpression | e | ) |
Resizes this matrix to match e and assigns its elements without intermediate temporary.
| e | The source matrix expression. |
| SparseULMatrix CDPL.Math.SparseULMatrix.assign | ( | ConstLMatrixExpression | e | ) |
Resizes this matrix to match e and assigns its elements without intermediate temporary.
| e | The source matrix expression. |
| SparseULMatrix CDPL.Math.SparseULMatrix.assign | ( | ConstULMatrixExpression | e | ) |
Resizes this matrix to match e and assigns its elements without intermediate temporary.
| e | The source matrix expression. |
| SparseULMatrix CDPL.Math.SparseULMatrix.assign | ( | SparseULMatrix | m | ) |
Move-assigns the contents of m to this sparse matrix.
| m | The source sparse matrix (left in a valid but unspecified state). |
| None CDPL.Math.SparseULMatrix.assign | ( | object | a | ) |
Replaces the current state of self with a copy of the state of the object instance a.
| a | The object instance to copy. |
| int CDPL.Math.SparseULMatrix.getSize1 | ( | ) |
Returns the logical number of rows.
| int CDPL.Math.SparseULMatrix.getSize2 | ( | ) |
Returns the logical number of columns.
| bool CDPL.Math.SparseULMatrix.isEmpty | ( | ) |
Tells whether the matrix is empty (zero rows or zero columns).
True if either dimension is zero, and False otherwise. | int CDPL.Math.SparseULMatrix.getElement | ( | int | i, |
| int | j | ||
| ) |
| i | |
| j |
| object CDPL.Math.SparseULMatrix.toArray | ( | ) |
| None CDPL.Math.SparseULMatrix.swap | ( | SparseULMatrix | m | ) |
Swaps the contents of this sparse matrix with those of m.
| m | The sparse matrix to swap with. |
| None CDPL.Math.SparseULMatrix.setElement | ( | int | i, |
| int | j, | ||
| int | v | ||
| ) |
| i | |
| j | |
| v |
| int CDPL.Math.SparseULMatrix.__call__ | ( | int | i, |
| int | j | ||
| ) |
Returns a reference to the element at (i, j).
| i | The zero-based row index. |
| j | The zero-based column index. |
| Base.IndexError | if either index is out of range. |
| int CDPL.Math.SparseULMatrix.__getitem__ | ( | tuple | ij | ) |
| ij |
| int CDPL.Math.SparseULMatrix.__len__ | ( | ) |
| bool CDPL.Math.SparseULMatrix.__eq__ | ( | SparseULMatrix | m | ) |
Returns the result of the comparison operation self == m.
| m | The SparseULMatrix instance to be compared with. |
| bool CDPL.Math.SparseULMatrix.__eq__ | ( | ConstULMatrixExpression | e | ) |
Returns the result of the comparison operation self == e.
| e | The ConstULMatrixExpression instance to be compared with. |
| bool CDPL.Math.SparseULMatrix.__ne__ | ( | SparseULMatrix | m | ) |
Returns the result of the comparison operation self != m.
| m | The SparseULMatrix instance to be compared with. |
| bool CDPL.Math.SparseULMatrix.__ne__ | ( | ConstULMatrixExpression | e | ) |
Returns the result of the comparison operation self != e.
| e | The ConstULMatrixExpression instance to be compared with. |
| str CDPL.Math.SparseULMatrix.__str__ | ( | ) |
Returns a string representation of the SparseULMatrix instance.
| SparseULMatrix CDPL.Math.SparseULMatrix.__pos__ | ( | ) |
| ConstULMatrixExpression CDPL.Math.SparseULMatrix.__neg__ | ( | ) |
| ConstULMatrixExpression CDPL.Math.SparseULMatrix.__add__ | ( | ConstULMatrixExpression | e | ) |
Returns the result of the addition operation self + e.
| e | Specifies the second addend. |
ConstULMatrixExpression instance holding the result of the addition. | ConstULMatrixExpression CDPL.Math.SparseULMatrix.__sub__ | ( | ConstULMatrixExpression | e | ) |
Returns the result of the subtraction operation self - e.
| e | Specifies the subtrahend. |
SparseULMatrix instance holding the result of the subtraction. | ConstULMatrixExpression CDPL.Math.SparseULMatrix.__mul__ | ( | int | t | ) |
Returns the result of the multiplication operation self * t.
| t | Specifies the multiplier. |
ConstULMatrixExpression instance holding the result of the multiplication. | ConstULMatrixExpression CDPL.Math.SparseULMatrix.__mul__ | ( | ConstULMatrixExpression | e | ) |
Returns the result of the multiplication operation self * e.
| e | Specifies the multiplier. |
ConstULMatrixExpression instance holding the result of the multiplication. | ConstULVectorExpression CDPL.Math.SparseULMatrix.__mul__ | ( | ConstULVectorExpression | e | ) |
Returns the result of the multiplication operation self * e.
| e | Specifies the multiplier. |
ConstULVectorExpression instance holding the result of the multiplication. | ConstULMatrixExpression CDPL.Math.SparseULMatrix.__div__ | ( | int | t | ) |
Returns the result of the division operation self // t.
| t | Specifies the divisor. |
ConstULMatrixExpression instance holding the result of the division. | ConstULMatrixExpression CDPL.Math.SparseULMatrix.__truediv__ | ( | int | t | ) |
Returns the result of the true division operation self / t.
| t | Specifies the divisor. |
ConstULMatrixExpression instance holding the result of the division. | ConstULMatrixExpression CDPL.Math.SparseULMatrix.__rmul__ | ( | int | t | ) |
Returns the result of the multiplication operation t * self.
| t | Specifies the multiplicand. |
ConstULMatrixExpression instance holding the result of the multiplication. | None CDPL.Math.SparseULMatrix.__setitem__ | ( | tuple | ij, |
| int | v | ||
| ) |
| ij | |
| v |
| SparseULMatrix CDPL.Math.SparseULMatrix.__iadd__ | ( | SparseULMatrix | m | ) |
Performs the in-place addition operation self += m.
| m | Specifies the second addend. |
SparseULMatrix instance self. | SparseULMatrix CDPL.Math.SparseULMatrix.__iadd__ | ( | ConstULMatrixExpression | e | ) |
Performs the in-place addition operation self += e.
| e | Specifies the second addend. |
SparseULMatrix instance self. | SparseULMatrix CDPL.Math.SparseULMatrix.__isub__ | ( | SparseULMatrix | m | ) |
Performs the in-place subtraction operation self -= m.
| m | Specifies the subtrahend. |
SparseULMatrix instance self. | SparseULMatrix CDPL.Math.SparseULMatrix.__isub__ | ( | ConstULMatrixExpression | e | ) |
Performs the in-place subtraction operation self -= e.
| e | Specifies the subtrahend. |
SparseULMatrix instance self. | SparseULMatrix CDPL.Math.SparseULMatrix.__imul__ | ( | int | t | ) |
Performs the in-place multiplication operation self *= t.
| t | Specifies the multiplier. |
SparseULMatrix instance self. | SparseULMatrix CDPL.Math.SparseULMatrix.__idiv__ | ( | int | t | ) |
Performs the in-place division operation self /= t.
| t | Specifies the divisor. |
SparseULMatrix instance self. | SparseULMatrix CDPL.Math.SparseULMatrix.__itruediv__ | ( | int | t | ) |
| t |