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.dtypeconstructor. The default forNonedepends on theimplbackend, usually it is'float64'or'float32'.- implstr, optional
Implementation of the data storage arrays.
- kwargs
Additional keyword parameters, see
uniform_discrfor details.
- intv_prod
- Returns:
- discr
DiscretizedSpace The uniformly discretized function space
- discr
See also
uniform_discrimplicit uniform Lp discretization
uniform_discr_frompartitionuniform 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)