qrpca: A Package for Fast Principal Component Analysis with GPU Acceleration
Authors:
- Rafael S. de SouzaRSRafael S. de Souza
- Xu QuanfengXQXu Quanfeng
- Shiyin ShenSSShiyin Shen
- Chen PengCPChen Peng
- Zihao MuZMZihao Mu
Preprint
Abstract
We present qrpca, a fast and scalable QR-based principal component analysis package. The software, written in both R and python languages, makes use of torch for internal matrix computations, and enables GPU acceleration, when available. qrpca provides similar functionalities to prcomp (R) and sklearn (python) packages respectively. A benchmark test shows that qrpca can achieve computational speeds 10-20 $\times$ faster for large dimensional matrices than default implementations, and is at least twice as fast for a standard decomposition of spectral data cubes. The qrpca source code is made freely available to the community.
Keywords
All Related Versions
- Version 1, 2022-06-14, ArXiv
- Version 2, 2022-09-06, ArXiv
- Published version: Astronomy and Computing, 41.