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.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.
- partition
- Returns:
- discr
DiscretizedSpace The uniformly discretized function space.
- discr
See also
uniform_discrimplicit uniform Lp discretization
uniform_discr_fromspaceuniform Lp discretization from an existing function space
odl.discr.partition.uniform_partitionpartition of the function domain
Examples
>>> part = odl.uniform_partition(0, 1, 10) >>> uniform_discr_frompartition(part) uniform_discr(0.0, 1.0, 10)