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

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

[Octave-bug-tracker] [bug #53681] invalid conversion from lazy_index to


From: Rik
Subject: [Octave-bug-tracker] [bug #53681] invalid conversion from lazy_index to int32
Date: Thu, 19 Apr 2018 11:12:48 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #6, bug #53681 (project octave):

Doing a little bit of experimentation with the current stable branch, it
appears that there is only a function for converting a lazy_index to a
logical.  Other types just fail.


octave:1> xv = 0:0.01:20;
octave:2> tmp = find (xv < 0.05)
tmp =

   1   2   3   4   5

octave:3> typeinfo (tmp)
ans = lazy_index
octave:4> int32 (tmp)
error: invalid conversion from lazy_index to int32
octave:4> double (tmp)
error: invalid conversion from lazy_index to double
octave:4> logical (tmp)
ans =

  1  1  1  1  1

octave:5> single (tmp)
error: invalid conversion from lazy_index to single




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53681>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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