[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52174] bitand, bitor, bitxor: support automat
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #52174] bitand, bitor, bitxor: support automatic broadcasting |
Date: |
Thu, 5 Oct 2017 11:45:08 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0 |
Update of bug #52174 (project octave):
Severity: 3 - Normal => 2 - Minor
Priority: 5 - Normal => 3 - Low
Item Group: Incorrect Result => Matlab Compatibility
Status: None => Confirmed
Release: 4.2.1 => dev
Summary: bitxor does not work between one row vector and one
column vector => bitand, bitor, bitxor: support automatic broadcasting
_______________________________________________________
Follow-up Comment #1:
This was a recent change in Matlab R2016b, take a look at
https://blogs.mathworks.com/loren/2016/10/24/matlab-arithmetic-expands-in-r2016b/
The bitand, bitor, and bitxor functions are among a handful of others that now
support automatic broadcasting when given unlike vectors.
As a workaround for now you can still explicitly use bsxfun
c = bsxfun (@bitxor, byteVector', data);
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52174>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/