Mathematica > Mathematics and Algorithms > Matrices and Linear Algebra > Constructing Matrices >

Array

Array[f, n]
generates a list of length n, with elements f[i].
Array[f, {n1, n2, ...}]
generates an n_1xn_2x... array of nested lists, with elements f[i1, i2, ...].
Array[f, {n1, n2, ...}, {r1, r2, ...}]
generates a list using the index origins ri (default 1).
Array[f, dims, origin, h]
uses head h, rather than List, for each level of the array.
New in 1 | Last modified in 4
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team