# matrixStats

> Fast R functions for summaries over rows and columns of matrices

Source: https://talira.ai/catalog/matrixstats-mcd0jasq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / statistics](https://talira.ai/categories/libraries/math/statistics), [languages / r](https://talira.ai/categories/languages/r)
- Licence: Artistic-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Henrik Bengtsson](https://talira.ai/orgs/henrik-bengtsson.md)

matrixStats is an R package of highly optimized functions for computing common summaries over the rows and columns of matrices, such as `colMedians()` and `rowQuantiles()`, plus functions on vectors such as `logSumExp()`. Most calculations are implemented in C to save memory and time, and they're often many times faster than equivalent `apply()` code. It installs on Linux, macOS and Windows.

## Links

- GitHub: https://github.com/HenrikBengtsson/matrixStats

## Problems it solves

- compute column medians of a large matrix quickly in R
- replace slow apply() calls over matrix rows in R
- calculate row quantiles of a numeric matrix in R

## Features

- row and column summaries of matrices: medians, quantiles and more
- vector functions such as logSumExp()
- implemented mostly in C for speed and low memory use
- installs out of the box on Linux, macOS and Windows

## Trust

Overall: 0.44 out of 1.
Signals: maintenance 0.67, adoption 0.47, momentum 0.12, community 0.50, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 11 commits in the last 90 days
- 216 GitHub stars
- 17 contributors
- backed by Henrik Bengtsson

## Sources

[^1]: https://github.com/HenrikBengtsson/matrixStats/blob/develop/README.md (checked 28 Nov 2026)
[^2]: https://github.com/HenrikBengtsson/matrixStats/blob/develop/DESCRIPTION (checked 28 Nov 2026)
