Package: float 0.3-2
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:
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')) |
Bug tracker:https://github.com/wrathematics/float/issues
- Machine_float - Machine_float
- NA_float_ - NA_float_
- NaNf - NaNf
Last updated 12 months agofrom:ab0d3075e7. Checks:OK: 2. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 28 2024 |
R-4.5-linux-x86_64 | OK | Nov 28 2024 |
Exports:as.floatbacksolvecholchol2invcolMeanscolnamescolnames<-colSumsdbldiageigenflfloatfloat32flrandflrnormflrunifforwardsolveintis.floatisSymmetricLa.svdna.excludena.omitncolNCOLnormnrowNROWprintqrqr.Qqr.qtyqr.qyqr.RrcondrowMeansrownamesrownames<-rowSumsscaleshowsolvestorage.modesvdsweepttypeofwhich.maxwhich.min
Dependencies:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
32-Bit Floats | float-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 |
backsolve | backsolve backsolve,BaseLinAlg,float32-method backsolve,float32,BaseLinAlg-method backsolve,float32,float32-method forwardsolve,BaseLinAlg,float32-method forwardsolve,float32,BaseLinAlg-method forwardsolve,float32,float32-method |
rbind | bind cbind.float32 rbind.float32 |
Extract | bracket [,float32-method [<-,float32-method |
c | c c,float32-method |
chol | chol chol,float32-method |
chol2inv | chol2inv chol2inv,float32-method |
colSums | colMeans,float32-method colsums colSums,float32-method rowMeans,float32-method rowSums,float32-method |
comparison | comparison |
converters | as.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 |
crossprod | crossprod crossprod,Mat-method tcrossprod,Mat-method |
diag | diag diag,float32-method |
dim | dim,float32-method dim<-,float32-method dims length,float32-method NCOL,float32-method ncol,float32-method NROW,float32-method nrow,float32-method |
eigen | eigen eigen,float32-method |
extremes | extremes max,float32-method min,float32-method which.max,float32-method which.min,float32-method |
float | float |
float32 | float32 |
Class float32 | float32-class |
Hyperbolic functions | acosh,float32-method asinh,float32-method atanh,float32-method cosh,float32-method hyperbolic sinh,float32-method tanh,float32-method |
is.float | is.float |
isSymmetric | isSymmetric isSymmetric,float32-method |
Logarithms and Exponentials | exp,float32-method expm1,float32-method log log,float32-method log10,float32-method log2,float32-method |
Machine_float | Machine_float |
Finite, infinite, and NaNs | is.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 functions | abs,float32-method miscmath sqrt,float32-method |
NA | is.na,float32-method na na.exclude,float32-method na.omit,float32-method |
NA_float_ | NA_float_ |
names | colnames,float32-method colnames<-,float32-method dimnames,float32-method dimnames<-,float32-method names names,float32-method names<-,float32-method rownames,float32-method rownames<-,float32-method |
NaNf | NaNf |
norm | norm norm,float32,ANY-method |
print-float32 | print,float32-method print-float32 show,float32-method |
QR | qr qr,float32-method qr.Q,ANY-method qr.qty,ANY-method qr.qy,ANY-method qr.R,ANY-method |
Generators | flrand flrnorm flrunif rand |
rcond | rcond rcond,float32-method |
rep | rep rep.float32 |
Round | ceiling,float32-method floor,float32-method round round,float32-method trunc,float32-method |
scale | scale scale,float32-method |
sign | sign sign,float32-method |
solve | solve solve,float32-method |
Special mathematical functions | gamma,float32-method lgamma,float32-method specialmath |
sum | sum sum,float32-method |
SVD | La.svd,float32-method svd svd,float32-method |
sweep | sweep sweep,float32-method |
Trigonometric functions | acos,float32-method asin,float32-method atan,float32-method cos,float32-method sin,float32-method tan,float32-method trig |
xpose | t,float32-method xpose |