Create a distributed compressed sparse row matrix. Note: Objects of this type should be created using :func:`matrix_csr` and not created using this initialiser. Args: A: The C++/nanobind matrix object.
(
self,
A: (
_cpp.la.MatrixCSR_float32
| _cpp.la.MatrixCSR_float64
| _cpp.la.MatrixCSR_complex64
| _cpp.la.MatrixCSR_complex128
),
)
| 134 | ) |
| 135 | |
| 136 | def __init__( |
| 137 | self, |
| 138 | A: ( |
| 139 | _cpp.la.MatrixCSR_float32 |
| 140 | | _cpp.la.MatrixCSR_float64 |
| 141 | | _cpp.la.MatrixCSR_complex64 |
| 142 | | _cpp.la.MatrixCSR_complex128 |
| 143 | ), |
| 144 | ): |
| 145 | """Create a distributed compressed sparse row matrix. |
| 146 | |
| 147 | Note: |
| 148 | Objects of this type should be created using |
| 149 | :func:`matrix_csr` and not created using this initialiser. |
| 150 | |
| 151 | Args: |
| 152 | A: The C++/nanobind matrix object. |
| 153 | """ |
| 154 | self._cpp_object = A |
| 155 | |
| 156 | def index_map(self, i: int) -> IndexMap: |
| 157 | """Index map for row/column. |
nothing calls this directly
no outgoing calls
no test coverage detected