RectPartition

class odl.RectPartition(intv_prod, grid)

Bases: object

Rectangular partition by hypercubes based on RectGrid.

In 1d, a partition of an interval is implicitly defined by a collection of points x[0], …, x[N-1] (a grid) which are chosen to lie in the center of the subintervals. The i-th subinterval is thus given by

I[i] = [(x[i-1]+x[i])/2, (x[i]+x[i+1])/2]

__init__(intv_prod, grid)[source]

Initialize a new instance.

Parameters

intv_prodIntervalProd

Set to be partitioned

gridRectGrid

Spatial points supporting the partition. They must be contained in intv_prod.