Source file owl_sparse_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
# 1 "src/owl/sparse/owl_sparse_ndarray_s.ml"
open Bigarray
module M = Owl_sparse_ndarray_generic
include M
type elt = float
type arr = (float, float32_elt) Owl_sparse_ndarray_generic.t
let zeros s = M.zeros Float32 s
let binary ?density s = M.binary ?density Float32 s
let uniform ?scale ?density s = M.uniform ?scale ?density Float32 s
let of_array s x = M.of_array Float32 s x
let load f = M.load Float32 f