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

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

[Octave-bug-tracker] [bug #59527] num2str: percent sign removes newline


From: Rik
Subject: [Octave-bug-tracker] [bug #59527] num2str: percent sign removes newline for column vector
Date: Wed, 25 Nov 2020 17:38:45 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36

Update of bug #59527 (project octave):

                  Status:               Confirmed => Patch Reviewed         

    _______________________________________________________

Follow-up Comment #3:

@jwe: Your diff works for the example code in this bug report.  I also tried a
different formulation of the test using regexp() to see if there was a
performance difference:


tic; numel (regexp (fmt, '(?<!%)%(?!%)', 'start')) > 1; toc


It is about 2x slower (although still only .3 milliseconds) compared to
staying entirely within Octave character matrices (~.15 milliseconds).

I think it's fine to convert the diff to a true changeset.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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