Strange result from the matrix.@row() function

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

mamo
Posts: 205
Joined: Wed Nov 07, 2012 9:11 am

Strange result from the matrix.@row() function

Postby mamo » Wed Oct 30, 2024 9:51 am

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

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest