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

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

[Octave-bug-tracker] [bug #52174] bitxor does not work between one row v


From: sebman
Subject: [Octave-bug-tracker] [bug #52174] bitxor does not work between one row vector and one column vector
Date: Thu, 5 Oct 2017 07:05:32 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:55.0) Gecko/20100101 Firefox/55.0

URL:
  <http://savannah.gnu.org/bugs/?52174>

                 Summary: bitxor does not work between one row vector and one
column vector
                 Project: GNU Octave
            Submitted by: sebma
            Submitted on: Thu 05 Oct 2017 11:05:30 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Mac OS

    _______________________________________________________

Details:

Hi,

First I have one question, why not migrate to GitHub or other ?
It would be great to be able to use markdown language and preview the bug
before we submit it.

Here is the problem with the bitxor function :

On Matlab R2017a (9.2.0.556344) :
>> byteVector=0:255;
>> data=0:499;
>> whos byteVector data
  Name            Size             Bytes  Class     Attributes

  byteVector      1x256             2048  double
  data            1x500             4000  double

>> c=bitxor(byteVector,data);
Error using bitxor
Inputs must have the same size.

>> c=bitxor(byteVector',data); %Transposing the first vector
>> whos c
  Name        Size               Bytes  Class     Attributes

  c         256x500            1024000  double
On Octave 4.2.1 :
octave:1> byteVector=0:255;
octave:2> data=0:499;
octave:3> whos byteVector data
Variables in the current scope:

   Attr Name            Size                     Bytes  Class
   ==== ====            ====                     =====  =====
        byteVector      1x256                       24  double
        data            1x500                       24  double

Total is 756 elements using 48 bytes

octave:4> c=bitxor(byteVector,data);
error: bitxor: size of X and Y must match, or one operand must be a scalar
octave:4> c=bitxor(byteVector',data); %Transposing the first vector
error: bitxor: size of X and Y must match, or one operand must be a scalar
octave:4> whos c
octave:5>

Can you please have a look ?




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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