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_prodIntervalProd

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 for None depends on the impl backend, usually it is 'float64' or 'float32'.

implstr, optional

Implementation of the data storage arrays.

kwargs

Additional keyword parameters, see uniform_discr for details.

Returns:
discrDiscretizedSpace

The uniformly discretized function space

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)