bugGNU Octave - Bugs: bug #31823, floor/ceil caching causing...

 
 

bug #31823: floor/ceil caching causing incorrect behavior when concatenating

Submitted by:  None
Submitted on:  Wed 08 Dec 2010 09:26:38 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: AlexOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.2
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 09 Dec 2010 06:06:18 AM UTC, comment #5:

Rik, the actual size was indeed 6 across, but the problem has fully been addressed

Thank you John. Octave was parsing the + as the unaray operation.

Anonymous
Thu 09 Dec 2010 05:57:51 AM UTC, comment #4:

I suspect your problems is the spaces before the +floor and +ceil in the expression

Octave parses these as separate elements, not a binary addition. See the explanation here:

http://www.gnu.org/software/octave/doc/interpreter/Matrices.html#Matrices

If this is not the problem, then reopen the bug report and tell us the values of m and n in the call to your function so that we can reproduce the error..

John W. Eaton <jwe>
Project Administrator
Thu 09 Dec 2010 04:51:21 AM UTC, comment #3:

Try checking the size of Wx directly before the call to reshape and see if Wx really has 6 columns.

Rik <rik5>
Project Administrator
Wed 08 Dec 2010 08:24:31 PM UTC, comment #2:

Notice that each call to size has one of the concatenation elements. There are 4 elements being concatenated, all with size 147576x1 (from the provided output).

is there a more appropriate way to verify this other than outputing the size of each element?

Anonymous
Wed 08 Dec 2010 05:15:55 PM UTC, comment #1:

Could you verify that only 4 columns are being concatenated? According to the message from reshape:

Rik <rik5>
Project Administrator
Wed 08 Dec 2010 09:26:38 AM UTC, original submission:

Each of the four columns of Wx has width 1, but Wx has width 6.

Calculating each column and storing it in a variable, then concatenating those variables does NOT result in an error.

In the following code:
n is a scalar
Gx and Gy are vectors of the same length
nnz is 4 times that length

The exact output is as follows:

omitting the reshape and using vertical concatenation gives:

The error occurs both when preallocating Wx and when no preallocating Wx.

I installed the image processing package off what i think is a clean install of 3.2.2.
http://octave.sourceforge.net/image/index.html

This problem also occured on 3.0.5 which prompted the reinstall.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #22158:  registration.m.buggy added by None (1KiB - application/octet-stream - file containing the bug inducing code)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 09 Dec 2010 05:57:51 AM UTCjweStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Wed 08 Dec 2010 05:15:55 PM UTCrik5StatusNone=>Need Info
    Wed 08 Dec 2010 09:26:39 AM UTCNoneAttached File-=>Added registration.m.buggy, #22158

    Back to the top


    Powered by Savane 3.1-cleanup1