package owl-base

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

Source file owl_base_dense_ndarray_d.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
# 1 "src/base/dense/owl_base_dense_ndarray_d.ml"
(*
 * OWL - OCaml Scientific and Engineering Computing
 * Copyright (c) 2016-2020 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, float64_elt, c_layout) Genarray.t

let number = Owl_types.F64

let empty dims = M.empty Float64 dims

let create dims value = M.create Float64 dims value

let init dims f = M.init Float64 dims f

let init_nd dims f = M.init_nd Float64 dims f

let zeros dims = M.zeros Float64 dims

let ones dims = M.ones Float64 dims

let sequential ?a ?step dims = M.sequential Float64 ?a ?step dims

let of_array arr dims = M.of_array Float64 arr dims

let of_arrays arrays = M.of_arrays Float64 arrays

let uniform ?a ?b dims = M.uniform Float64 ?a ?b dims

let bernoulli ?p dims = M.bernoulli Float64 ?p dims

let gaussian ?mu ?sigma dims = M.gaussian Float64 ?mu ?sigma dims
OCaml

Innovation. Community. Security.