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

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

[Octave-bug-tracker] [bug #55667] Conflict between package namespace and


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #55667] Conflict between package namespace and function name
Date: Thu, 7 Feb 2019 12:57:24 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #5, bug #55667 (project octave):

Philip, if you are asking is something like


y = x(2:4)(2);


automatically transformed to x(3), then the answer is no.  It is just
performed as a series of indexing calls that generate internal temporary
variables.  So ultimately it's not much different from writing


tmp = x(2:4);
y = tmp(2);


except that in the first case, the internal temporary is not entered into the
symbol table and may be cleared as soon as it is no longer needed.

But Octave also attempts to manage data array slices without making copies, so
indexing like this should not create additional copies of the original array.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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