PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Constructing Matrices
>
Built-in
Mathematica
Symbol
Array
Table
Range
SparseArray
IdentityMatrix
UnitVector
See Also »
|
Constructing Lists
Constructing Matrices
Operations on Vectors
New in 6.0: List Manipulation
New in 6.0: Matrix & Linear Algebra Functions
More About »
ConstantArray
ConstantArray
[
c
,
n
]
generates a list of
n
copies of the element
c
.
ConstantArray
[
c
, {
n
1
,
n
2
,
...
}]
generates an
array of nested lists containing copies of the element
c
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Make a vector of 10
c
's:
In[1]:=
Out[1]=
Make a 3×4 array of
c
's:
In[1]:=
Out[1]=
Scope
(4)
Applications
(3)
Properties & Relations
(3)
SEE ALSO
Array
Table
Range
SparseArray
IdentityMatrix
UnitVector
MORE ABOUT
Constructing Lists
Constructing Matrices
Operations on Vectors
New in 6.0: List Manipulation
New in 6.0: Matrix & Linear Algebra Functions
New in 6
© 2008 Wolfram Research, Inc.