package owl

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

Source file owl_sparse_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
# 1 "src/owl/sparse/owl_sparse_ndarray_z.ml"
(*
 * OWL - OCaml Scientific and Engineering Computing
 * Copyright (c) 2016-2019 Liang Wang <liang.wang@cl.cam.ac.uk>
 *)

open Bigarray

module M = Owl_sparse_ndarray_generic
include M

type elt = Complex.t
type arr = (Complex.t, Bigarray.complex64_elt) Owl_sparse_ndarray_generic.t

(* overload functions in Owl_dense_ndarray_generic *)

let zeros s = M.zeros Complex64 s

let binary ?density s = M.binary ?density Complex64 s

let uniform ?scale ?density s = M.uniform ?scale ?density Complex64 s

let of_array s x = M.of_array Complex64 s x

let load f = M.load Complex64 f
OCaml

Innovation. Community. Security.