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

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

[Octave-bug-tracker] [bug #45758] for 'range' type input some functions


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #45758] for 'range' type input some functions fail to return type range
Date: Fri, 14 Aug 2015 11:14:03 +0000
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2478.0 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?45758>

                 Summary: for 'range' type input some functions fail to return
type range
                 Project: GNU Octave
            Submitted by: godfrey
            Submitted on: Fri 14 Aug 2015 11:14:02 AM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Godfrey
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Bug #45739 has brought to light the fact that some
functions which are expected to return a result of
the same type as the input that is to be processed
fail to do this in the case that the input is type 
'range'.

At the base of this is: flip. For example:
>> r = 1:2:7
r =

   1   3   5   7

>> a= flip(r,2)
a =

   7   5   3   1

>> typeinfo(a)
ans = matrix
>> 

This affects at least: fliplr, flipud, rot90, rotdim.
permute is also invoked in these functions.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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