Also have a look at FORTRAN syntax package MinimalFortran if you use Sublime text.
This is a collection of useful matrix operators and other mathematical functions. Many more functions will be added as and when I will feel the need of it.
- Determinant of a matrix [function]
- SYNTAX: value = det(a,tole)
- RESULT: Determinant of matrix 'a' is stored in 'value' with tolerance of 10^(-tole)
- DESCRIPTION: LU decomposition is used for computation (DoLittle Algorithm)
- REFERENCE: Vismor DoLittle Algorithm
- CAUTION: Input only square matrices
- Printing a 2-D matrix in rows and columns [subroutine]
- SYNTAX: call printmat2d(a)
- RESULT: Matrix 'a' is printed in rows and columns
- Inverse of a matrix [function]
-
SYNTAX: inv(a,tole)
-
RESULT: Returns inverse of matrix 'a' with tolerance of 10^(-tole)
-
DESCRIPTION: Utilizes LU decomposition and Row operations on U & L
-
CAUTION: Inverse of a singular matrix cannot be evaluated
-
Remember to use mathlib.f90 in the main program