LayoutArray

Command: LayoutArray


Synopsis
[d1 d2 ...] val LayoutArray -> [...]
File
lib/sli/mathematica.sli
Parameters
[d1 d2 ...] - Array with dimensions.
val - initialisation value for array entries
Author
Marc-oliver Gewaltig
Description

LayoutArray generates a multi-dimensional array which is
initialised to val.

FirstVersion
20.6.02
Examples

[5] 1 LayoutArray -> [1 1 1 1 1]
[2 3] 1.0 LayoutArray -> [ [1.0 1.0 1.0] [1.0 1.0 1.0]]