bugGNU Octave - Bugs: bug #45293, Inconsistent behaviour when...

 
 

bug #45293: Inconsistent behaviour when appending to empty matrices

Submitted by:  Alexander Klein <matalex>
Submitted on:  Wed 10 Jun 2015 11:26:35 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 29 Dec 2016 09:29:07 PM UTC, comment #2:

This behavior is still the same in Octave 4.2.0.

Hartmut <hardy>
Wed 10 Jun 2015 02:12:25 PM UTC, comment #1:

Thanks for your bug report. Confirmed on the current stable and development versions as well.

To summarize, the "end" magic index seems to not work on higher empty dimensions. All of your examples where c is empty and "end" is used in the first or second dimension, "end+1" is exactly the same as "1". But in the third dimension, "end+1" implicitly creates a zero-element first page and assigns ones to a second page.

Mike Miller <mtmiller>
Project Administrator
Wed 10 Jun 2015 11:26:35 AM UTC, original submission:

The other day I discovered that Octave's behaviour when appending to empty fields depends on the dimensionality of what is appended and the dimension you append to, see the final example below, which is completely different from what happens above it.

If this is intended behaviour, then maybe some warning should be issued!

Alexander Klein <matalex>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by matalex (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 10 Jun 2015 02:12:47 PM UTCmtmillerCategoryOctave Function=>Interpreter
    Wed 10 Jun 2015 02:12:25 PM UTCmtmillerStatusNone=>Confirmed
      Release3.8.2=>dev

    Back to the top


    Powered by Savane 3.1-cleanup1