float

32-Bit Floats

R comes with a suite of utilities for linear algebra with "numeric" (double precision) vectors/matrices. However, sometimes single precision (or less!) is more than enough for a particular task. This package extends R's linear algebra facilities to include 32-bit float (single precision) data. Float vectors/matrices have half the precision of their "numeric"-type counterparts but are generally faster to numerically operate on, for a performance vs accuracy trade-off. The internal representation is an S4 class, which allows us to keep the syntax identical to that of base R's. Interaction between floats and base types for binary operators is generally possible; in these cases, type promotion always defaults to the higher precision. The package ships with copies of the single precision 'BLAS' and 'LAPACK', which are automatically built in the event they are not available on the system.

Total

8,192

Last month

957

Last week

197

Average per day

32

Daily downloads

Total downloads

Description file content

Package
float
Type
Package
Title
32-Bit Floats
Version
0.2-2
Description
R comes with a suite of utilities for linear algebra with "numeric" (double precision) vectors/matrices. However, sometimes single precision (or less!) is more than enough for a particular task. This package extends R's linear algebra facilities to include 32-bit float (single precision) data. Float vectors/matrices have half the precision of their "numeric"-type counterparts but are generally faster to numerically operate on, for a performance vs accuracy trade-off. The internal representation is an S4 class, which allows us to keep the syntax identical to that of base R's. Interaction between floats and base types for binary operators is generally possible; in these cases, type promotion always defaults to the higher precision. The package ships with copies of the single precision 'BLAS' and 'LAPACK', which are automatically built in the event they are not available on the system.
License
BSD 2-clause License + file LICENSE
Copyright
The copyright for the single precision BLAS/LAPACK distribution located in src/lapack is given in the file src/lapack/LICENSE.
Depends
R (>= 3.1.0), methods
Imports
utils, tools
LazyData
true
ByteCompile
yes
URL
BugReports
https://github.com/wrathematics/float/issues
Maintainer
Drew Schmidt
RoxygenNote
6.1.0
NeedsCompilation
yes
Packaged
2019-02-26 01:02:47 UTC; mschmid3
Author
Drew Schmidt [aut, cre, cph], Wei-Chen Chen [aut], Dmitriy Selivanov [ctb] (improvements in external package linking), ORNL [cph]
Repository
CRAN
Date/Publication
2019-02-26 12:50:03 UTC

install.packages('float')

0.2-2

a month ago

https://github.com/wrathematics/float

Drew Schmidt

BSD 2-clause License + file LICENSE

Depends on

R (>= 3.1.0), methods

Imports

utils, tools

Discussions