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

Safe HaskellNone
LanguageHaskell2010

Language.Paraiso.OM.Builder.Boolean

Description

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

Synopsis

Documentation

eq :: CompareOp infix 4 Source

Equal

ne :: CompareOp infix 4 Source

Not equal

lt :: CompareOp infix 4 Source

Less than

le :: CompareOp infix 4 Source

Less than or equal to

gt :: CompareOp infix 4 Source

Greater than

ge :: CompareOp infix 4 Source

Greater than or equal to

select Source

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