NEST  2.6.0,not_revisioned_source_dir@0
sliarray.h
Go to the documentation of this file.
1 /*
2  * sliarray.h
3  *
4  * This file is part of NEST.
5  *
6  * Copyright (C) 2004 The NEST Initiative
7  *
8  * NEST is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * NEST is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef SLIARRAY_H
24 #define SLIARRAY_H
25 /*
26  SLI's array access functions
27 */
28 #include "slimodule.h"
29 #include "slifunction.h"
30 
36 {
42  class MapFunction: public SLIFunction
43  {
44  public:
45  void execute(SLIInterpreter *) const;
46  };
47 
48  class IMapFunction: public SLIFunction
49  {
50  public:
51  void execute(SLIInterpreter *) const;
52  void backtrace(SLIInterpreter *, int) const ;
53  };
55  {
56  public:
57  void execute(SLIInterpreter *) const;
58  void backtrace(SLIInterpreter *, int) const ;
59  };
61  {
62  public:
63  void execute(SLIInterpreter *) const;
64  void backtrace(SLIInterpreter *, int) const ;
65  };
67  {
68  public:
69  void execute(SLIInterpreter *) const;
70  };
71 
73  {
74  public:
75  void execute(SLIInterpreter *) const;
76  void backtrace(SLIInterpreter *, int) const ;
77  };
78 
80  {
81  public:
82  void execute(SLIInterpreter *) const;
83  };
84 
86  {
87  public:
88  void execute(SLIInterpreter *) const;
89  void backtrace(SLIInterpreter *, int) const ;
90  };
91 
92  class RangeFunction: public SLIFunction
93  {
94  public:
95  void execute(SLIInterpreter *) const;
96  };
97 
99  {
100  public:
101  void execute(SLIInterpreter *) const;
102  };
103 
105  {
106  public:
107  void execute(SLIInterpreter *) const;
108  };
109 
111  {
112  public:
113  void execute(SLIInterpreter *) const;
114  };
115 
117  {
118  public:
119  void execute(SLIInterpreter *) const;
120  };
121 
123  {
124  public:
125  void execute(SLIInterpreter *) const;
126  };
127 
129  {
130  public:
131  void execute(SLIInterpreter *) const;
132  };
133 
134  class SortFunction: public SLIFunction
135  {
136  public:
137  void execute(SLIInterpreter *) const;
138  };
139 
141  {
142  public:
143  void execute(SLIInterpreter *) const;
144  };
145 
147  {
148  public:
149  void execute(SLIInterpreter *) const;
150  };
151 
152 
154  {
155  public:
156  void execute(SLIInterpreter *) const;
157  };
158 
160  {
161  public:
162  void execute(SLIInterpreter *) const;
163  };
164 
166  {
167  public:
168  void execute(SLIInterpreter *) const;
169  };
170 
205  class AreaFunction: public SLIFunction
206  {
207  public:
208  void execute(SLIInterpreter *) const;
209  };
210 
244  {
245  public:
246  void execute(SLIInterpreter *) const;
247  };
248 
249  class Cv1dFunction: public SLIFunction
250  {
251  public:
252  void execute(SLIInterpreter *) const;
253  };
254 
255  class Cv2dFunction: public SLIFunction
256  {
257  public:
258  void execute(SLIInterpreter *) const;
259  };
260 
262  {
263  public:
264  void execute(SLIInterpreter *) const;
265  };
266 
268  {
269  public:
270  void execute(SLIInterpreter *) const;
271  };
272 
273 
278  {
279  public:
280 
282 
283  void execute(SLIInterpreter *) const;
284  };
285 
290  {
291  public:
292 
294 
295  void execute(SLIInterpreter *) const;
296  };
297 
298 
304  {
305  public:
307  void execute(SLIInterpreter *) const;
308  };
309 
315  {
316  public:
318  void execute(SLIInterpreter *) const;
319  };
320 
322  {
323  public:
325  void execute(SLIInterpreter *) const;
326  };
327 
329  {
330  public:
332  void execute(SLIInterpreter *) const;
333  };
334 
336  {
337  public:
338  void execute(SLIInterpreter *) const;
339  };
341  {
342  public:
343  void execute(SLIInterpreter *) const;
344  };
345 
347  {
348  public:
349  void execute(SLIInterpreter *) const;
350  };
351 
353  {
354  public:
355  void execute(SLIInterpreter *) const;
356  };
357 
359  {
360  public:
361  void execute(SLIInterpreter *) const;
362  };
363 
365  {
366  public:
367  void execute(SLIInterpreter *) const;
368  };
369 
371  {
372  public:
373  void execute(SLIInterpreter *) const;
374  };
375 
377  {
378  public:
379  void execute(SLIInterpreter *) const;
380  };
381 
383  {
384  public:
385  void execute(SLIInterpreter *) const;
386  };
387 
389  {
390  public:
391  void execute(SLIInterpreter *) const;
392  };
393 
395  {
396  public:
397  void execute(SLIInterpreter *) const;
398  };
399 
401  {
402  public:
403  void execute(SLIInterpreter *) const;
404  };
406  {
407  public:
408  void execute(SLIInterpreter *) const;
409  };
411  {
412  public:
413  void execute(SLIInterpreter *) const;
414  };
416  {
417  public:
418  void execute(SLIInterpreter *) const;
419  };
421  {
422  public:
423  void execute(SLIInterpreter *) const;
424  };
426  {
427  public:
428  void execute(SLIInterpreter *) const;
429  };
431  {
432  public:
433  void execute(SLIInterpreter *) const;
434  };
435 
437  {
438  public:
439  void execute(SLIInterpreter *) const;
440  };
442  {
443  public:
444  void execute(SLIInterpreter *) const;
445  };
447  {
448  public:
449  void execute(SLIInterpreter *) const;
450  };
452  {
453  public:
454  void execute(SLIInterpreter *) const;
455  };
456 
458  {
459  public:
460  void execute(SLIInterpreter *) const;
461  };
463  {
464  public:
465  void execute(SLIInterpreter *) const;
466  };
467 
469  {
470  public:
471  void execute(SLIInterpreter *) const;
472  };
474  {
475  public:
476  void execute(SLIInterpreter *) const;
477  };
479  {
480  public:
481  void execute(SLIInterpreter *) const;
482  };
484  {
485  public:
486  void execute(SLIInterpreter *) const;
487  };
488 
490  {
491  public:
492  void execute(SLIInterpreter *) const;
493  };
494 
501  {
502  public:
504  void execute(SLIInterpreter *) const;
505  };
506 
508  {
509  public:
510  void execute(SLIInterpreter *) const;
511  };
512 
514  {
515  public:
516  void execute(SLIInterpreter *) const;
517  };
518 
520  {
521  public:
522  void execute(SLIInterpreter *) const;
523  void backtrace(SLIInterpreter *, int) const ;
524  };
525 
527  {
528  public:
529  void execute(SLIInterpreter *) const;
530  void backtrace(SLIInterpreter *, int) const ;
531  };
532 
533 
535  {
536  public:
537  void execute(SLIInterpreter *) const;
538  };
539 
541  {
542  public:
543  void execute(SLIInterpreter *) const;
544  };
545 
585 
586 
596 
619  public:
620 
622 
623  void init(SLIInterpreter *);
624  const std::string commandstring(void) const;
625  const std::string name(void) const;
626 
627 };
628 
629 
630 #endif
void execute(SLIInterpreter *) const
Definition: sliarray.cc:475
Definition: sliarray.h:261
Neg_dvFunction neg_dvfunction
Definition: sliarray.h:603
void backtrace(SLIInterpreter *, int) const
Show stack backtrace information on error.
Definition: sliarray.cc:3867
Div_dv_dvFunction div_dv_dvfunction
Definition: sliarray.h:602
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3440
Get_iv_ivFunction get_iv_ivfunction
Definition: sliarray.h:609
RangeFunction rangefunction
Definition: sliarray.h:548
Cv2dFunction cv2dfunction
Definition: sliarray.h:570
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3919
ValidFunction validfunction
Definition: sliarray.h:566
Ones_dvFunction ones_dvfunction
Definition: sliarray.h:613
MapIndexedFunction mapindexedfunction
Definition: sliarray.h:561
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2728
Definition: sliarray.h:134
IMapFunction imapfunction
Definition: sliarray.h:558
Definition: sliarray.h:85
DoubleVector2ArrayFunction doublevector2arrayfunction
Definition: sliarray.h:579
Definition: sliarray.h:370
Test single double for finiteness.
Definition: sliarray.h:500
Definition: sliarray.h:335
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3376
Definition: sliarray.h:66
AreaFunction areafunction
Definition: sliarray.h:567
IntVector2ArrayFunction intvector2arrayfunction
Definition: sliarray.h:578
void execute(SLIInterpreter *) const
Definition: sliarray.cc:1494
Definition: sliarray.h:410
Definition: sliarray.h:128
const std::string name(void) const
Return name of the module.
Definition: sliarray.cc:45
Definition: sliarray.h:267
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3721
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2856
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3612
Add_d_dvFunction add_d_dvfunction
Definition: sliarray.h:598
void backtrace(SLIInterpreter *, int) const
Show stack backtrace information on error.
Definition: sliarray.cc:3789
void init(SLIInterpreter *)
Initialise the module.
Definition: sliarray.cc:3942
Definition: sliarray.h:110
DoubleVector2ArrayFunction()
Definition: sliarray.h:324
Definition: sliarray.h:519
Zeros_ivFunction zeros_ivfunction
Definition: sliarray.h:616
Array2DoubleVectorFunction array2doublevectorfunction
Definition: sliarray.h:577
void execute(SLIInterpreter *) const
Definition: sliarray.cc:788
Definition: sliarray.h:352
Definition: sliarray.h:436
ArraycreateFunction arraycreatefunction
Definition: sliarray.h:550
Definition: sliarray.h:446
Definition: sliarray.h:405
IMap_ivFunction imap_ivfunction
Definition: sliarray.h:559
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3408
Convert SLI array to std::vector.
Definition: sliarray.h:314
ArangeFunction arangefunction
Definition: sliarray.h:618
Definition: slifunction.h:35
Zeros_dvFunction zeros_dvfunction
Definition: sliarray.h:612
void backtrace(SLIInterpreter *, int) const
Show stack backtrace information on error.
Definition: sliarray.cc:1085
Put_dv_i_dFunction put_dv_i_dfunction
Definition: sliarray.h:611
Definition: sliarray.h:104
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3744
Array2DoubleVectorFunction()
Definition: sliarray.h:317
Area2Function area2function
Definition: sliarray.h:568
ArraystoreFunction arraystorefunction
Definition: sliarray.h:549
Forall_dvFunction forall_dvfunction
Definition: sliarray.h:583
IMapThreadFunction imapthreadfunction
Definition: sliarray.h:564
void execute(SLIInterpreter *) const
Definition: sliarray.cc:1627
void execute(SLIInterpreter *) const
Definition: sliarray.cc:971
GaborFunction gaborfunction
Definition: sliarray.h:573
Sub_dv_dvFunction sub_dv_dvfunction
Definition: sliarray.h:599
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3684
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3798
Definition: sliarray.h:483
Definition: sliarray.h:441
Get_dv_ivFunction get_dv_ivfunction
Definition: sliarray.h:607
Definition: sliarray.h:340
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3115
void execute(SLIInterpreter *) const
Definition: sliarray.cc:50
Definition: sliarray.h:346
void backtrace(SLIInterpreter *, int) const
Show stack backtrace information on error.
Definition: sliarray.cc:947
Add_iv_ivFunction add_iv_ivfunction
Definition: sliarray.h:587
SLI module defining array functions.
Definition: sliarray.h:35
Get_iv_iFunction get_iv_ifunction
Definition: sliarray.h:608
void execute(SLIInterpreter *) const
Definition: sliarray.cc:1277
Neg_ivFunction neg_ivfunction
Definition: sliarray.h:589
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3708
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3355
Definition: sliarray.h:507
Iforall_dvFunction iforall_dvfunction
Definition: sliarray.h:584
void execute(SLIInterpreter *) const
Definition: sliarray.cc:1104
Gauss2dFunction gauss2dfunction
Definition: sliarray.h:574
MapThreadFunction mapthreadfunction
Definition: sliarray.h:563
Convert SLI array to std::vector.
Definition: sliarray.h:303
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2300
Definition: sliarray.h:92
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2369
Length_dvFunction length_dvfunction
Definition: sliarray.h:605
Definition: sliarray.h:473
Definition: sliarray.h:430
Mul_dv_dvFunction mul_dv_dvfunction
Definition: sliarray.h:600
Definition: sliarray.h:540
Sub_iv_ivFunction sub_iv_ivfunction
Definition: sliarray.h:590
Definition: sliarray.h:526
Array2IntVectorFunction()
Definition: sliarray.h:306
Definition: sliarray.h:400
Put_iv_i_iFunction put_iv_i_ifunction
Definition: sliarray.h:610
Definition: sliarray.h:478
Definition: sliarray.h:255
Length_ivFunction length_ivfunction
Definition: sliarray.h:595
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3241
void execute(SLIInterpreter *) const
Definition: sliarray.cc:1443
Generate two-dimensional array with Gabor patch.
Definition: sliarray.h:277
Cv1dFunction cv1dfunction
Definition: sliarray.h:569
Definition: sliarray.h:48
Get_dv_iFunction get_dv_ifunction
Definition: sliarray.h:606
Definition: sliarray.h:165
Definition: sliarray.h:249
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3636
IMap_dvFunction imap_dvfunction
Definition: sliarray.h:560
Div_iv_ivFunction div_iv_ivfunction
Definition: sliarray.h:594
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2771
Mul_i_ivFunction mul_i_ivfunction
Definition: sliarray.h:592
void execute(SLIInterpreter *) const
Definition: sliarray.cc:713
FiniteQ_dFunction finiteq_dfunction
Definition: sliarray.h:580
void execute(SLIInterpreter *) const
Definition: sliarray.cc:369
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3080
Eq_ivFunction eq_ivfunction
Definition: sliarray.h:615
GetMaxFunction getmaxfunction
Definition: sliarray.h:571
Definition: sliarray.h:415
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2951
void execute(SLIInterpreter *) const
Definition: sliarray.cc:1344
Definition: sliarray.h:116
Eq_dvFunction eq_dvfunction
Definition: sliarray.h:614
GetMinFunction getminfunction
Definition: sliarray.h:572
Iforall_ivFunction iforall_ivfunction
Definition: sliarray.h:582
Add_dv_dvFunction add_dv_dvfunction
Definition: sliarray.h:597
Definition: sliarray.h:376
IMapIndexedFunction imapindexedfunction
Definition: sliarray.h:562
Mul_iv_ivFunction mul_iv_ivfunction
Definition: sliarray.h:591
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3519
void execute(SLIInterpreter *) const
Definition: sliarray.cc:201
Definition: interpret.h:69
Definition: sliarray.h:60
Return array of indices defining a 2d subarea of a 2d array.
Definition: sliarray.h:243
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2532
const std::string commandstring(void) const
Return sli command sequence to be executed for initialisation.
Definition: sliarray.cc:40
Definition: sliarray.h:462
Definition: sliarray.h:122
Definition: sliarray.h:388
Forall_ivFunction forall_ivfunction
Definition: sliarray.h:581
Definition: sliarray.h:420
Definition: sliarray.h:159
Definition: sliarray.h:394
Inv_dvFunction inv_dvfunction
Definition: sliarray.h:604
Definition: sliarray.h:382
Definition: sliarray.h:328
Add_i_ivFunction add_i_ivfunction
Definition: sliarray.h:588
PartitionFunction partitionfunction
Definition: sliarray.h:565
Definition: sliarray.h:425
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3216
Put_a_a_tFunction put_a_a_tfunction
Definition: sliarray.h:575
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3310
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3013
ReverseFunction reversefunction
Definition: sliarray.h:552
ArrayloadFunction arrayloadfunction
Definition: sliarray.h:551
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3660
Ones_ivFunction ones_ivfunction
Definition: sliarray.h:617
Definition: sliarray.h:364
void execute(SLIInterpreter *) const
Definition: sliarray.cc:635
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2749
Definition: sliarray.h:451
void execute(SLIInterpreter *) const
Definition: sliarray.cc:1919
FlattenFunction flattenfunction
Definition: sliarray.h:554
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2471
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2982
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2880
Definition: sliarray.h:146
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2639
Definition: sliarray.h:457
RotateFunction rotatefunction
Definition: sliarray.h:553
Definition: sliarray.h:79
IntVector2ArrayFunction()
Definition: sliarray.h:331
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2417
Mul_d_ivFunction mul_d_ivfunction
Definition: sliarray.h:593
Base class for all SLI Interpreter modules.
Definition: slimodule.h:34
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3150
Definition: sliarray.h:42
void execute(SLIInterpreter *) const
Definition: sliarray.cc:1309
void backtrace(SLIInterpreter *, int) const
Show stack backtrace information on error.
Definition: sliarray.cc:1469
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3822
Generate two-dimensional array with Gauss patch.
Definition: sliarray.h:289
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3275
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2790
Definition: sliarray.h:153
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2825
GaborFunction()
Definition: sliarray.h:281
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3183
void execute(SLIInterpreter *) const
Definition: sliarray.cc:1694
Definition: sliarray.h:140
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3937
MapFunction mapfunction
Definition: sliarray.h:557
Return array of indices defining a 2d subarea of a 2d array.
Definition: sliarray.h:205
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3557
Definition: sliarray.h:489
Definition: sliarray.h:98
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3592
FiniteQ_dFunction()
Definition: sliarray.h:503
Definition: sliarray.h:513
Definition: sliarray.h:468
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2182
Definition: sliarray.h:72
void backtrace(SLIInterpreter *, int) const
Show stack backtrace information on error.
Definition: sliarray.cc:828
SortFunction sortfunction
Definition: sliarray.h:555
void execute(SLIInterpreter *) const
Definition: sliarray.cc:763
Mul_d_dvFunction mul_d_dvfunction
Definition: sliarray.h:601
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3058
SLIArrayModule()
Definition: sliarray.h:621
void execute(SLIInterpreter *) const
Definition: sliarray.cc:557
Array2IntVectorFunction array2intvectorfunction
Definition: sliarray.h:576
Definition: sliarray.h:534
void backtrace(SLIInterpreter *, int) const
Show stack backtrace information on error.
Definition: sliarray.cc:1319
void execute(SLIInterpreter *) const
Definition: sliarray.cc:852
void execute(SLIInterpreter *) const
Definition: sliarray.h:358
void execute(SLIInterpreter *) const
Definition: sliarray.cc:380
TransposeFunction transposefunction
Definition: sliarray.h:556
Definition: sliarray.h:54
void execute(SLIInterpreter *) const
Definition: sliarray.cc:393
void execute(SLIInterpreter *) const
Definition: sliarray.cc:2915
Gauss2dFunction()
Definition: sliarray.h:293
void execute(SLIInterpreter *) const
Definition: sliarray.cc:3479