DiscretizedSpaceElement¶
- class odl.discr.discr_space.DiscretizedSpaceElement(space, tensor)[source]¶
Bases:
TensorRepresentation of a
DiscretizedSpaceelement.- Attributes:
TThis element's transpose, i.e.
cell_sidesSide lengths of a cell in an underlying uniform partition.
cell_volumeCell volume of an underlying regular grid.
dataData container of
self, depends onspace.impl.dtypeType of data storage.
imagImaginary part of this element.
implName of the implementation back-end of this tensor.
itemsizeSize in bytes of one tensor entry.
nbytesTotal number of bytes in memory occupied by this tensor.
ndimNumber of axes (=dimensions) of this tensor.
realReal part of this element.
shapeNumber of elements per axis.
sizeSize of data storage.
spaceSpace to which this element belongs.
tensorStructure for data storage.
ufuncsAccess to Numpy style universal functions.
Methods
asarray([out])Extract the data of this array as a numpy array.
assign(other)Assign the values of
othertoself.astype(dtype)Return a copy of this element with new
dtype.conj([out])Complex conjugate of this element.
copy()Create an identical (deep) copy of this element.
dist(other)Return the distance of
selftoother.divide(other[, out])Return
out = self / other.inner(other)Return the inner product of
selfandother.lincomb(a, x1[, b, x2])Implement
self[:] = a * x1 + b * x2.multiply(other[, out])Return
out = self * other.norm()Return the norm of this element.
set_zero()Set this element to zero.
show([title, method, coords, indices, ...])Display the function graphically.