NumpyTensor

class odl.backends.arrays.npy_tensors.NumpyTensor(space, data)[source]

Bases: Tensor

Representation of a NumpyTensorSpace element.

This is an internal ODL class; it should not directly be instantiated from user code. Instead, always use the .element method of the space for generating these objects.

__init__(space, data)[source]

Initialize a new instance. The input must be a NumPy array.