bugGNU Octave - Bugs: bug #53232, Range type should implement...


bug #53232: Range type should implement element-by-element multiplication operator with a scalar

Submitted by:  Rik <rik5>
Submitted on:  Tue 27 Feb 2018 01:50:47 AM UTC  
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
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.


Tue 27 Feb 2018 07:34:54 PM UTC, comment #2:

As an additional data point, see bug #53199 where the extra accuracy of a Range, versus a Matrix, data type was crucial to resolving the bug.

Rik <rik5>
Project Administrator
Tue 27 Feb 2018 04:02:56 AM UTC, comment #1:

See also bug #50924. Some care needs to be used when implementing these operators. Otherwise, if accuracy and/or compatibility is important, we should probably limit the range type to be used in only a few cases (for loop ranges, for example), same as Matlab.

John W. Eaton <jwe>
Project Administrator
Tue 27 Feb 2018 01:50:47 AM UTC, original submission:

The Range class already implements addition, subtraction, and multiplication operators with a scalar. And it implements the corresponding element-by-elment operators for addition (.+) and subtraction (.-). But it does not implement element-by-elment multiplication.

For example:

This seems like an oversight and should be easy to fix as the element-by-element operator should just map to the same routine that ordinary multiplication is using.

Rik <rik5>
Project Administrator


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

Attach File(s):

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 jwe (Posted a comment)
  • -unavailable- added by rik5 (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):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 27 Feb 2018 07:34:54 PM UTCrik5StatusNone=>Confirmed

    Back to the top

    Powered by Savane 3.1-cleanup1