Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix Inversion using "inv" is Rather Slow #510

Open
rdbyk opened this issue May 7, 2018 · 0 comments
Open

Matrix Inversion using "inv" is Rather Slow #510

rdbyk opened this issue May 7, 2018 · 0 comments

Comments

@rdbyk
Copy link
Owner

rdbyk commented May 7, 2018

--> A=rand(1e3,1e3);

--> tic;for i=1:1e2;inv(A);end;toc
 ans  =
   40.747245

--> tic;for i=1:1e2;1/A;end;toc
 ans  =
   22.500095

--> tic;for i=1:1e2;A\1;end;toc
 ans  =
   20.154821

Scilab 5.5.x:

-->A=rand(1e3,1e3);
 
-->tic;for i=1:1e2;inv(A);end;toc
 ans  =
    26.745  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant