Source file owl_dense_ndarray_z.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
63
64
65
# 1 "src/owl/dense/owl_dense_ndarray_z.ml"
open Bigarray
module M = Owl_dense_ndarray_generic
include M
type elt = Complex.t
type arr = (Complex.t, complex64_elt, c_layout) Genarray.t
type cast_arr = (float, float64_elt, c_layout) Genarray.t
let number = Owl_types.C64
let empty dimension = M.empty Complex64 dimension
let create dimension a = M.create Complex64 dimension a
let init dimension f = M.init Complex64 dimension f
let init_nd dimension f = M.init_nd Complex64 dimension f
let zeros dimension = M.zeros Complex64 dimension
let ones dimension = M.ones Complex64 dimension
let uniform ?a ?b dimension = M.uniform Complex64 ?a ?b dimension
let gaussian ?mu ?sigma dimension = M.gaussian ?mu ?sigma Complex64 dimension
let sequential ?a ?step dimension = M.sequential Complex64 ?a ?step dimension
let linspace a b n = M.linspace Complex64 a b n
let logspace ?base a b n = M.logspace Complex64 ?base a b n
let bernoulli ?p d = M.bernoulli Complex64 ?p d
let unit_basis n i = M.unit_basis Complex64 n i
let load f = M.load Complex64 f
let load_npy f = M.load_npy Complex64 f
let of_array x d = M.of_array Complex64 x d
let of_arrays x = M.of_arrays Complex64 x
let mmap fd ?pos shared dims = Unix.map_file fd ?pos Complex64 c_layout shared dims
let re x = re_z2d x
let im x = im_z2d x
let complex = complex Float64 Complex64
let polar = polar Float64 Complex64