Page 1 of 1

Strange result from the matrix.@row() function

Posted: Wed Oct 30, 2024 9:51 am
by mamo
Dear Eviews team,
I use Eviews 13 October 2022 build.
Why is that the matrices m1 m1a in the code example below are of dimension 3X1 rather than 1X3?
I would expect the extraction of a row from a 3X3 matrix to yield a matrix of dimension 1X3

Code: Select all

wfcreate u 1 1 matrix x=@unvec(@range(1,9),3) 'create a 2X2 matrix vector v1=1 vector v2=@range(1,2) ' Extraction of the first two rows of matrix x yields a 2X3 matrix, as expected matrix m2=x.@row(v2) show m2 ' Extraction of the first row of matrix x yields a 3X1 matrix, unexpectedly so! matrix m1=x.@row(v1) show m1 ' Same here, a 3X1 matrix, unexpectedly so! matrix m1a=x.@row(2) show m1a