forked from miking-lang/miking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatrix-ext.ext-ocaml.mc
43 lines (42 loc) · 1.26 KB
/
matrix-ext.ext-ocaml.mc
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
include "map.mc"
include "ocaml/ast.mc"
let matrixExtMap =
use OCamlTypeAst in
mapFromSeq cmpString
[
("externalMatrixExponential", [
{ expr = "Owl_linalg_generic.expm",
ty = tyarrows_ [otygenarrayclayoutfloat_, otygenarrayclayoutfloat_],
libraries = ["owl"],
cLibraries = []
}
]),
("externalMatrixTranspose", [
{ expr = "Owl_dense.Matrix.D.transpose",
ty = tyarrows_ [otygenarrayclayoutfloat_, otygenarrayclayoutfloat_],
libraries = ["owl"],
cLibraries = []
}
]),
("externalMatrixMulFloat", [
{ expr = "Owl_dense.Matrix.D.( $* )",
ty = tyarrows_ [tyfloat_, otygenarrayclayoutfloat_, otygenarrayclayoutfloat_],
libraries = ["owl"],
cLibraries = []
}
]),
("externalMatrixMul", [
{ expr = "Owl_dense.Matrix.D.( *@ )",
ty = tyarrows_ [otygenarrayclayoutfloat_, otygenarrayclayoutfloat_, otygenarrayclayoutfloat_],
libraries = ["owl"],
cLibraries = []
}
]),
("externalMatrixElemMul", [
{ expr = "Owl_dense.Matrix.D.( * )",
ty = tyarrows_ [otygenarrayclayoutfloat_, otygenarrayclayoutfloat_, otygenarrayclayoutfloat_],
libraries = ["owl"],
cLibraries = []
}
])
]