Rev 6305 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3757 | bpr | 1 | !set slib_lang_exists=yes |
2 | !distribute lines Library script\ |
||
3 | Output\ |
||
4 | Parameter\ |
||
5 | Parameters\ |
||
4210 | bpr | 6 | Required software\ |
3757 | bpr | 7 | Call from module\ |
8 | Call from OEF/Doc\ |
||
9 | Available scripts in slib\ |
||
10 | Variable list of comma-separated items\ |
||
3793 | reyssat | 11 | default\ |
6979 | bpr | 12 | The result can be used through the variable\ |
3757 | bpr | 13 | into wims_name_slib,wims_name_Output,wims_name_Parameter,wims_name_Parameters,wims_name_Required_Software,\ |
6305 | bpr | 14 | wims_name_call1,wims_name_call2,wims_name_listslib,wims_name_variable_list,wims_name_default,wims_name_result |
3757 | bpr | 15 | |
3799 | bpr | 16 | !set wims_name_upto=!nosubst Up to $slpcnt, comma-separated |
3757 | bpr | 17 | |
18 | !set wims_name_instruction=Scripts in this library can be called from modules using the command \ |
||
5947 | bpr | 19 | <span class="tt">!read</span> (or <span class="tt">!readproc</span> from within a phtml file).\ |
3757 | bpr | 20 | For example, the line\ |
21 | <pre>\ |
||
22 | !read slib/matrix/random 3, 5, 10\ |
||
23 | </pre>\ |
||
24 | generates a 3×5 matrix with random integer coefficients in [-10, 10].\ |
||
25 | The result is placed in the variable\ |
||
5947 | bpr | 26 | <span class="tt">slib_out</span>.\ |
3757 | bpr | 27 | To call an slib script from OEF exercises, documents or forum\ |
28 | messages, use the function\ |
||
5947 | bpr | 29 | <span class="tt">slib()</span>.<p>\ |
3757 | bpr | 30 | Only variables prefixed by \ |
5947 | bpr | 31 | <span class="tt">slib_</span>\ |
32 | are modified by these scripts.</p> |