ForInv: A Fortran library for inverse and pseudo-inverse calculations.
To use the forinv module, you need the following:
- Fortran compiler
- LAPACK or MKL
If you want to use ForInv as a dependency in your own fpm project,
you can easily include it by adding the following line to your fpm.toml file:
[dependencies]
forinv = {git="https://github.com/gha3mi/forinv.git"}Here is an example of how to use the forinv module in your Fortran code:
program main
use kinds
use forinv, only: inv
implicit none
! Declare variables
real(rk), dimension(:, :), allocatable :: A, A_inv
! Initialize matrix A
...
! Call pseudoinverse function
A_inv = inv(A)
end program mainClone the repository:
You can clone the ForInv repository from GitHub using the following command:
git clone https://github.com/gha3mi/forinv.gitcd forinvRun tests:
To set the stack size to unlimited, use the following command: ulimit -s unlimited.
fpm @gfortran-testfpm @ifort-testfpm @ifx-testfpm @nvfortran-testThe most up-to-date API documentation for the master branch is available
here.
To generate the API documentation for ForInv using
ford run the following
command:
ford ford.ymlContributions to ForInv are welcome! If you find any issues or would like to suggest improvements, please open an issue.
