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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466 | pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with gsl.block_double;
with Interfaces.C.Strings;
package gsl.vector_double is
-- skipped anonymous struct anon_anon_20
type gsl_vector is record
size : aliased size_t; -- /usr/include/gsl/gsl_vector_double.h:44
stride : aliased size_t; -- /usr/include/gsl/gsl_vector_double.h:45
data : access double; -- /usr/include/gsl/gsl_vector_double.h:46
block : access gsl.block_double
.gsl_block; -- /usr/include/gsl/gsl_vector_double.h:47
owner : aliased int; -- /usr/include/gsl/gsl_vector_double.h:48
end record with
Convention => C_Pass_By_Copy; -- /usr/include/gsl/gsl_vector_double.h:50
-- skipped anonymous struct anon_anon_21
type u_gsl_vector_view is record
vector : aliased gsl_vector; -- /usr/include/gsl/gsl_vector_double.h:54
end record with
Convention => C_Pass_By_Copy; -- /usr/include/gsl/gsl_vector_double.h:55
subtype gsl_vector_view is
u_gsl_vector_view; -- /usr/include/gsl/gsl_vector_double.h:57
-- skipped anonymous struct anon_anon_22
type u_gsl_vector_const_view is record
vector : aliased gsl_vector; -- /usr/include/gsl/gsl_vector_double.h:61
end record with
Convention => C_Pass_By_Copy; -- /usr/include/gsl/gsl_vector_double.h:62
subtype gsl_vector_const_view is
u_gsl_vector_const_view; -- /usr/include/gsl/gsl_vector_double.h:64
function alloc
(n : size_t)
return access gsl_vector -- /usr/include/gsl/gsl_vector_double.h:69
with
Import => True,
Convention => C,
External_Name => "gsl_vector_alloc";
function calloc
(n : size_t)
return access gsl_vector -- /usr/include/gsl/gsl_vector_double.h:70
with
Import => True,
Convention => C,
External_Name => "gsl_vector_calloc";
function alloc_from_block
(b : access gsl.block_double.gsl_block; offset : size_t; n : size_t;
stride : size_t)
return access gsl_vector -- /usr/include/gsl/gsl_vector_double.h:72
with
Import => True,
Convention => C,
External_Name => "gsl_vector_alloc_from_block";
function alloc_from_vector
(v : access gsl_vector; offset : size_t; n : size_t; stride : size_t)
return access gsl_vector -- /usr/include/gsl/gsl_vector_double.h:77
with
Import => True,
Convention => C,
External_Name => "gsl_vector_alloc_from_vector";
procedure free
(v : access gsl_vector) -- /usr/include/gsl/gsl_vector_double.h:82
with
Import => True,
Convention => C,
External_Name => "gsl_vector_free";
function view_array
(v : access double;
n : size_t)
return u_gsl_vector_view -- /usr/include/gsl/gsl_vector_double.h:87
with
Import => True,
Convention => C,
External_Name => "gsl_vector_view_array";
function view_array_with_stride
(base : access double; stride : size_t; n : size_t)
return u_gsl_vector_view -- /usr/include/gsl/gsl_vector_double.h:90
with
Import => True,
Convention => C,
External_Name => "gsl_vector_view_array_with_stride";
function const_view_array
(v : access double;
n : size_t)
return u_gsl_vector_const_view -- /usr/include/gsl/gsl_vector_double.h:95
with
Import => True,
Convention => C,
External_Name => "gsl_vector_const_view_array";
function const_view_array_with_stride
(base : access double; stride : size_t; n : size_t)
return u_gsl_vector_const_view -- /usr/include/gsl/gsl_vector_double.h:98
with
Import => True,
Convention => C,
External_Name => "gsl_vector_const_view_array_with_stride";
function subvector
(v : access gsl_vector; i : size_t; n : size_t)
return u_gsl_vector_view -- /usr/include/gsl/gsl_vector_double.h:103
with
Import => True,
Convention => C,
External_Name => "gsl_vector_subvector";
function subvector_with_stride
(v : access gsl_vector; i : size_t; stride : size_t; n : size_t)
return u_gsl_vector_view -- /usr/include/gsl/gsl_vector_double.h:108
with
Import => True,
Convention => C,
External_Name => "gsl_vector_subvector_with_stride";
function const_subvector
(v : access constant gsl_vector; i : size_t; n : size_t)
return u_gsl_vector_const_view -- /usr/include/gsl/gsl_vector_double.h:114
with
Import => True,
Convention => C,
External_Name => "gsl_vector_const_subvector";
function const_subvector_with_stride
(v : access constant gsl_vector; i : size_t; stride : size_t; n : size_t)
return u_gsl_vector_const_view -- /usr/include/gsl/gsl_vector_double.h:119
with
Import => True,
Convention => C,
External_Name => "gsl_vector_const_subvector_with_stride";
procedure set_zero
(v : access gsl_vector) -- /usr/include/gsl/gsl_vector_double.h:126
with
Import => True,
Convention => C,
External_Name => "gsl_vector_set_zero";
procedure set_all
(v : access gsl_vector;
x : double) -- /usr/include/gsl/gsl_vector_double.h:127
with
Import => True,
Convention => C,
External_Name => "gsl_vector_set_all";
function set_basis
(v : access gsl_vector;
i : size_t)
return int -- /usr/include/gsl/gsl_vector_double.h:128
with
Import => True,
Convention => C,
External_Name => "gsl_vector_set_basis";
function fread
(stream : ICS.FILEs;
v : access gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:130
with
Import => True,
Convention => C,
External_Name => "gsl_vector_fread";
function fwrite
(stream : ICS.FILEs;
v : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:131
with
Import => True,
Convention => C,
External_Name => "gsl_vector_fwrite";
function fscanf
(stream : ICS.FILEs;
v : access gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:132
with
Import => True,
Convention => C,
External_Name => "gsl_vector_fscanf";
function fprintf
(stream : ICS.FILEs; v : access constant gsl_vector;
format : Interfaces.C.Strings.chars_ptr)
return int -- /usr/include/gsl/gsl_vector_double.h:133
with
Import => True,
Convention => C,
External_Name => "gsl_vector_fprintf";
function fprintf
(v : access constant gsl_vector; filename : String; format : String)
return int;
procedure WriteCSV
(v : access constant gsl_vector; fn : String;
v1 : access constant gsl_vector := null;
v2 : access constant gsl_vector := null;
v3 : access constant gsl_vector := null;
v4 : access constant gsl_vector := null;
v5 : access constant gsl_vector := null;
v6 : access constant gsl_vector := null);
function memcpy
(dest : access gsl_vector; src : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:136
with
Import => True,
Convention => C,
External_Name => "gsl_vector_memcpy";
function rreverse
(v : access gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:138
with
Import => True,
Convention => C,
External_Name => "gsl_vector_reverse";
function swap
(v : access gsl_vector;
w : access gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:140
with
Import => True,
Convention => C,
External_Name => "gsl_vector_swap";
function swap_elements
(v : access gsl_vector;
i : size_t;
j : size_t)
return int -- /usr/include/gsl/gsl_vector_double.h:141
with
Import => True,
Convention => C,
External_Name => "gsl_vector_swap_elements";
function max
(v : access constant gsl_vector)
return double -- /usr/include/gsl/gsl_vector_double.h:143
with
Import => True,
Convention => C,
External_Name => "gsl_vector_max";
function min
(v : access constant gsl_vector)
return double -- /usr/include/gsl/gsl_vector_double.h:144
with
Import => True,
Convention => C,
External_Name => "gsl_vector_min";
procedure minmax
(v : access constant gsl_vector; min_out : access double;
max_out : access double) -- /usr/include/gsl/gsl_vector_double.h:145
with
Import => True,
Convention => C,
External_Name => "gsl_vector_minmax";
function max_index
(v : access constant gsl_vector)
return size_t -- /usr/include/gsl/gsl_vector_double.h:147
with
Import => True,
Convention => C,
External_Name => "gsl_vector_max_index";
function min_index
(v : access constant gsl_vector)
return size_t -- /usr/include/gsl/gsl_vector_double.h:148
with
Import => True,
Convention => C,
External_Name => "gsl_vector_min_index";
procedure minmax_index
(v : access constant gsl_vector; imin : access size_t;
imax : access size_t) -- /usr/include/gsl/gsl_vector_double.h:149
with
Import => True,
Convention => C,
External_Name => "gsl_vector_minmax_index";
function add
(a : access gsl_vector;
b : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:151
with
Import => True,
Convention => C,
External_Name => "gsl_vector_add";
function sub
(a : access gsl_vector;
b : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:152
with
Import => True,
Convention => C,
External_Name => "gsl_vector_sub";
function mul
(a : access gsl_vector;
b : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:153
with
Import => True,
Convention => C,
External_Name => "gsl_vector_mul";
function div
(a : access gsl_vector;
b : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:154
with
Import => True,
Convention => C,
External_Name => "gsl_vector_div";
function scale
(a : access gsl_vector;
x : double)
return int -- /usr/include/gsl/gsl_vector_double.h:155
with
Import => True,
Convention => C,
External_Name => "gsl_vector_scale";
function add_constant
(a : access gsl_vector;
x : double)
return int -- /usr/include/gsl/gsl_vector_double.h:156
with
Import => True,
Convention => C,
External_Name => "gsl_vector_add_constant";
function axpby
(alpha : double; x : access constant gsl_vector; beta : double;
y : access gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:157
with
Import => True,
Convention => C,
External_Name => "gsl_vector_axpby";
function sum
(a : access constant gsl_vector)
return double -- /usr/include/gsl/gsl_vector_double.h:158
with
Import => True,
Convention => C,
External_Name => "gsl_vector_sum";
function equal
(u : access constant gsl_vector; v : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:160
with
Import => True,
Convention => C,
External_Name => "gsl_vector_equal";
function isnull
(v : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:163
with
Import => True,
Convention => C,
External_Name => "gsl_vector_isnull";
function ispos
(v : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:164
with
Import => True,
Convention => C,
External_Name => "gsl_vector_ispos";
function isneg
(v : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:165
with
Import => True,
Convention => C,
External_Name => "gsl_vector_isneg";
function isnonneg
(v : access constant gsl_vector)
return int -- /usr/include/gsl/gsl_vector_double.h:166
with
Import => True,
Convention => C,
External_Name => "gsl_vector_isnonneg";
function get
(v : access constant gsl_vector;
i : size_t)
return double -- /usr/include/gsl/gsl_vector_double.h:168
with
Import => True,
Convention => C,
External_Name => "gsl_vector_get";
procedure set
(v : access gsl_vector;
i : size_t;
x : double) -- /usr/include/gsl/gsl_vector_double.h:169
with
Import => True,
Convention => C,
External_Name => "gsl_vector_set";
function ptr
(v : access gsl_vector;
i : size_t)
return access double -- /usr/include/gsl/gsl_vector_double.h:170
with
Import => True,
Convention => C,
External_Name => "gsl_vector_ptr";
function const_ptr
(v : access constant gsl_vector;
i : size_t)
return access double -- /usr/include/gsl/gsl_vector_double.h:171
with
Import => True,
Convention => C,
External_Name => "gsl_vector_const_ptr";
function To_Ada
(c : access constant gsl_vector)
return Ada.Numerics.Long_Real_Arrays.Real_Vector;
function To_C
(a : Ada.Numerics.Long_Real_Arrays.Real_Vector) return access gsl_vector;
function To_Ada
(c : access constant gsl_vector)
return Ada.Numerics.Real_Arrays.Real_Vector;
function To_C
(a : Ada.Numerics.Real_Arrays.Real_Vector) return access gsl_vector;
procedure Set( from : access gsl.vector_double.gsl_vector ; to : in out double_array ) ;
procedure Set( from : double_array ; to : access gsl.vector_double.gsl_vector ) ;
end gsl.vector_double;
|