Source file owl_dense_ndarray.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# 1 "src/owl/dense/owl_dense_ndarray.ml"
(*
 * OWL - OCaml Scientific and Engineering Computing
 * Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
 *)

(** Ndarray: module aliases *)

module Operator = struct
  include Owl_operator.Make_Basic (Owl_dense_ndarray_generic)
  include Owl_operator.Make_Extend (Owl_dense_ndarray_generic)
  include Owl_operator.Make_Ndarray (Owl_dense_ndarray_generic)
end

module Generic = struct
  include Owl_dense_ndarray_generic
  include Operator

  (* inject function aliases *)

  let mpow = Owl_linalg_generic.mpow
end

module S = struct
  include Owl_dense_ndarray_s
  include Operator

  (* inject function aliases *)

  let mpow = Owl_linalg_s.mpow
end

module D = struct
  include Owl_dense_ndarray_d
  include Operator

  (* inject function aliases *)

  let mpow = Owl_linalg_d.mpow
end

module C = struct
  include Owl_dense_ndarray_c
  include Operator

  (* inject function aliases *)

  let mpow = Owl_linalg_c.mpow
end

module Z = struct
  include Owl_dense_ndarray_z
  include Operator

  (* inject function aliases *)

  let mpow = Owl_linalg_z.mpow
end

module Any = struct
  include Owl_dense_ndarray_a
end