NumpyTensor.copy

NumpyTensor.copy(self)[source]

Return an identical (deep) copy of this tensor.

Parameters
None
Returns
copyNumpyTensor

The deep copy

Examples

>>> space = odl.rn(3)
>>> x = space.element([1, 2, 3])
>>> y = x.copy()
>>> y == x
True
>>> y is x
False