DiscretizedSpace

class odl.DiscretizedSpace(partition, tspace, **kwargs)

Bases: TensorSpace

Discretization of a Lebesgue L^p space.

__init__(partition, tspace, **kwargs)[source]

Initialize a new instance.

Parameters

partitionRectPartition

Partition of a rectangular spatial domain.

tspaceTensorSpace

Space of elements used for data storage. It must have the same TensorSpace.shape as partition.

axis_labelssequence of str, optional

Names of the axes to use for plotting etc. Default:

  • 1D: ['$x$']

  • 2D: ['$x$', '$y$']

  • 3D: ['$x$', '$y$', '$z$']

  • nD: ['$x_1$', '$x_2$', ..., '$x_n$']

Note: The $ signs ensure rendering as LaTeX.