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() ! finalize
If 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.git
cd forpca
Intel Fortran Compiler (ifort)
fpm @ifort-test
fpm @ifort-test-coarray
Intel Fortran Compiler (ifx)
fpm @ifx-test
fpm @ifx-test-coarray
GNU Fortran Compiler (gfortran)
fpm @gfortran-test
NVIDIA Compiler (nvfortran)
fpm @nvfortran-test
The 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.yml
Contributions to ForPCA
are welcome!
If you find any issues or would like to suggest improvements, please open an issue.