CosmicFish
Reference documentation for version 1.0
Looking into future Cosmology
|
This module contains the subroutine and functions to manipulate and modify matrices. More...
Functions/Subroutines | |
subroutine, public | sym_matrix_inversion (A, error_code) |
This subroutine computes the inverse of a square symmetric matrix by means of LAPACK LU decomposition and inversion. More... | |
subroutine, public | matrix_determinant (A, det, error_code) |
This subroutine computes the determinant of a matrix. More... | |
subroutine, public | matrix_eigenvalues_eigenvectors_sym (A, eigenvalues, eigenvectors, error_code) |
This subroutine computes the eigenvalues and eigenvectors of a matrix. More... | |
This module contains the subroutine and functions to manipulate and modify matrices.
subroutine, public matrix_utilities::matrix_determinant | ( | real(dl), dimension(:,:), intent(in) | A, |
real(dl), intent(out) | det, | ||
integer, intent(out) | error_code | ||
) |
This subroutine computes the determinant of a matrix.
[in] | a | Input matrix. |
[out] | det | Output determinant of the matrix. |
[out] | error_code | Error code: 0 means everything ok |
Definition at line 86 of file 001_Matrix_utilities.f90.
subroutine, public matrix_utilities::matrix_eigenvalues_eigenvectors_sym | ( | real(dl), dimension(:,:), intent(in) | A, |
real(dl), dimension(:), intent(out) | eigenvalues, | ||
real(dl), dimension(:,:), intent(out) | eigenvectors, | ||
integer, intent(out) | error_code | ||
) |
This subroutine computes the eigenvalues and eigenvectors of a matrix.
[in] | a | Input matrix. |
[out] | eigenvalues | Output eigenvalues |
[out] | eigenvectors | Output eigenvectors |
[out] | error_code | Error code: 0 means everything ok |
Definition at line 140 of file 001_Matrix_utilities.f90.
subroutine, public matrix_utilities::sym_matrix_inversion | ( | real(dl), dimension(:,:), intent(inout) | A, |
integer, intent(out) | error_code | ||
) |
This subroutine computes the inverse of a square symmetric matrix by means of LAPACK LU decomposition and inversion.
[in,out] | a | Input and output matrix. Inversion happends in place. |
[out] | error_code | Error code: 0 means everything ok 1 means singular matrix 2 means inversion failed for some reason |
Definition at line 42 of file 001_Matrix_utilities.f90.