DiscretizedSpaceElement

class odl.discr.discr_space.DiscretizedSpaceElement(space, tensor)[source]

Bases: Tensor

Representation of a DiscretizedSpace element.

Attributes:
T

This element's transpose, i.e.

cell_sides

Side lengths of a cell in an underlying uniform partition.

cell_volume

Cell volume of an underlying regular grid.

data

Data container of self, depends on space.impl.

dtype

Type of data storage.

imag

Imaginary part of this element.

impl

Name of the implementation back-end of this tensor.

itemsize

Size in bytes of one tensor entry.

nbytes

Total number of bytes in memory occupied by this tensor.

ndim

Number of axes (=dimensions) of this tensor.

real

Real part of this element.

shape

Number of elements per axis.

size

Size of data storage.

space

Space to which this element belongs.

tensor

Structure for data storage.

ufuncs

Access to Numpy style universal functions.

Methods

asarray([out])

Extract the data of this array as a numpy array.

assign(other)

Assign the values of other to self.

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 self to other.

divide(other[, out])

Return out = self / other.

inner(other)

Return the inner product of self and other.

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.

__init__(space, tensor)[source]

Initialize a new instance.