Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Par_incr.CutoffSourcetype 'a t = | NeverNever cut-off the computation
*)| AlwaysAlways cut-off the computation
*)| Phys_equalCut off the computation based on physical equality (==)
| Eq of 'a -> 'a -> boolCutoff the computation based on the function passed
*)| F of oldval:'a -> newval:'a -> boolSame functionality as Eq but the equality function uses named arguments
Defines different computation cutoff strategies
Cutoff.attach cutoff incr attaches the given cutoff strategy to the incremental incr. The default cutoff in most cases is `Phys_equal`. So, this is useful in cases where you want somewhat different cutoff condition. Take floating point related computations for example, you may choose to ignore difference in values within some delta. For such cases, you can use this.