pystencils.grids.protocols.ViewNdArray

pystencils.grids.protocols.ViewNdArray#

class pystencils.grids.protocols.ViewNdArray(*args, **kwargs)#

Extract the interior view onto an ndarray for a field. Mix in with IField.

view_ndarray(arr)#

Return a view into the inner region of the given ndarray backing this field

Return type:

TypeVar(TArray)

Parameters:

arr (TArray)