crf-chain2-tiers-0.2.3: Second-order, tiered, constrained, linear conditional random fields
Data.CRF.Chain2.Tiers.Array
Contents
Synopsis
data Array i a Source
An unboxed array implemented in terms of an unboxed vector.
Instances
mkArray :: (Bounds i, Unbox a) => a -> [(i, a)] -> Array i a Source
Construct array with a default dummy value.
unArray :: (Bounds i, Unbox a) => Array i a -> [(i, a)] Source
Deconstruct the array.
(!?) :: (Ix i, Unbox a) => Array i a -> i -> Maybe a Source
class Ix i => Bounds i where Source
An extended Ix class.
Methods
lower :: i -> i -> i Source
A lower bound of two values.
upper :: i -> i -> i Source
An upper bound of two values.