uniform_discr_fromintv¶
- odl.discr.discr_space.uniform_discr_fromintv(intv_prod, shape, dtype=None, impl='numpy', **kwargs)[source]¶
Return a uniformly discretized L^p function space.
- Parameters:
- intv_prod
IntervalProd
Function domain of the uniformly discretized space.
- shapeint or sequence of ints
Number of samples per axis.
- 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'
.- implstr, optional
Implementation of the data storage arrays.
- kwargs
Additional keyword parameters, see
uniform_discr
for details.
- intv_prod
- Returns:
- discr
DiscretizedSpace
The uniformly discretized function space
- discr
See also
uniform_discr
implicit uniform Lp discretization
uniform_discr_frompartition
uniform Lp discretization using a given uniform partition of a function domain
Examples
>>> intv = IntervalProd(0, 1) >>> uniform_discr_fromintv(intv, 10) uniform_discr(0.0, 1.0, 10)