LazyArray
LazyArray(
recipe ,
chain = None,
backend = numpy,
)
A recipe, and the operations pending on it.
Parameters
| Parameter | Description |
|---|---|
| recipe | Which stored samples fill which box of the array. |
| chain |
The operations to run on the recipe’s array, in order; none by default, when the array is the recipe’s. |
| backend |
The array library each chunk is computed on and load returns anarray of, by the name backend_name reports;NumPy by default. |
Note
It cannot be indexed or transposed itself: a patch whose data are lazy runs only the operations which state a chunk contract, select among them, and metadata-only ones.
Methods
| Name | Description |
|---|---|
| load | Read the recipe and run every pending step, returning the array. |
| with_backend | Return the array computed on another array library. |