finesse.cymath.cmatrix.SubCCSView
¶
Overview
- class finesse.cymath.cmatrix.SubCCSView(CCSMatrix Matrix, Py_ssize_t _from, Py_ssize_t _to, unicode name, bool conjugate_fill)¶
Bases:
object
An abstract class representing common features between dense and sparse diagonal structured sub-matrices.
This class serves as a base class for other classes that represent specific types of sub-matrices, such as dense or sparse diagonal structured sub-matrices. It provides a unified interface for accessing and manipulating these sub-matrices.
The class holds a weak reference to the original matrix, the starting and ending indices of the submatrix view in the original matrix, and a flag indicating whether to fill the submatrix view with the conjugate of the original matrix values.
It also provides properties to get the starting and ending indices of the submatrix view (from_idx and to_idx), the shape of the submatrix view (shape), and the strides of the submatrix view (strides).
- Attributes
- nameunicode
The name of the submatrix view.
- Mweakref
A weak reference to the original matrix.
- ANoneType
Placeholder for the actual submatrix data. This should be implemented in subclasses.
- _fromPy_ssize_t
The starting index of the submatrix view in the original matrix.
- _toPy_ssize_t
The ending index of the submatrix view in the original matrix.
- conjugate_fillbint
Whether to fill the submatrix view with the conjugate of the original matrix values.
Properties
Returns the starting index of the submatrix view in the original matrix. |
|
Returns the shape of the submatrix view. |
|
Returns the strides of the submatrix view. |
|
Returns the ending index of the submatrix view in the original matrix. |
|