Array¶
Create¶
| Action | Code | Details |
|---|---|---|
| Declare 1D array of length N |
|
|
| Declare 1D array with zeros |
|
|
| Declare 1D array with values |
|
|
| Declare 2D array of size N by M |
|
|
| Declare 2D array with values |
|
|
| Declare 3D array of size N by M by O |
|
Properties¶
| Action | Code | Details |
|---|---|---|
| Dimensions |
|
|
| Size of first dimension |
|
real a[4,3]; then size(a) = 4 |
| Number of elements |
|
Derive¶
Grow¶
| Action | Code | Details |
|---|---|---|
| Append array |
|
Convert¶
| Action | Code | Details |
|---|---|---|
| To 1D array |
|
|
| To 2D array |
|
|
| To vector |
|
|
| To matrix |
|
|
| 1D array to matrix of size (column-major order) |
|