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

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

[Octave-bug-tracker] [bug #41674] image package: temporary arrays in imr


From: Felipe G. Nievinski
Subject: [Octave-bug-tracker] [bug #41674] image package: temporary arrays in imresize are doubles
Date: Thu, 27 Feb 2014 23:43:02 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36

Follow-up Comment #12, bug #41674 (project octave):

for me:

>> class(linspace(single(1), 2))
ans = single

although

>> class(linspace(1, 2, single(10)))
ans = double

both as expected, I'd say.


XD and YD may contain fractional values, so we need to check if single
precision is sufficient to store these values.  their maximum value is not
expected to be anywhere near the maximum integer used for indexing.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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