Author Topic: Challenge - Matrix Inverse  (Read 2226 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 495
Challenge - Matrix Inverse
« on: December 30, 2013, 09:45:25 AM »
Dear All,

http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/Transformation-Matrix-Inverse/td-p/2351798

http://www.lee-mac.com/mathematicalfunctions.html

I have also found challenge of Determinant of Matrix at :-

http://www.theswamp.org/index.php?topic=45666

The above matrix inverse functions work well in case of small matrices.
But in case of large matrices (of order of 8000 x 8000 or more), the LISP routines keep on working endlessly.

I have used Matrix Inverse function in Microsoft Excel and it is very Fast even for a 8000 x 8000 matrix (it took around 75 seconds to calculate inverse of 8000 x 8000 matrix in Excel).

Thus, I want to ask what is the logic for world's fastest matrix inverse ? And can we implement it in LISP ?
« Last Edit: December 30, 2013, 09:52:38 AM by mailmaverick »

VovKa

  • Water Moccasin
  • Posts: 1632
  • Ukraine
Re: Challenge - Matrix Inverse
« Reply #1 on: December 30, 2013, 02:15:32 PM »
The above matrix inverse functions work well in case of small matrices.
But in case of large matrices (of order of 8000 x 8000 or more), the LISP routines keep on working endlessly.
if you don't precompile you lsp files, just take Lee's code and substitute '(lambda ( x )....) to (function (lambda ( x )....)
it'll run faster