utility_rotate Function

public function utility_rotate(mat, rot, dim)

Uses

  • proc~~utility_rotate~~UsesGraph proc~utility_rotate utility_rotate module~w90_constants w90_constants proc~utility_rotate->module~w90_constants

Rotates the dim x dim matrix 'mat' according to (rot)^dagger.mat.rot, where 'rot' is a unitary matrix

Arguments

Type IntentOptional AttributesName
complex(kind=dp) :: mat(dim,dim)
complex(kind=dp) :: rot(dim,dim)
integer :: dim

Return Value complex(kind=dp) (dim,dim)


Called by

proc~~utility_rotate~~CalledByGraph proc~utility_rotate utility_rotate proc~gyrotropic_get_noa_k gyrotropic_get_NOA_k proc~gyrotropic_get_noa_k->proc~utility_rotate proc~gyrotropic_get_k_list gyrotropic_get_k_list proc~gyrotropic_get_k_list->proc~utility_rotate proc~gyrotropic_get_k_list->proc~gyrotropic_get_noa_k proc~wham_get_d_h wham_get_D_h proc~gyrotropic_get_k_list->proc~wham_get_d_h proc~wham_get_d_h->proc~utility_rotate proc~wham_get_d_h_p_value wham_get_D_h_P_value proc~wham_get_d_h_p_value->proc~utility_rotate proc~wham_get_deleig_a wham_get_deleig_a proc~wham_get_deleig_a->proc~utility_rotate proc~berry_get_kubo_k berry_get_kubo_k proc~berry_get_kubo_k->proc~utility_rotate proc~berry_get_kubo_k->proc~wham_get_d_h proc~wham_get_d_h_a wham_get_D_h_a proc~wham_get_d_h_a->proc~utility_rotate proc~berry_get_sc_klist berry_get_sc_klist proc~berry_get_sc_klist->proc~utility_rotate proc~berry_get_sc_klist->proc~wham_get_d_h_p_value proc~gyrotropic_main gyrotropic_main proc~gyrotropic_main->proc~gyrotropic_get_k_list proc~berry_main berry_main proc~berry_main->proc~berry_get_kubo_k proc~berry_main->proc~berry_get_sc_klist

Contents

Source Code


Source Code

  function utility_rotate(mat, rot, dim)
    !==========================================================!
    !                                                           !
    !! Rotates the dim x dim matrix 'mat' according to
    !! (rot)^dagger.mat.rot, where 'rot' is a unitary matrix
    !                                                           !
    !===========================================================!

    use w90_constants, only: dp

    integer          :: dim
    complex(kind=dp) :: utility_rotate(dim, dim)
    complex(kind=dp) :: mat(dim, dim)
    complex(kind=dp) :: rot(dim, dim)

    utility_rotate = matmul(matmul(transpose(conjg(rot)), mat), rot)

  end function utility_rotate