Skip to content

float

32-Bit Floats

v0.3-3 · Mar 12, 2025 · BSD 2-clause License + file LICENSE

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.

Downloads

11.7K

Last 30 days

1154th

36K

Last 90 days

422.6K

Last year

Trend: +3.4% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (9)

linking_to

suggests

Dependency Network

Dependencies Reverse dependencies GPoM MatrixExtra cooltools pbdMPI recometrics recosystem rsparse GPUmatrix xgboost float

Version History

new 0.3-3 Mar 10, 2026
updated 0.3-3 ← 0.3-2 diff Mar 11, 2025
updated 0.3-2 ← 0.3-1 diff Dec 9, 2023
updated 0.3-1 ← 0.3-0 diff Feb 15, 2023
updated 0.3-0 ← 0.2-6.1 diff Apr 7, 2022
updated 0.2-6.1 ← 0.2-6 diff Mar 13, 2022
updated 0.2-6 ← 0.2-4 diff Sep 19, 2021
updated 0.2-4 ← 0.2-3 diff Apr 21, 2020
updated 0.2-3 ← 0.2-2 diff May 30, 2019
updated 0.2-2 ← 0.2-1 diff Feb 25, 2019
updated 0.2-1 ← 0.2-0 diff Dec 6, 2018
updated 0.2-0 ← 0.1-1 diff Aug 5, 2018
new 0.1-1 Nov 29, 2017