ForPCA: A Fortran library for principal component analysis (PCA).
use forpca, only: tpca
type(tpca) :: p
call p%pca(matrix, npc, method, coeff, score, latent, explained, matrix_app)
call p%finalize() ! finalizeIf you want to use ForPCA as a dependency in your own fpm project,
you can easily include it by adding the following line to your fpm.toml file:
[dependencies]
forpca = {git="https://github.com/gha3mi/forpca.git"}Reuirements:
Fortran Compiler, LAPACK or MKL Libraries
Clone the repository:
You can clone the ForPCA repository from GitHub using the following command:
git clone https://github.com/gha3mi/forpca.gitcd forpcaIntel Fortran Compiler (ifort)
fpm @ifort-testfpm @ifort-test-coarrayIntel Fortran Compiler (ifx)
fpm @ifx-testfpm @ifx-test-coarrayGNU Fortran Compiler (gfortran)
fpm @gfortran-testNVIDIA Compiler (nvfortran)
fpm @nvfortran-testThe most up-to-date API documentation for the master branch is available
here.
To generate the API documentation for ForPCA using
ford run the following
command:
ford ford.ymlContributions to ForPCA are welcome!
If you find any issues or would like to suggest improvements, please open an issue.
