Vectorising Matrices
- To: mathgroup at yoda.physics.unc.edu
- Subject: Vectorising Matrices
- From: robt at mars.agsm.unsw.edu.au (Rob Trevor)
- Date: Tue, 21 Sep 1993 16:45:01 +1000
So I don't re-invent the wheel...has anyone written a small package for vectorising matrices? I've written the 'vec' function to stack the rows of a matrix into a column vector, and the 'vech' function to stack the upper triangular part of a symmetric matrix into a column vector. I'm just working out how to reverse these operations and thought I'd check if someone had already done something along these lines. Thanks Rob ------------------------------------------------------------------------------- Rob Trevor Associate Professor, Australian Graduate School of Management University of New South Wales PO Box 1, Kensington, NSW, AUSTRALIA 2033 Internet: robt at agsm.unsw.edu.au or R.Trevor at unsw.edu.au VOICE: +61 (2) 931-9274 FAX: +61 (2) 662-7621 or +61 (2) 662-2451 -------------------------------------------------------------------------------