vec_operate Module


Uses


Interfaces

public interface sort

  • public subroutine r_sort(arrin, arrout, indx, indx_m1, r_zero)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=SP) :: arrin(:)
    real(kind=SP), optional :: arrout(:)
    integer, optional :: indx(:)
    integer, optional :: indx_m1(:)
    real(kind=SP), optional :: r_zero
  • public subroutine i_sort(arrin, arrout, indx, indx_m1)

    Arguments

    Type IntentOptional Attributes Name
    integer :: arrin(:)
    integer, optional :: arrout(:)
    integer, optional :: indx(:)
    integer, optional :: indx_m1(:)

public interface cross_product

  • public function r_cross_product(a, b)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=SP), intent(in) :: a(3)
    real(kind=SP), intent(in) :: b(3)

    Return Value real(kind=SP), (3)

  • public function c_cross_product(a, b)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=SP), intent(in) :: a(3)
    complex(kind=SP), intent(in) :: b(3)

    Return Value complex(kind=SP), (3)

public interface c2a

  • public subroutine c2a_scal(b_in, v_in, v_out, mode)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=SP), optional :: b_in(3,3)
    real(kind=SP) :: v_in(3)
    real(kind=SP), optional :: v_out(3)
    character(len=4) :: mode
  • public subroutine c2a_vec(b_in, nvec, v_in, v_out, mode)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=SP), optional :: b_in(3,3)
    integer :: nvec
    real(kind=SP) :: v_in(nvec,3)
    real(kind=SP), optional :: v_out(nvec,3)
    character(len=4) :: mode

Functions

public function min_index(N, v)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: N
real(kind=SP), intent(in) :: v(N)

Return Value integer

public function normalize_v(v, zero_norm_)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), intent(in) :: v(3)
real(kind=SP), optional :: zero_norm_

Return Value real(kind=SP), (3)

public pure function v_norm(v)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), intent(in) :: v(3)

Return Value real(kind=sp)

public pure function v_norm_c(v)

Arguments

Type IntentOptional Attributes Name
complex(kind=SP), intent(in) :: v(3)

Return Value real(kind=sp)

public pure function v_norm_square(v)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), intent(in) :: v(3)

Return Value real(kind=sp)

public function iku_v_norm(v, inside_bz)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), intent(in) :: v(3)
logical, intent(in), optional :: inside_bz

Return Value real(kind=sp)

public function iku_v_2D_norm(v, inside_bz)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), intent(in) :: v(3)
logical, intent(in), optional :: inside_bz

Return Value real(kind=sp)

public function rlu_v_norm(k, inside_bz)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), intent(in) :: k(3)
logical, intent(in), optional :: inside_bz

Return Value real(kind=sp)

public function r_cross_product(a, b)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), intent(in) :: a(3)
real(kind=SP), intent(in) :: b(3)

Return Value real(kind=SP), (3)

public function c_cross_product(a, b)

Arguments

Type IntentOptional Attributes Name
complex(kind=SP), intent(in) :: a(3)
complex(kind=SP), intent(in) :: b(3)

Return Value complex(kind=SP), (3)

public pure function v_is_zero(v, zero_)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), intent(in) :: v(3)
real(kind=SP), intent(in), optional :: zero_(3)

Return Value logical

public pure function rlu_v_is_zero(v, zero_)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), intent(in) :: v(3)
real(kind=SP), intent(in), optional :: zero_(3)

Return Value logical

public function axis_rotation(axis, vec, angle)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), intent(in) :: axis(3)
real(kind=SP), intent(in) :: vec(3)
real(kind=SP), intent(in) :: angle

Return Value real(kind=SP), (3)

public pure function k_periodic_idx(idx, k_map)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: idx(3)
type(bz_map), intent(in) :: k_map

Return Value integer, (3)

public function get_neighbor(step, ik, k_map)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: step(3)
integer, intent(in) :: ik
type(bz_map), intent(in) :: k_map

Return Value integer

public function GreatestCommonDivisor(a, b)

Arguments

Type IntentOptional Attributes Name
integer :: a
integer :: b

Return Value integer

public function lcm(a, b)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: a
integer, intent(in) :: b

Return Value integer


Subroutines

public subroutine v_rotate(plane, t, v_in, v_out)

Arguments

Type IntentOptional Attributes Name
character(len=2) :: plane
real(kind=SP) :: t
real(kind=SP) :: v_in(3)
real(kind=SP), optional :: v_out(3)

public subroutine c2a_scal(b_in, v_in, v_out, mode)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), optional :: b_in(3,3)
real(kind=SP) :: v_in(3)
real(kind=SP), optional :: v_out(3)
character(len=4) :: mode

public subroutine c2a_vec(b_in, nvec, v_in, v_out, mode)

Arguments

Type IntentOptional Attributes Name
real(kind=SP), optional :: b_in(3,3)
integer :: nvec
real(kind=SP) :: v_in(nvec,3)
real(kind=SP), optional :: v_out(nvec,3)
character(len=4) :: mode

public subroutine define_b_and_DL_vol()

Arguments

None

public subroutine k2bz(v_in, v_out, b_in)

Arguments

Type IntentOptional Attributes Name
real(kind=SP) :: v_in(3)
real(kind=SP), optional :: v_out(3)
real(kind=SP), optional :: b_in(3,3)

public subroutine rlu_k2bz(v_in, v_out)

Arguments

Type IntentOptional Attributes Name
real(kind=SP) :: v_in(3)
real(kind=SP), optional :: v_out(3)

public subroutine get_id_perpendicular(id1, id2, id3)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: id1
integer, intent(out) :: id2
integer, intent(out) :: id3

public subroutine r_sort(arrin, arrout, indx, indx_m1, r_zero)

Arguments

Type IntentOptional Attributes Name
real(kind=SP) :: arrin(:)
real(kind=SP), optional :: arrout(:)
integer, optional :: indx(:)
integer, optional :: indx_m1(:)
real(kind=SP), optional :: r_zero

public subroutine i_sort(arrin, arrout, indx, indx_m1)

Arguments

Type IntentOptional Attributes Name
integer :: arrin(:)
integer, optional :: arrout(:)
integer, optional :: indx(:)
integer, optional :: indx_m1(:)

public subroutine degeneration_finder(n, first_deg_el, deg_elmnts, deg_grps, Ei, Er, deg_accuracy, Include_single_values)

Find degeneracy in a sorted energy array

Read more…

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n

number of elements of the array

integer, intent(out) :: first_deg_el(n)
integer, intent(out) :: deg_elmnts(n)
integer, intent(out) :: deg_grps

number of degenerate sub-spaces

integer, intent(in), optional :: Ei(n)
real(kind=SP), intent(in), optional :: Er(n)
real(kind=SP), intent(in), optional :: deg_accuracy

degenerate accuracy threasold

logical, optional :: Include_single_values

if .true. include in deg-list groups with a single element

public subroutine degeneration_average(n, first_deg_el, deg_elmnts, deg_grps, Er)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n
integer, intent(in) :: first_deg_el(n)
integer, intent(in) :: deg_elmnts(n)
integer, intent(in) :: deg_grps
real(kind=SP), intent(inout) :: Er(n)


📚 Documentation Pages
⏱️ Real-Time
🔗 Code API