Left Division of a non-quadratic Matrix

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

fcscunha
Posts: 13
Joined: Mon Oct 19, 2009 6:19 am

Left Division of a non-quadratic Matrix

Postby fcscunha » Mon Oct 19, 2009 10:01 am

Hi,

i am trying to do the left division of A\B, where A is mXn and m is higher than n and B is 1X1.

how can i do that?

Many thanks in advance!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13317
Joined: Tue Sep 16, 2008 5:38 pm

Re: Left Division of a non-quadratic Matrix

Postby EViews Gareth » Mon Oct 19, 2009 10:52 am

I think what you're asking for (and I'm not 100% certain it is what you're asking) is for the division of a scalar(B) by a matrix(A). Unfortunately EViews won't do this. However you can get around it by creating a matrix of the same size as A, filling it with the scalar (B), then performing element by element division:

Code: Select all

matrix(m,n) Bmat
Bmat = B
matrix result = @ediv(Bmat,A)
Follow us on Twitter @IHSEViews

fcscunha
Posts: 13
Joined: Mon Oct 19, 2009 6:19 am

Re: Left Division of a non-quadratic Matrix

Postby fcscunha » Tue Oct 20, 2009 6:24 am

Thanks


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 37 guests