module Genops: sig end
Modules for writing numeric algorithms that work on a variety of numeric types
Many times it's desirable to write some code that works with
numbers, and have versions that work on the different types of numbers
ocaml provides. With the modules here, it's possible to write the
algorithm once and then use the right functor to get it to work on the
desired type, instead of having different copies of the same routine
for each type.
type
integer
Contrains the type to integer ones
type
real
Constrains the type to float
module type Ops = sig end
The type-generic operations that can be performed
Specializations for all the built-in integer and real types
|
module IntOps: sig end
int
module Int32Ops: sig end
int32
module Int64Ops: sig end
int64
module NativeOps: sig end
nativeint
module FloatOps: sig end
float
module ComplexOps: sig end
Complex.t