ArrayContainer
- class cubie.batchsolving.arrays.BaseArrayManager.ArrayContainer[source]
Bases:
ABCStore per-array metadata and references for CUDA managers.
- attach(label: str, array: ndarray[Any, dtype[_ScalarType_co]]) None[source]
Attach an array to this container.
- get_array(label: str) ndarray[Any, dtype[_ScalarType_co]] | FakeCUDAArray | None[source]
Return the stored array for
label.
- get_managed_array(label: str) ManagedArray[source]
Retrieve the metadata wrapper for
label.
- iter_managed_arrays() Iterator[tuple[str, ManagedArray]][source]
Yield
(label, managed)pairs for each array.