edu.jhu.cs.cisst.algorithms.optimize.fmg.restrictor
Interface Restrictor

All Known Implementing Classes:
RestrictorByStencil

public interface Restrictor

This interface defines the restrict() method which produces a coarse grid from the next finer grid by restriction.

The Full Multigrid (FMG) algorithm works with grids of different sizes corresponding to different levels through the relation size = 2^level + 1, where size is the number of grid elements in one dimension. Restriction is the process of taking a function whose value is known at the grid elements of a grid at a certain level (the fine grid) and producing the values of the function at the grid elements of a grid at the next coarser level (the coarse grid). The fine grid and the coarse grid are oriented such that their corner elements coincide.

Author:
Gerald Loeffler (Gerald.Loeffler@univie.ac.at)
See Also:
FMG

Method Summary
 Grid restrict(ConstGrid grid, SolverResolutionLevels levels)
          restricts a function sampled on a specific grid to the next coarser grid.
 

Method Detail

restrict

Grid restrict(ConstGrid grid,
              SolverResolutionLevels levels)
restricts a function sampled on a specific grid to the next coarser grid.

Parameters:
grid - the input function sampled on a grid at a certain level (size of grid must be 2^level + 1 where level > 1)
levels - the levels
Returns:
the function sampled on a grid at the next coarser (lower) level