# Matrix

> Sparse and dense matrix classes and methods for R

Source: https://talira.ai/catalog/matrix-e98dmn43
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / linear algebra](https://talira.ai/categories/libraries/math/linear-algebra), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-2.0-or-later[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Matrix package authors](https://talira.ai/orgs/r-matrix-authors.md)

Matrix is a recommended R package (its CRAN priority) with a rich hierarchy of sparse and dense matrix classes: general, symmetric, triangular and diagonal matrices with numeric, logical or pattern entries. Its methods for working with them are efficient, often wrapping BLAS, LAPACK and SuiteSparse, and it also builds sparse model matrices. Many CRAN packages depend on it.

## Links

- Codeberg: https://codeberg.org/jaganmn/Matrix
- Docs: https://cran.r-project.org/web/packages/Matrix/index.html

## Problems it solves

- work with a large sparse matrix in R without running out of memory
- fit a regression on a sparse design matrix in R
- use sparse linear algebra from R code

## Features

- sparse and dense matrix classes
- symmetric, triangular and diagonal matrices
- numeric, logical and pattern entries
- methods wrapping BLAS, LAPACK and SuiteSparse
- sparse model matrices

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- backed by Matrix package authors

Warnings:

- activity not tracked: Talira doesn't read Codeberg repositories yet

## Sources

[^1]: https://cran.r-project.org/web/packages/Matrix/index.html (checked 27 Nov 2026)
