[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8622] basic matrix functions
From: |
畢何杰 |
Subject: |
[Octave-patch-tracker] [patch #8622] basic matrix functions |
Date: |
Mon, 16 Mar 2015 15:15:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/41.0.2272.76 Chrome/41.0.2272.76 Safari/537.36 |
Follow-up Comment #2, patch #8622 (project octave):
Thanks for your opinion. However I do disagree with some of the response.
" adjugate and cofactors are numerically useless...". For your purposes, yes,
they're useless. To some students starting a course in linear
algebra/matrices, it's useful. I'm sure if I had something more complex to do
I would use something smarter from Octave or an Octave-Forge package. Yes
there are better ways of computing the inverse. It's a matter of choice. What
if I need to do it this way? Who cares about being computationally expensive
when it almost instantly spits out results for my 4x4 matrix? Someone who is
actually concerned about those factors would NOT be looking for these
functions.
Perhaps I could include a warning in the function similar to how some other
Octave functions warn of being expensive.
-- About copy and paste code and the % comments etc
Yes, it needs cleaning up. The Matlab style is how I learned, but I can
change it. I just wrote the functions so I could have something that worked.
I would like to fix the code. It should be obvious that I am still a noob at
math and Octave/Matlab, so could you please clarify what type of numerical
errors or conditions would cause the errors?
Thanks
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8622>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/