use |
for |
example and result |
REAL |
declaration |
-
REAL :: n=3, X(n), A(n,n)
|
DIMENSION |
declaration |
|
DATA |
initialization |
|
APPENDIX |
uncompiled data storage at end of script |
|
ALLOCATE |
resize |
|
= |
set an array |
A = 12.3 |
12.3 12.3 12.3 12.3 12.3 12.3 12.3 12.3 12.3 |
|
|
>< |
SWAP array(-elements) |
|
( ) |
array element |
|
unary OP |
apply OP to all elements |
|
binary OP |
works element-wise, like Scalars |
|
$C |
column index of a left-hand side matrix |
|
$R |
row index of a left-hand side matrix |
|
$ |
linear index of left-hand side matrix |
|
$1 |
inlineLoop index |
trace = +(A(
$1 ,
$1)) |
15 |
|
ALIAS |
named sub-vector |
|
|
named sub-matrix |
ALIAS(A,2, mtx,-2,-3) |
2 3 4 5 6 7 |
|
InlineLoop |
set or reduce arrays or sub-arrays in 1 line |
|
LEN_TRIM(A) |
trimmed (linear) length |
|
TRIM(A) |
(linear) length |
|