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

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

[Octave-bug-tracker] [bug #55622] for loop does not run over a matrix wi


From: anonymous
Subject: [Octave-bug-tracker] [bug #55622] for loop does not run over a matrix with colums but no row
Date: Thu, 14 Feb 2019 15:12:38 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:60.9) Goanna/4.1 PaleMoon/28.2.0a1

Follow-up Comment #14, bug #55622 (project octave):

It seems that MATLAB has used the concept of nullable type
<https://en.wikipedia.org/wiki/Nullable_type>.
>From the documentation
<https://www.mathworks.com/help/matlab/math/creating-and-concatenating-matrices.html>:

"An empty array in MATLAB is an array with at least one dimension length
equal
to zero. Empty arrays are useful for representing the concept of "nothing"
programmatically."

All nonabstract MATLAB classes have a method named empty
<https://www.mathworks.com/help/matlab/ref/empty.html>. For example we can
write:


A = int16.empty(5,0);


It means that all non abstract types all nullable. Therefore we can make array
of nulls and iterate over nulls.
--Interesting discussion--

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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