uniform_discr_fromintv
- odl.uniform_discr_fromintv(intv_prod, shape, dtype=None, impl='numpy', **kwargs)
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.
Returns
- discr
DiscretizedSpace The uniformly discretized function space
Examples
>>> intv = IntervalProd(0, 1) >>> uniform_discr_fromintv(intv, 10) uniform_discr(0.0, 1.0, 10)
See Also
uniform_discr : implicit uniform Lp discretization uniform_discr_frompartition : uniform Lp discretization using a given
uniform partition of a function domain
- intv_prod