powered by
Creates a basis vector of length size with a 1 in the index position.
size
index
# Create the index basis vector in R^size basisVector(index, size)
Returns a basis vector of length size with a 1 in the index position.
The index at which there should be a one. Default equals one.
The length of the vector. Default equals one.
# Create the first basis vector in R^2 basisVector(index = 1, size = 2) # Create the third basis vector in R^6 basisVector(index = 3, size = 6)
Run the code above in your browser using DataLab