uniform_discr_frompartition¶
- odl.discr.discr_space.uniform_discr_frompartition(partition, dtype=None, impl='numpy', **kwargs)[source]¶
Return a uniformly discretized L^p function space.
- Parameters:
- partition
RectPartition
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 forNone
depends on theimpl
backend, usually it is'float64'
or'float32'
.- implstring, optional
Implementation of the data storage arrays
- kwargs
Additional keyword parameters, see
uniform_discr
for details.
- partition
- Returns:
- discr
DiscretizedSpace
The uniformly discretized function space.
- discr
See also
uniform_discr
implicit uniform Lp discretization
uniform_discr_fromspace
uniform Lp discretization from an existing function space
odl.discr.partition.uniform_partition
partition of the function domain
Examples
>>> part = odl.uniform_partition(0, 1, 10) >>> uniform_discr_frompartition(part) uniform_discr(0.0, 1.0, 10)