|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Matrices and Linear Algebra
>
Constructing Matrices
>
ConstantArray
BUILT-IN MATHEMATICA SYMBOL
ConstantArray
ConstantArray[c, n]
generates a list of n copies of the element c.
ConstantArray[c, {n1, n2, ...}]
generates an
array of nested lists containing copies of the element c.
DetailsDetails
- ConstantArray[c, n, SparseArray] gives the constant array as a SparseArray object.
New in 6 | Last modified in 7
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
