enum cu_bool1f_t |
enum cu_bool2f_t |
An enumeration of binary boolean functions.
cu_bool_t cu_bool1f_apply | ( | cu_bool1f_t | f, | |
cu_bool_t | x | |||
) |
Evaluate f(x).
cu_bool1f_t cu_bool1f_compose | ( | cu_bool1f_t | f, | |
cu_bool1f_t | g | |||
) |
Return the composition f ∘ g.
cu_bool1f_t cu_bool1f_from_func | ( | cu_bool_t(*)(cu_bool_t) | f | ) |
Return the enumerated boolean function corresponding to f. f will be called twice upon construction.
cu_bool1f_t cu_bool1f_konst | ( | cu_bool_t | x | ) |
Return the constant function, λy. x.
cu_bool1f_t cu_bool1f_not | ( | cu_bool1f_t | f | ) |
Return the function λx. ¬f(x).
cu_bool_t cu_bool2f_apply | ( | cu_bool2f_t | f, | |
cu_bool_t | x, | |||
cu_bool_t | y | |||
) |
Evaluate f(x, y).
cu_bool1f_t cu_bool2f_apply_left | ( | cu_bool2f_t | f, | |
cu_bool_t | x | |||
) |
Return the partial evaluation λy. f(x, y).
cu_bool1f_t cu_bool2f_apply_right | ( | cu_bool2f_t | f, | |
cu_bool_t | y | |||
) |
Return the partial evaluation λx. f(x, y).
cu_bool2f_t cu_bool2f_compose | ( | cu_bool1f_t | f, | |
cu_bool2f_t | g | |||
) |
Return the composition f ∘ g, i.e. the function λ(x, y). f (g (x, y)).
cu_bool2f_t cu_bool2f_compose_left | ( | cu_bool2f_t | f, | |
cu_bool1f_t | g | |||
) |
Return the composition of f on the left operand with g, λ(x, y). f (g(x), y).
cu_bool2f_t cu_bool2f_compose_right | ( | cu_bool2f_t | f, | |
cu_bool1f_t | g | |||
) |
Return the composition of f on the right operand with g, λ(x, y). f (x, g(y)).
cu_bool2f_t cu_bool2f_from_func | ( | cu_bool_t(*)(cu_bool_t, cu_bool_t) | f | ) |
Return the enumerated boolean function which agrees with f on its domain. This samples f 4 times.
cu_bool2f_t cu_bool2f_konst | ( | cu_bool_t | v | ) |
The constant function λ(x, y). v.
cu_bool2f_t cu_bool2f_not | ( | cu_bool2f_t | f | ) |
Return the function λ(x, y). ¬f(x, y).
cu_bool2f_t cu_bool2f_swap | ( | cu_bool2f_t | f | ) |
Swap the arguments, i.e. λ(x, y). f(y, x).
Return the C function which at x returns cu_bool1f_apply(f, x)
.
The C function which agrees with f on its domain.