- Notifications
You must be signed in to change notification settings - Fork2
ForInv - A Fortran library for inverse and pseudo-inverse calculations.
License
gha3mi/forinv
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ForInv: A Fortran library for inverse and pseudo-inverse calculations.
To use theforinv
module, you need the following:
- Fortran compiler
- LAPACK or MKL
If you want to useForInv
as a dependency in your own fpm project,you can easily include it by adding the following line to yourfpm.toml
file:
[dependencies]forinv = {git="https://github.com/gha3mi/forinv.git"}
Here is an example of how to use theforinv
module in your Fortran code:
program main use kinds use forinv, only: invimplicit none ! Declare variablesreal(rk),dimension(:, :), allocatable:: A, A_inv ! Initialize matrix A ... !Call pseudoinverse function A_inv= inv(A)end program main
Clone the repository:
You can clone theForInv
repository from GitHub using the following command:
git clone https://github.com/gha3mi/forinv.git
cd forinv
Run tests:
To set the stack size to unlimited, use the following command:ulimit -s unlimited
.
fpm @gfortran-test
fpm @ifort-test
fpm @ifx-test
fpm @nvfortran-test
The most up-to-date API documentation for the master branch is availablehere.To generate the API documentation forForInv
usingford run the followingcommand:
ford ford.yml
Contributions toForInv
are welcome! If you find any issues or would like to suggest improvements, please open an issue.
About
ForInv - A Fortran library for inverse and pseudo-inverse calculations.