uniform_discr_frompartition
- odl.uniform_discr_frompartition(partition, dtype=None, impl='numpy', **kwargs)
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.dtypeconstructor. The default forNonedepends on theimplbackend, usually it is'float64'or'float32'.- implstring, optional
Implementation of the data storage arrays
- kwargs :
Additional keyword parameters, see
uniform_discrfor details.
Returns
- discr
DiscretizedSpace 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
- partition