package owl-base
Source file owl_base_dense_ndarray_s.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# 1 "src/base/dense/owl_base_dense_ndarray_s.ml" (* * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2019 Liang Wang <liang.wang@cl.cam.ac.uk> *) open Bigarray module M = Owl_base_dense_ndarray_generic include M type elt = float type arr = (float, float32_elt, c_layout) Genarray.t let number = Owl_types.F32 let empty dims = M.empty Float32 dims let create dims value = M.create Float32 dims value let init dims f = M.init Float32 dims f let init_nd dims f = M.init_nd Float32 dims f let zeros dims = M.zeros Float32 dims let eye n = M.eye Float32 n let ones dims = M.ones Float32 dims let sequential ?a ?step dims = M.sequential Float32 ?a ?step dims let of_array arr dims = M.of_array Float32 arr dims let of_arrays arrays = M.of_arrays Float32 arrays let uniform ?a ?b dims = M.uniform Float32 ?a ?b dims let bernoulli ?p dims = M.bernoulli Float32 ?p dims let gaussian ?mu ?sigma dims = M.gaussian Float32 ?mu ?sigma dims