PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
Calculate determinant of a matrix. More...
Public Member Functions | |
integer function | calc_det_0d (det_0D, A) |
private constant version More... | |
integer recursive function | calc_det_3d (detA, A, n) |
private array version More... | |
Calculate determinant of a matrix.
This matrix can be defined on a 3-D grid or constant. The storage convention described in eq_vars.eq_2_type is used.
In the former case the size of the matrix (last two indices) should be small, as the direct formula employing cofactors is used through a recursive formulation.
In the latter case, lapack routines are used.
Definition at line 63 of file num_utilities.f90.
integer function num_utilities::calc_det::calc_det_0d | ( | real(dp), intent(inout) | det_0D, |
real(dp), dimension(:,:), intent(in) | A | ||
) |
private constant version
[in,out] | det_0d | output |
[in] | a | input |
Definition at line 622 of file num_utilities.f90.
integer recursive function num_utilities::calc_det::calc_det_3d | ( | real(dp), dimension(:,:,:), intent(inout) | detA, |
real(dp), dimension(:,:,:,:), intent(in) | A, | ||
integer, intent(in) | n | ||
) |
private array version
[in,out] | deta | output |
[in] | a | input |
[in] | n | size of matrix |
Definition at line 543 of file num_utilities.f90.