I am reshaping matrices into a single vector. This is the function that I am using. Is there a conventional symbol for this operation (latex command)?
Asked
Active
Viewed 369 times
1
-
The APL programming language called this the "ravel" operator and just used a comma. – John Douma May 25 '13 at 21:41
1 Answers
1
This is typically denoted by the operator $\text{vec}(\cdot)$.
In MATLAB, you could also just use the built-in colon operator (e.g. b = A(:)), which will stack entries of a matrix in column-major order.
Ross B.
- 1,856
- 10
- 16