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

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

[Octave-bug-tracker] [bug #52756] implement xor as C++ function


From: Sahil Yadav
Subject: [Octave-bug-tracker] [bug #52756] implement xor as C++ function
Date: Fri, 5 Jan 2018 16:42:15 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36

Follow-up Comment #1, bug #52756 (project octave):

The code that i wrote took around 0.14 seconds against 0.09 seconds taken by
the 'or' function on the script that you provided.

It fails the test cases when we need to use 'bsxfun', in that case i would
request you to have a look at the code and suggest edits in the try{} block
(because i think bsxfun is not correctly implemented using feval function). I
have added two more test cases which are currently failing due to the same
reason. Moreover, I didn't get why octave exits with signal 11 when it is
failing those tests (it should instead throw the error). 

All other test cases are passed successfully.Thanks.

Steps to reproduce:
1. Save the code in top level directory of the source, naming it xor1.cc
2. mkoctfile xor1.cc 
3. test xor1


(file #42854)
    _______________________________________________________

Additional Item Attachment:

File name: xor1.cc                        Size:3 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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