Module Owl_computation_cpu_device.Make

Parameters

Signature

module A = A
type device = {
  1. device_type : Owl_types.device_type;
  2. initialised : bool;
}
type value =
  1. | ArrVal of A.arr
  2. | EltVal of A.elt
val make_device : unit -> device
val arr_to_value : A.arr -> value
val value_to_arr : value -> A.arr
val elt_to_value : A.elt -> value
val value_to_elt : value -> A.elt
val value_to_float : value -> float
val is_arr : value -> bool
val is_elt : value -> bool