DPutils-0.0.1.0: utilities for DP

Safe HaskellSafe
LanguageHaskell2010

Data.Paired.Common

Synopsis

Documentation

data OnDiag Source #

Shall we combine elements on the main diagonal as well?

If we choose NoDiag, we deal with upper triangular matrices that are effectively one element smaller.

Constructors

OnDiag 
NoDiag 

Instances

Eq OnDiag Source # 

Methods

(==) :: OnDiag -> OnDiag -> Bool #

(/=) :: OnDiag -> OnDiag -> Bool #

data Enumerate Source #

Select only a subset of the possible enumerations.

Constructors

All

Enumerate all elements

FromN Int Int

Enumerate from a value and at most N elements

Instances

data SizeHint Source #

If the size of the input is known before-hand or not.

Constructors

UnknownSize 
KnownSize Int 

Instances