octave-maintainers
[Top][All Lists]
Advanced

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

Re: surface cdata property restricted to double or uint8


From: John W. Eaton
Subject: Re: surface cdata property restricted to double or uint8
Date: Mon, 30 Aug 2010 00:35:00 -0400

On 30-Aug-2010, Shai Ayal wrote:

| Maybe I'm misunderstanding the original code, but doesn't it also
| convert the whole array to double? In this case we loose no
| performance by converting beforehand when compared to the original
| code.

Yes, but since the conversion happens for only one element at a time,
it requires less memory.  Converting the whole array at once requires
twice the storage of a single precision array for the temporary
variable.  The current code only requires 8 additional bytes.

jwe


reply via email to

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