octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49076] Should perform matrix chain multiplica


From: Bernardo Sulzbach
Subject: [Octave-bug-tracker] [bug #49076] Should perform matrix chain multiplication optimization
Date: Fri, 16 Sep 2016 01:27:09 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

Follow-up Comment #2, bug #49076 (project octave):

I understand your concerns. However, this is not meant to be a new default
behavior. I would like this to be a function provided by octave. Using the *
with matrices should still call mtimes and not this new function.

After rereading my last paragraph I see that it only hints at a different
function calling mtimes. However, I don't mean that multiple usages of *
should lead into a call to this function rather than mtimes. I am not
proposing any changes to the current behavior of matrix multiplication in
Octave.

The main point of the enhancement is to allow more efficient code for large
enough matrices where overflow should not happen without requiring men hours
to optimize the order manually when the optimization is not trivial.

----

As a last note, you are referring to -fassociative-math (and some other
options) which allow the compiler to assume that FP math is associative. The
optimizations I am talking about will, evidently, reorder multiplications.
This is just another reason not to make this behavior the new default, which I
don't want it to become.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49076>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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