[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #51779] bsxfun unit tests occasionally fail on certain random inputs |
Date: |
Thu, 24 Aug 2017 12:00:12 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #7, bug #51779 (project octave):
Sorry to be late to this. In reference to comment #5, I believe we have
historically demoted rather than promoted to double. For example,
single (1) + 2
=>
single (1) + single (2)
The alternative would be to promote to double and then cast back to single at
the end.
single (1) + 2
=>
single (double (single (1)) + double (2))
But I don't think we do that.
So if possible, this is the desired computation
int32 (single (x) ^ single (int32 (y)))
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51779>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/