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 08:23:38 -0500 (EST)

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

would it be simple enough to make the trivial return


y = zeros (szx, class (x));


for something with szx=0 in the dimension, the workload should be fairly small
to begin with that the call to class shouldn't be too painful. 

alternatively, since you're always calling class(x) down at 264, could call
and store it as xclass up front and then just do y = zeros(szx, xclass) if
it's needed here.


    _______________________________________________________

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]