Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Module Library

COLVEC Function

converts a matrix into a column vector
COLVEC( matrix)

where matrix is any n ×m matrix.

The COLVEC function returns an nm ×1 vector. It converts a matrix into a column vector in row-major order. The returned vector has 1 column and nm rows. The first n elements in the vector correspond to the first row of the input matrix, the next n elements correspond to the second row, and so on.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.