package owl-base

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file owl_types_computation_device.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 1 "src/base/types/owl_types_computation_device.ml"
(*
 * OWL - OCaml Scientific Computing
 * Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
 *)

module type Sig = sig
  module A : Owl_types_ndarray_mutable.Sig

  (** {5 Type definition} *)

  type device

  type value

  (** {5 Core functions} *)

  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

end