Skip to content

GPUmatrix

1.0.3Package record

Basic Linear Algebra with GPU

0packages depend
3.6Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

GPUs are great resources for data analysis, especially in statistics and linear algebra. Unfortunately, very few packages connect R to the GPU, and none of them are transparent enough to run the computations on the GPU without substantial changes to the code. The maintenance of these packages is cumbersome: several of the earlier attempts have been removed from their respective repositories. It would be desirable to have a properly maintained R package that takes advantage of the GPU with minimal changes to the existing code. We have developed the 'GPUmatrix' package (available on CRAN). 'GPUmatrix' mimics the behavior of the Matrix package and extends R to use the GPU for computations. It includes single(FP32) and double(FP64) precision data types, and provides support for sparse matrices. It is easy to learn, and requires very few code changes to perform the operations on the GPU. 'GPUmatrix' relies on either the 'Torch' or 'Tensorflow' R packages to perform the GPU operations. We have demonstrated its usefulness for several statistical applications and machine learning applications: non-negative matrix factorization, logistic regression and general linear models. We have also included a comparison of GPU and CPU performance on different matrix operations.

Changes in 1.0.3
  • Fixed bug in diag() method for gpu.matrix.torch objects.
  • Added documentation for dimnames<- method for gpu.matrix.torch.
  • Fixed Rd cross-references for Matrix-class and %&%.
  • Updated URLs.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK8 OK2026-03-27
Advisories

none known

Documentation

In release 1.0.3
READMEYes · 3,693 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 1.0.3Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
33
Examples that run
14%4 run in a plain check · 25 never run
Exported functions with examples
80%
Documented parameters
83%
Return-value docs
80%
Help pages citing references
6%

Downloads

3.6K
CRAN downloads in the past year
Rank #7,172 · ~10/day · ~297/mo
Daily download trend is not available in this view yet.
43930 days
1.2K90 days
3.6K1 year
Compare downloads with other packages →
Also on123 r2u6 autocran75 c2d4u

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing GPUmatrix adds no packages beyond those that come with R.

Depends (1)
R >= 4.1
Imports (2)
statsmethods
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (3)
Author, Maintainer since 1.0.3 (2026)
Author, Contributor

Previously maintained by Cesar Lobato-Fernandez (0.1.0 to 1.0.2).

Releases (6)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • unarchivedReturned to CRAN
    2026-03-26
  • 1.0.3Latest
    record
    2026-03-26 · current release · diff ↗ ·
    removed 2 exports
    NMFgpumatrix, LR_GradientConjugate_gpumatrix
    added 6 exports
    dtype<-, colMaxs, rowMaxs, rowRanks, to_dense, to_sparse
  • archivedRemoved from CRAN
    2025-12-19
    issues were not corrected despite reminders
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.2
    record
    2024-03-01 · diff ↗
  • 1.0.1
    record
    2023-12-01 · diff ↗
  • 1.0.0
    record
    2023-11-27 · diff ↗ ·
    added 4 exports
    glm.fit.GPU, GPUglm, NMFgpumatrix, LR_GradientConjugate_gpumatrix
  • unarchivedReturned to CRAN
    2023-10-16
  • 0.1.1
    record
    2023-10-16 · diff ↗
  • archivedRemoved from CRAN
    2023-10-12
    check problems were not corrected in time
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.0
    record
    2023-04-20
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2023-04-20
Total releases
6 / 3 yrs
License
Artistic-2.0 OSI
Minimum R
≥ 4.1
Download size
3.7 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("GPUmatrix")
Rubio, A., A.Ferrer-Bonsoms, J., & Lobato-Fernandez, C. (2026). GPUmatrix: Basic Linear Algebra with GPU (Version 1.0.3) [Computer software]. https://doi.org/10.32614/CRAN.package.GPUmatrix

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for GPUmatrix version 1.0.3 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy