bugGNU Octave - Bugs: bug #52380, lower/upper functions should pass...

 
 

bug #52380: lower/upper functions should pass any numeric value?

Submitted by:  A.R. Burgers <arb>
Submitted on:  Thu 09 Nov 2017 10:08:51 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
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.

 

Mon 13 Nov 2017 07:17:37 PM UTC, comment #2:

from an examination of the code, it appears making lower/upper work on complex numbers entails implementing the umap_xtolower/umap_xtoupper to files ov-cx-mat.cc, ov-flt-cx-mat.cc and complex.cc in libinterp/octave-value.

A.R. Burgers <arb>
Sat 11 Nov 2017 01:08:02 AM UTC, comment #1:

I can confirm this for R2017b, even though the Matlab documentation does not mention this use case:

https://www.mathworks.com/help/matlab/ref/lower.html

For what I see, this item is independent of bug #52358, but it is an example where this behavior was triggered.

Kai Torben Ohlhus <siko1056>
Project Member
Thu 09 Nov 2017 10:08:51 PM UTC, original submission:

See http://savannah.gnu.org/bugs/?52358

There it appears tolower fails on complex numeric values.
I guess lower/upper should return any numeric value unchanged:

On matlab

octave:

A.R. Burgers <arb>

 

(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 siko1056 (Posted a comment)
  • -unavailable- added by arb (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
    Sat 11 Nov 2017 01:08:02 AM UTCsiko1056StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1