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

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

[Octave-bug-tracker] [bug #63802] movfun always returns class="double"


From: Rik
Subject: [Octave-bug-tracker] [bug #63802] movfun always returns class="double"
Date: Mon, 13 Feb 2023 17:29:08 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?63802>

                 Summary: movfun always returns class="double"
                 Project: GNU Octave
               Submitter: rik5
               Submitted: Mon 13 Feb 2023 02:29:06 PM PST
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: Confirmed
             Assigned to: rik5
         Originator Name: rik5
        Originator Email: 
             Open/Closed: Open
                 Release: stable
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: 8.1.0 (current stable)


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 13 Feb 2023 02:29:06 PM PST By: Rik <rik5>
movfun() does not respect the class of the input.  Example code:


xs = single (1:10);
y = movfun (@mean, xs, 3);
class (y)
=> double


Matlab correctly returns "single".

Another issue is an error when requesting movfun work on a dimension with zero
elements.  Sample code:


o = ones (2, 0, 3);
y = movfun (@mean, o, 3, 2);
error: movslice: N must be a positive integer









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63802>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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