CosmicFish  Reference documentation for version 1.0
Looking into future Cosmology
Functions/Subroutines
matrix_utilities Module Reference

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...
 

Detailed Description

This module contains the subroutine and functions to manipulate and modify matrices.

Author
Marco Raveri

Function/Subroutine Documentation

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.

Parameters
[in]aInput matrix.
[out]detOutput determinant of the matrix.
[out]error_codeError 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.

Parameters
[in]aInput matrix.
[out]eigenvaluesOutput eigenvalues
[out]eigenvectorsOutput eigenvectors
[out]error_codeError 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.

Parameters
[in,out]aInput and output matrix. Inversion happends in place.
[out]error_codeError 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.