uniform_discr_frompartition

odl.uniform_discr_frompartition(partition, dtype=None, impl='numpy', **kwargs)

Return a uniformly discretized L^p function space.

Parameters

partitionRectPartition

Uniform partition to be used for discretization. It defines the domain and the functions and the grid for discretization.

dtypeoptional

Data type for the discretized space, must be understood by the numpy.dtype constructor. The default for None depends on the impl backend, usually it is 'float64' or 'float32'.

implstring, optional

Implementation of the data storage arrays

kwargs :

Additional keyword parameters, see uniform_discr for details.

Returns

discrDiscretizedSpace

The uniformly discretized function space.

Examples

>>> part = odl.uniform_partition(0, 1, 10)
>>> uniform_discr_frompartition(part)
uniform_discr(0.0, 1.0, 10)

See Also

uniform_discr : implicit uniform Lp discretization uniform_discr_fromspace : uniform Lp discretization from an existing

function space

odl.core.discr.partition.uniform_partition :

partition of the function domain