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

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

[Octave-bug-tracker] [bug #64556] unwrap() does not handle NaN and Inf


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #64556] unwrap() does not handle NaN and Inf
Date: Tue, 15 Aug 2023 22:56:44 -0400 (EDT)

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

as a side note since we're messing with this function, the original part that
gets you d using repmat seems rather slow.  replacing with something like:


    sz(dim) = 1;
    zero_padding = zeros (sz);
    d = cat (dim, zero_padding, -diff (x, 1, dim));


tested about 6-10x faster


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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