Paraiso-0.2.0.3: a code generator for partial differential equations solvers.

Safe HaskellSafe-Infered

Language.Paraiso.OM.Builder.Boolean

Description

An extension module of building blocks. Contains booleans, comparison operations, branchings.

Synopsis

Documentation

eq :: CompareOpSource

Equal

ne :: CompareOpSource

Not equal

lt :: CompareOpSource

Less than

le :: CompareOpSource

Less than or equal to

gt :: CompareOpSource

Greater than

ge :: CompareOpSource

Greater than or equal to

selectSource

Arguments

:: (TRealm r, Typeable c) 
=> Builder v g a (Value r Bool)

The Bool condition

-> Builder v g a (Value r c)

The value chosen when the condition is True

-> Builder v g a (Value r c)

The value chosen when the condition is False

-> Builder v g a (Value r c)

The result

selects either the second or the third argument based