Skip to content
Prev 261619 / 398502 Next

Create Matrix with Float32 values

On 01/06/2011 12:16 PM, Chris English wrote:
You can't.  R doesn't support that type.

If you want to pass it to an external function that is expecting C 
single type, you can use as.single(x).  That won't convert it to single 
precision, but it will cause it to be copied to a single precision array 
whenever you call .C or .Fortran.

Duncan Murdoch