MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __init__

Method __init__

python/dolfinx/la/__init__.py:136–154  ·  view source on GitHub ↗

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
        ),
    )

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected