Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

ForInv - A Fortran library for inverse and pseudo-inverse calculations.

License

NotificationsYou must be signed in to change notification settings

gha3mi/forinv

Repository files navigation

GitHubVersionDocumentationLicenseBuild

ForInv

ForInv: A Fortran library for inverse and pseudo-inverse calculations.

Requirements

To use theforinv module, you need the following:

  • Fortran compiler
  • LAPACK or MKL

fpm dependency

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"}

Usage

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

How to run tests and examples

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

API documentation

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

Contributing

Contributions toForInv are welcome! If you find any issues or would like to suggest improvements, please open an issue.


[8]ページ先頭

©2009-2025 Movatter.jp