Vectorization of the nonzero entries of a matrix

110 Views Asked by At

I am familiar with the $\textrm{vec}(A)$ operator, where the columns of a matrix $A$ are stacked into a vector. If my matrix $A$ has zero-entries, is there a standard notation/operator like $\textrm{vec}(A)$, which would similarly stack the columns of $A$ but ignores the zero-entries?