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: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #63802] movfun always returns class="double"
Date: Mon, 27 Feb 2023 12:17:52 -0500 (EST)

Follow-up Comment #7, bug #63802 (project octave):

thinking about this more and the infinite possibility of what could be called
by movefun, that could include something that errors on being passed a single
input zero. or the result could be different passing it a double(0) vs a
cast(0, class(x)), or any of the other myriad possibilities.

I would suggest falling back to class out = class(x) for the case of empty
inputs. it matches most of the 'simple' functions with dedicated calling
functions, and leaves the rest of the headache alone.

by the way, is it sufficient to run this for N==0?  even if szx(dim)>0, if any
other dim has size = 0, it should get shortcut as empty too, no?


    _______________________________________________________

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]