-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
_oasis
364 lines (322 loc) · 11.7 KB
/
_oasis
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
OASISFormat: 0.4
OCamlVersion: >= 3.12
Name: SLAP
Version: 4.1.0
Synopsis: A linear algebra library with static size checking for
matrix operations
Description: Sized Linear Algebra Package (SLAP) is a wrapper of
Lacaml, a binding of two widely used linear algebra
libraries BLAS and LAPACK for FORTRAN. This guarantees
statically (i.e, at compile time) consistency (with
respect to dimensions) of most high-level matrix (and
vector) operations. For example, addition of two- and
three-dimensional vectors causes type error at compile
time, and dynamic errors like exceptions do not happen.
Maintainers: Akinori ABE <abe@sf.ecei.tohoku.ac.jp>
Authors: Akinori ABE <abe@sf.ecei.tohoku.ac.jp>
Copyrights: (C) 2013-2015 Akinori ABE <abe@sf.ecei.tohoku.ac.jp>
License: LGPL-2.1 with OCaml linking exception
Homepage: http://akabe.github.io/slap/
Plugins: META (0.4), StdFiles (0.4), DevFiles (0.4)
XStdFilesAUTHORS: false
XStdFilesREADME: false
BuildTools: ocamlbuild,ocamldoc,cppo
PreBuildCommand: ocaml gen_config_h.ml; \
cppo -V OCAML:$(ocaml_version) lib/slap_size.cppo.mli > lib/slap_size.mli; \
cppo -V OCAML:$(ocaml_version) lib/slap_size.cppo.ml > lib/slap_size.ml; \
cppo -V OCAML:$(ocaml_version) lib/slap_vec.cppo.mli > lib/slap_vec.mli; \
cppo -V OCAML:$(ocaml_version) lib/slap_vec.cppo.ml > lib/slap_vec.ml; \
cppo -V OCAML:$(ocaml_version) lib/slap_mat.cppo.mli > lib/slap_mat.mli; \
cppo -V OCAML:$(ocaml_version) lib/slap_mat.cppo.ml > lib/slap_mat.ml; \
cppo -V OCAML:$(ocaml_version) lib/slap_SD.cppo.mli | sed 's/XSDCZ/S/g;s/XBITS/32/g' > lib/slap_S.mli; \
cppo -V OCAML:$(ocaml_version) lib/slap_SD.cppo.ml | sed 's/XSDCZ/S/g;s/XBITS/32/g' > lib/slap_S.ml; \
cppo -V OCAML:$(ocaml_version) lib/slap_SD.cppo.mli | sed 's/XSDCZ/D/g;s/XBITS/64/g' > lib/slap_D.mli; \
cppo -V OCAML:$(ocaml_version) lib/slap_SD.cppo.ml | sed 's/XSDCZ/D/g;s/XBITS/64/g' > lib/slap_D.ml; \
cppo -V OCAML:$(ocaml_version) lib/slap_CZ.cppo.mli | sed 's/XSDCZ/C/g;s/XBITS/32/g' > lib/slap_C.mli; \
cppo -V OCAML:$(ocaml_version) lib/slap_CZ.cppo.ml | sed 's/XSDCZ/C/g;s/XBITS/32/g' > lib/slap_C.ml; \
cppo -V OCAML:$(ocaml_version) lib/slap_CZ.cppo.mli | sed 's/XSDCZ/Z/g;s/XBITS/64/g' > lib/slap_Z.mli; \
cppo -V OCAML:$(ocaml_version) lib/slap_CZ.cppo.ml | sed 's/XSDCZ/Z/g;s/XBITS/64/g' > lib/slap_Z.ml; \
cppo -V SLAP:$(pkg_version) lib/slap_version.cppo.ml > lib/slap_version.ml; \
cppo -V OCAML:$(ocaml_version) ppx/compat.cppo.ml > ppx/compat.ml
PostCleanCommand: rm -f \
lib/config.h \
lib/slap_size.mli lib/slap_size.ml \
lib/slap_vec.mli lib/slap_vec.ml \
lib/slap_mat.mli lib/slap_mat.ml \
lib/slap_[SDCZ].mli lib/slap_[SDCZ].ml \
lib/slap_version.ml
Flag ppx
Default: true
Description: Build ppx_slap
Library slap
Path: lib
FindlibName: slap
BuildDepends: bigarray,lacaml (>= 8.0.0)
Modules: Slap,
Slap_misc,
Slap_common,
Slap_size,
Slap_vec,
Slap_mat,
Slap_io,
Slap_S,
Slap_D,
Slap_C,
Slap_Z,
Slap_version
CSources: config.h,
slap_utils.h, slap_utils.c,
slap_vec_stubs.c,
slap_mat_stubs.c
CCOpt: -g -std=c99 -O2 -fPIC -DPIC
CCLib: -lblas -llapack
# TODO: Mac OS X is untested.
if system(macosx)
CCOpt+: -DEXTERNAL_EXP10
CCLib+: -framework Accelerate
# TODO: MinGW is untested.
if system(mingw)
CCOpt+: -DEXTERNAL_EXP10
Library slap_top
Path: lib
FindlibName: top
FindlibParent: slap
Modules: Install_top
XMETARequires: slap
XMETADescription: Toplevel module for SLAP.
BuildDepends: slap,compiler-libs.toplevel
Library slap_ppx
Path: ppx
FindlibName: ppx
FindlibParent: slap
Install$: flag(ppx)
Build$: flag(ppx)
Modules: Slap_ppx
BuildDepends: slap
XMETARequires: slap
XMETADescription: Syntactic extensions for SLAP.
XMETAExtraLines: ppx = "ppx_slap"
Executable ppx_slap
Path: ppx
MainIs: ppx_slap.ml
Install$: flag(ppx)
Build$: flag(ppx)
BuildDepends: compiler-libs.common
CompiledObject: best
# Documentation
Document slap
Title: SLAP API Documentation
Type: OCamlbuild (0.4)
BuildTools+: ocamldoc
InstallDir: $docdir/api
XOCamlbuildPath: lib
XOCamlbuildLibraries: slap
Document slap_ppx
Title: SLAP PPX Documentation
Type: OCamlbuild (0.4)
BuildTools+: ocamldoc
InstallDir: $docdir/ppx
XOCamlbuildPath: ppx
XOCamlbuildLibraries: slap.ppx
# Tests
Executable test_lib
Path: test/lib
MainIs: test.ml
Build$: flag(tests)
Install: false
BuildDepends: slap,oUnit
CompiledObject: best
Test test_lib
Run$: flag(tests)
Command: $test_lib
WorkingDirectory: test/lib
Executable test_ppx
Path: test/ppx
MainIs: test.ml
Build$: flag(tests) && flag(ppx)
Install: false
BuildTools: ppx_slap
BuildDepends: slap,oUnit
CompiledObject: best
Test test_ppx
Run$: flag(tests) && flag(ppx)
Command: $test_ppx
WorkingDirectory: test/ppx
##
## Examples
##
Flag examples
Description: Build examples
Default: false
Executable gemv_gbmv
Path: examples/mult
MainIs: gemv_gbmv.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable symv_sbmv
Path: examples/mult
MainIs: symv_sbmv.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable gesv_gbsv
Path: examples/linsys
MainIs: gesv_gbsv.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable trsv_tpsv
Path: examples/linsys
MainIs: trsv_tpsv.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable posv_ppsv_pbsv
Path: examples/linsys
MainIs: posv_ppsv_pbsv.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable perceptron
Path: examples/neural-network/perceptron
MainIs: perceptron.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable logistic_regression
Path: examples/neural-network/logistic-regression
MainIs: logistic_regression.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable two_layer_neural_network
Path: examples/neural-network/two-layer
MainIs: two_layer_neural_network.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable multilayer_neural_network
Path: examples/neural-network/multilayer
MainIs: multilayer_neural_network.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable qr_lacaml
Path: examples/porting/qr_factorize
MainIs: qr_lacaml.ml
Build$: flag(examples)
BuildDepends: lacaml
Install: false
CompiledObject: best
Executable qr_slap
Path: examples/porting/qr_factorize
MainIs: qr_slap.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable lu_lacaml
Path: examples/porting/lu_factorize
MainIs: lu_lacaml.ml
Build$: flag(examples)
BuildDepends: lacaml
Install: false
CompiledObject: best
Executable lu_slap
Path: examples/porting/lu_factorize
MainIs: lu_slap.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable perceptron_lacaml
Path: examples/porting/perceptron
MainIs: perceptron_lacaml.ml
Build$: flag(examples)
BuildDepends: lacaml
Install: false
CompiledObject: best
Executable perceptron_slap
Path: examples/porting/perceptron
MainIs: perceptron_slap.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable kmeans_lacaml
Path: examples/porting/k-means
MainIs: kmeans_lacaml.ml
Build$: flag(examples)
BuildDepends: lacaml
Install: false
CompiledObject: best
Executable kmeans_slap
Path: examples/porting/k-means
MainIs: kmeans_slap.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable pca_lacaml
Path: examples/porting/pca
MainIs: pca_lacaml.ml
Build$: flag(examples)
BuildDepends: lacaml
Install: false
CompiledObject: best
Executable pca_slap
Path: examples/porting/pca
MainIs: pca_slap.ml
Build$: flag(examples)
BuildDepends: slap
Install: false
CompiledObject: best
Executable steepest_descent
Path: examples/optimization
MainIs: steepest_descent.ml
Build$: flag(examples) && flag(ppx)
BuildDepends: slap
Install: false
CompiledObject: best
Executable steepest_descent_wolfe
Path: examples/optimization
MainIs: steepest_descent_wolfe.ml
Build$: flag(examples) && flag(ppx)
BuildDepends: slap
Install: false
CompiledObject: best
Executable newton
Path: examples/optimization
MainIs: newton.ml
Build$: flag(examples) && flag(ppx)
BuildDepends: slap
Install: false
CompiledObject: best
Executable quasi_newton
Path: examples/optimization
MainIs: quasi_newton.ml
Build$: flag(examples) && flag(ppx)
BuildDepends: slap
Install: false
CompiledObject: best
Executable optimization_visualization
Path: examples/optimization
MainIs: visualization.ml
Build$: flag(examples) && flag(ppx)
BuildDepends: slap
Install: false
CompiledObject: best
SourceRepository head
Type: git
Location: https://github.com/akabe/slap.git
Browser: https://github.com/akabe/slap