MCTDH-X  v2.22
 All Classes Files Functions Variables Pages
addresses Module Reference

This module collects the routines necessary for the indexing of the one-body and two-body matrix elements as well as the coefficients and configurations. More...

Public Member Functions

subroutine get_configurationfromindex (Ind0, N, M, Ivec, Nvec)
 This subroutine computes the Number state Nvec corresponding to the index Ind0 of the CI-vector. More...
 
subroutine get_indexfromconfiguration (N, M, Nvec, Ind)
 This routine computes the index Ind of the CI-Vector that corresponds to a given number state Nvec. It's basically an implementation of Eq.20 of the mapping paper, PRA 81 022124. More...
 
complex *16 function rhoall (K, S, L, Q)
 This function extracts a two-body matrix element with indices K,S,Q,L from the array Rho2_Elements. More...
 
integer function nadr (K, S, L, Q, Morb)
 This function computes the address of a matrix element in the 1d arrays used with the indices K, S, Q, L for Morb orbitals. More...
 
integer function symmexp (K, S, L, Q, Morb)
 This function computes the address of a matrix element in the 1d arrays used with the indices K, S, Q, L for Morb orbitals. More...
 
integer function nadrw (K, S, Q, L, Morb)
 This function computes the address of a matrix element of the two-body interaction W with indices K,S,Q,L. More...
 

Detailed Description

This module collects the routines necessary for the indexing of the one-body and two-body matrix elements as well as the coefficients and configurations.

Member Function/Subroutine Documentation

subroutine addresses::get_configurationfromindex ( integer  Ind0,
integer  N,
integer  M,
integer, dimension(morb)  Ivec,
integer, dimension(morb)  Nvec 
)

This subroutine computes the Number state Nvec corresponding to the index Ind0 of the CI-vector.

Referenced by auxiliary_analysis_routines::get_reduced_coefficients(), input_output::guess_read_ci(), auxiliary_analysis_routines::u_trans(), auxiliary_analysis_routines::u_transform(), input_output::write_coefficients(), and input_output::write_coefficients_bdav().

Here is the caller graph for this function:

subroutine addresses::get_indexfromconfiguration ( integer  N,
integer  M,
integer, dimension(morb)  Nvec,
integer  Ind 
)

This routine computes the index Ind of the CI-Vector that corresponds to a given number state Nvec. It's basically an implementation of Eq.20 of the mapping paper, PRA 81 022124.

Referenced by auxiliary_analysis_routines::get_reduced_coefficients(), input_output::guess_read_ci(), auxiliary_analysis_routines::loopy_permanent(), and auxiliary_analysis_routines::u_trans().

Here is the caller graph for this function:

integer function addresses::nadr ( integer, intent(in)  K,
integer, intent(in)  S,
integer, intent(in)  L,
integer, intent(in)  Q,
integer, intent(in)  Morb 
)
integer function addresses::nadrw ( integer, intent(in)  K,
integer, intent(in)  S,
integer, intent(in)  Q,
integer, intent(in)  L,
integer, intent(in)  Morb 
)

This function computes the address of a matrix element of the two-body interaction W with indices K,S,Q,L.

complex*16 function addresses::rhoall ( integer, intent(in)  K,
integer, intent(in)  S,
integer, intent(in)  L,
integer, intent(in)  Q 
)

This function extracts a two-body matrix element with indices K,S,Q,L from the array Rho2_Elements.

References nadr(), and symmexp().

Referenced by localinteractionpotential::apply_interactionoperator(), and localinteractionpotential::apply_multilevelinteractionoperator().

Here is the call graph for this function:

Here is the caller graph for this function:

integer function addresses::symmexp ( integer, intent(in)  K,
integer, intent(in)  S,
integer, intent(in)  L,
integer, intent(in)  Q,
integer, intent(in)  Morb 
)

This function computes the address of a matrix element in the 1d arrays used with the indices K, S, Q, L for Morb orbitals.

Referenced by localinteractionpotential::compute_interactionelements(), and rhoall().

Here is the caller graph for this function:


The documentation for this module was generated from the following file: