From alireza.s.mahani at gmail.com  Tue Jul 19 00:15:22 2011
From: alireza.s.mahani at gmail.com (Alireza Mahani)
Date: Mon, 18 Jul 2011 15:15:22 -0700 (PDT)
Subject: [Rd] Manipulating single-precision (float) arrays in .Call
	functions
In-Reply-To: <4E245D01.1010407@gmail.com>
References: <1311004330702-3675684.post@n4.nabble.com>
	<4E245D01.1010407@gmail.com>
Message-ID: <1311027322959-3676667.post@n4.nabble.com>

Duncan,

Thank you for your reply. This is a rather unfortunate limitation, because
for large data sizes there is a significant difference between the
performance of '.C' and '.Call'. I will have to do some tests to see what
sort of penalty I incur for copying from double to float inside my C++ code
(so I can use '.Call'). I won't be able to use memset(); rather, I have to
have an explicit loop and use casting. Is there a more efficient option?

-Alireza


--
View this message in context: http://r.789695.n4.nabble.com/Manipulating-single-precision-float-arrays-in-Call-functions-tp3675684p3676667.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] Manipulating single-precision (float) arrays in .Call functions
Alireza Mahani