Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Augmenting a vector

There are simple ways to extend a matrix to form a larger matrix: I can augment it to add columns or stack it to add rows.

Is there something similar for simple vectors? Some method of a vector object which would return the same vector with one more element added to the end? Or do I have to write that myself?