octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave/C++ matrix Inv() comparison


From: Jean-François LE BAS
Subject: Re: Octave/C++ matrix Inv() comparison
Date: Fri, 19 Jul 2013 10:33:18 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7

thank you i'll give a try to Armadillo

regards,

Jeff

Le 17/07/2013 04:05, mtall a écrit :
You may wish to use the Armadillo library, which provides an inv() function
in C++, instead of writing your own.  Have a look at:
http://arma.sourceforge.net/docs.html#inv

Armadillo uses LAPACK for inv(), so it will provide the same answer as
Octave. To see how inv() is implemented, have a look at Armadillo's source.
The related functions are in the "include/armadillo_bits/auxlib_meat.hpp"
file, within the Armadillo archive, which you can get from:
http://arma.sourceforge.net/download.html



ionone wrote
Also to do it simpler, here are the numbers in a 20x20 matrix in Octave
and in C++

the funny thing is that when i take the inverse in octave, ihave the exact
answer, but if i take the inverse with Lapack i have something totally
different...Not even close as before. Dunno...




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Octave-C-matrix-Inv-comparison-tp4655291p4655747.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]