Slow matrix inverse

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

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Slow matrix inverse

Postby trubador » Fri Jan 03, 2014 12:50 pm

This is not a bug, but when the following code is run, EViews returns the answer after a long while (3 minutes in my case). I'd like to know if anything can be done to speed things up.

Code: Select all

tic wfcreate u 100 matrix y = @mnrnd(2500,2500) matrix z = @inverse(y*@transpose(y)) scalar elapsed = @toc/60

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Slow matrix inverse

Postby startz » Fri Jan 03, 2014 1:35 pm

Just to chime in, in Matlab the same code takes 2 to 3 seconds. That's a very big difference.

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

Re: Slow matrix inverse

Postby EViews Gareth » Fri Jan 03, 2014 5:32 pm

Code: Select all

tic wfcreate u 100 matrix y = @mnrnd(2500,2500) matrix z = @inverse(@inner(y.@t)) scalar elapsed = @toc/60
?

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Slow matrix inverse

Postby trubador » Sat Jan 04, 2014 4:32 am

Yes Gareth, thanks. It is much better (5x faster).


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest