repa-3.1.2.1: High performance, regular, shape polymorphic parallel arrays.

Safe HaskellSafe-Infered

Data.Array.Repa.Stencil.Partition

Synopsis

Documentation

data Offset Source

An offset in the 2d plane.

Constructors

Offset !Int !Int 

data Size Source

Size of a region in the 2d plane.

Constructors

Size !Int !Int 

data Region Source

A region in the 2d plane.

Constructors

Region 

Fields

regionX :: !Int
 
regionY :: !Int
 
regionWidth :: !Int
 
regionHeight :: !Int
 

Instances

partitionForStencilSource

Arguments

:: Size

Size of array

-> Size

Size of stencil

-> Offset

Focus of stencil

-> [Region] 

Partition a region into inner and border regions for the given stencil.