Package: float 0.3-2

Drew Schmidt

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.

Authors:Drew Schmidt [aut, cre, cph], Wei-Chen Chen [aut], Dmitriy Selivanov [ctb], ORNL [cph]

float_0.3-2.tar.gz
float_0.3-2.tar.gz(r-4.5-noble)float_0.3-2.tar.gz(r-4.4-noble)
float.pdf |float.html
float/json (API)

# Install 'float' in R:
install.packages('float', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/wrathematics/float/issues

Uses libs:
  • openblas– Optimized BLAS
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

fortranopenblasopenmp

7.21 score 1 stars 42 packages 226 scripts 11k downloads 50 exports 0 dependencies

Last updated 1 years agofrom:ab0d3075e7. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 28 2024
R-4.5-linux-x86_64OKNov 28 2024

Exports:as.floatbacksolvecholchol2invcolMeanscolnamescolnames<-colSumsdbldiageigenflfloatfloat32flrandflrnormflrunifforwardsolveintis.floatisSymmetricLa.svdna.excludena.omitncolNCOLnormnrowNROWprintqrqr.Qqr.qtyqr.qyqr.RrcondrowMeansrownamesrownames<-rowSumsscaleshowsolvestorage.modesvdsweepttypeofwhich.maxwhich.min

Dependencies:

Introducing the float package: 32-Bit Floats for R

Rendered fromfloat.Rnwusingutils::Sweaveon Nov 28 2024.

Last update: 2020-04-22
Started: 2017-11-30

Readme and manuals

Help Manual

Help pageTopics
32-Bit Floatsfloat-package
arithmetic*,BaseLinAlg,float32-method *,float32,BaseLinAlg-method *,float32,float32-method +,BaseLinAlg,float32-method +,float32,BaseLinAlg-method +,float32,float32-method -,BaseLinAlg,float32-method -,float32,BaseLinAlg-method -,float32,float32-method /,BaseLinAlg,float32-method /,float32,BaseLinAlg-method /,float32,float32-method <,BaseLinAlg,float32-method <,float32,BaseLinAlg-method <,float32,float32-method <=,BaseLinAlg,float32-method <=,float32,BaseLinAlg-method <=,float32,float32-method ==,BaseLinAlg,float32-method ==,float32,BaseLinAlg-method ==,float32,float32-method >,BaseLinAlg,float32-method >,float32,BaseLinAlg-method >,float32,float32-method >=,BaseLinAlg,float32-method >=,float32,BaseLinAlg-method >=,float32,float32-method arithmetic ^,BaseLinAlg,float32-method ^,float32,BaseLinAlg-method ^,float32,float32-method
backsolvebacksolve backsolve,BaseLinAlg,float32-method backsolve,float32,BaseLinAlg-method backsolve,float32,float32-method forwardsolve,BaseLinAlg,float32-method forwardsolve,float32,BaseLinAlg-method forwardsolve,float32,float32-method
rbindbind cbind.float32 rbind.float32
Extractbracket [,float32-method [<-,float32-method
cc c,float32-method
cholchol chol,float32-method
chol2invchol2inv chol2inv,float32-method
colSumscolMeans,float32-method colsums colSums,float32-method rowMeans,float32-method rowSums,float32-method
comparisoncomparison
convertersas.data.frame.float32 as.double.float32 as.float as.integer.float32 as.matrix.float32 as.numeric,float32-method as.vector.float32 converters dbl fl int storage.mode,float32-method typeof,float32-method
crossprodcrossprod crossprod,Mat-method tcrossprod,Mat-method
diagdiag diag,float32-method
dimdim,float32-method dim<-,float32-method dims length,float32-method NCOL,float32-method ncol,float32-method NROW,float32-method nrow,float32-method
eigeneigen eigen,float32-method
extremesextremes max,float32-method min,float32-method which.max,float32-method which.min,float32-method
floatfloat
float32float32
Class float32float32-class
Hyperbolic functionsacosh,float32-method asinh,float32-method atanh,float32-method cosh,float32-method hyperbolic sinh,float32-method tanh,float32-method
is.floatis.float
isSymmetricisSymmetric isSymmetric,float32-method
Logarithms and Exponentialsexp,float32-method expm1,float32-method log log,float32-method log10,float32-method log2,float32-method
Machine_floatMachine_float
Finite, infinite, and NaNsis.finite,float32-method is.infinite,float32-method is.nan,float32-method mathis
matmult%*%,float32,float32-method %*%,float32,matrix-method %*%,matrix,float32-method matmult
Miscellaneous mathematical functionsabs,float32-method miscmath sqrt,float32-method
NAis.na,float32-method na na.exclude,float32-method na.omit,float32-method
NA_float_NA_float_
namescolnames,float32-method colnames<-,float32-method dimnames,float32-method dimnames<-,float32-method names names,float32-method names<-,float32-method rownames,float32-method rownames<-,float32-method
NaNfNaNf
normnorm norm,float32,ANY-method
print-float32print,float32-method print-float32 show,float32-method
QRqr qr,float32-method qr.Q,ANY-method qr.qty,ANY-method qr.qy,ANY-method qr.R,ANY-method
Generatorsflrand flrnorm flrunif rand
rcondrcond rcond,float32-method
reprep rep.float32
Roundceiling,float32-method floor,float32-method round round,float32-method trunc,float32-method
scalescale scale,float32-method
signsign sign,float32-method
solvesolve solve,float32-method
Special mathematical functionsgamma,float32-method lgamma,float32-method specialmath
sumsum sum,float32-method
SVDLa.svd,float32-method svd svd,float32-method
sweepsweep sweep,float32-method
Trigonometric functionsacos,float32-method asin,float32-method atan,float32-method cos,float32-method sin,float32-method tan,float32-method trig
xposet,float32-method xpose