(git:27c966b)
Loading...
Searching...
No Matches
time_frequency_grids Module Reference

Definition and construction of time/frequency grids for correlation methods. More...

Data Types

type  time_frequency_grid_type

Functions/Subroutines

subroutine, public time_frequency_grid_release (grid)
 Release all data owned by a time_frequency_grid_type object.
subroutine, public transform_time_to_frequency (grid, samples_tau, values_omega)
 Transform real positive/negative-time samples to complex positive-frequency values. The even part uses the cosine transform and the odd part the sine transform.
subroutine, public build_clenshaw_grid (num_points, grid)
 Build a Clenshaw-Curtis frequency grid.
subroutine, public build_minimax_time_frequency_grid (num_points, energy_min, energy_max, regularization, num_points_per_magnitude, grid, build_frequency, build_time, build_transforms, build_sine, time_scaling, time_weight_scaling, max_fit_error, print_warning, unit_nr, prefer_external_backend, used_external_backend, rcond)
 Build a minimax time/frequency grid through the common backend boundary.
subroutine, public test_least_square_ft (nr, iw)
 test the singular value decomposition for the computation of integration weights for the Fourier transform between time and frequency grid in cubic-scaling RPA

Variables

integer, parameter cosine_time_to_frequency = 1
integer, parameter, public positive_time = 1
integer, parameter, public negative_time = 2

Detailed Description

Definition and construction of time/frequency grids for correlation methods.

History
05.2019 Refactored from rpa_ri_gpw [Frederick Stein]

Function/Subroutine Documentation

◆ time_frequency_grid_release()

subroutine, public time_frequency_grids::time_frequency_grid_release ( type(time_frequency_grid_type), intent(inout) grid)

Release all data owned by a time_frequency_grid_type object.

Parameters
gridThe grid object to release.

Definition at line 56 of file time_frequency_grids.F.

Here is the caller graph for this function:

◆ transform_time_to_frequency()

subroutine, public time_frequency_grids::transform_time_to_frequency ( type(time_frequency_grid_type), intent(in) grid,
real(kind=dp), dimension(:, :, :), intent(in) samples_tau,
complex(kind=dp), dimension(:, :), intent(out) values_omega )

Transform real positive/negative-time samples to complex positive-frequency values. The even part uses the cosine transform and the odd part the sine transform.

Parameters
gridValid grid with complete cosine/sine time-to-frequency matrices of matching dimensions.
samples_tauReal samples indexed (state, time, branch), with branches positive_time and negative_time. The samples include their physical signs.
values_omegaComplex output indexed (state, frequency), evaluated at the leading SIZE(values_omega, 2) positive-frequency nodes of grid.

Definition at line 79 of file time_frequency_grids.F.

Here is the caller graph for this function:

◆ build_clenshaw_grid()

subroutine, public time_frequency_grids::build_clenshaw_grid ( integer, intent(in) num_points,
type(time_frequency_grid_type), intent(out) grid )

Build a Clenshaw-Curtis frequency grid.

Parameters
num_pointsNumber of integration points.
gridGrid object to fill.

Definition at line 120 of file time_frequency_grids.F.

◆ build_minimax_time_frequency_grid()

subroutine, public time_frequency_grids::build_minimax_time_frequency_grid ( integer, intent(in) num_points,
real(kind=dp), intent(in) energy_min,
real(kind=dp), intent(in) energy_max,
real(kind=dp), intent(in) regularization,
integer, intent(in) num_points_per_magnitude,
type(time_frequency_grid_type), intent(out) grid,
logical, intent(in) build_frequency,
logical, intent(in) build_time,
logical, intent(in) build_transforms,
logical, intent(in) build_sine,
real(kind=dp), intent(in) time_scaling,
real(kind=dp), intent(in) time_weight_scaling,
real(kind=dp), intent(out) max_fit_error,
logical, intent(in) print_warning,
integer, intent(in) unit_nr,
logical, intent(in) prefer_external_backend,
logical, intent(out), optional used_external_backend,
real(kind=dp), intent(in), optional rcond )

Build a minimax time/frequency grid through the common backend boundary.

Parameters
num_pointsNumber of minimax points.
energy_minLower end of the physical energy interval.
energy_maxUpper end of the physical energy interval.
regularizationRegularization used for the fitted transform weights.
num_points_per_magnitudeNumber of fitting points per decade.
gridGrid object to fill.
build_frequencyWhether to construct the frequency components.
build_timeWhether to construct the imaginary-time components.
build_transformsWhether to construct the complete time/frequency transform matrices.
build_sineWhether to construct the sine time-to-frequency matrix.
time_scalingScaling applied to the imaginary-time abscissas.
time_weight_scalingScaling applied to the imaginary-time weights.
max_fit_errorMaximum fitting error across all requested transforms.
print_warningWhether the minimax coefficient routine prints warnings.
unit_nrOutput unit used by an external backend.
prefer_external_backendWhether to try an available external backend first.
used_external_backendWhether the external backend supplied the grid.
rcondIf present and > 0, relative SVD cutoff of the fitted transform weights, used instead of the regularization.

Definition at line 169 of file time_frequency_grids.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_least_square_ft()

subroutine, public time_frequency_grids::test_least_square_ft ( integer, intent(in) nr,
integer, intent(in) iw )

test the singular value decomposition for the computation of integration weights for the Fourier transform between time and frequency grid in cubic-scaling RPA

Parameters
nR...
iw...

Definition at line 472 of file time_frequency_grids.F.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ cosine_time_to_frequency

integer, parameter time_frequency_grids::cosine_time_to_frequency = 1

Definition at line 42 of file time_frequency_grids.F.

◆ positive_time

integer, parameter, public time_frequency_grids::positive_time = 1

Definition at line 45 of file time_frequency_grids.F.

◆ negative_time

integer, parameter, public time_frequency_grids::negative_time = 2

Definition at line 45 of file time_frequency_grids.F.