![]() |
(git:b77b4be)
|
General methods for testing DBT tensors. More...
Functions/Subroutines | |
subroutine, public | dbt_test_formats (ndims, mp_comm, unit_nr, verbose, blk_size_1, blk_size_2, blk_size_3, blk_size_4, blk_ind_1, blk_ind_2, blk_ind_3, blk_ind_4) |
Test equivalence of all tensor formats, using a random distribution. | |
subroutine, public | dbt_setup_test_tensor (tensor, mp_comm, enumerate, blk_ind_1, blk_ind_2, blk_ind_3, blk_ind_4) |
Allocate and fill test tensor - entries are enumerated by their index s.t. they only depend on global properties of the tensor but not on distribution, matrix representation, etc. | |
subroutine, public | dbt_contract_test (alpha, tensor_1, tensor_2, beta, tensor_3, contract_1, notcontract_1, contract_2, notcontract_2, map_1, map_2, unit_nr, bounds_1, bounds_2, bounds_3, log_verbose, write_int) |
test tensor contraction | |
real(kind=dp) function, public | dbt_checksum (tensor) |
checksum of a tensor consistent with block_checksum | |
subroutine, public | dbt_reset_randmat_seed () |
Reset the seed used for generating random matrices to default value. | |
General methods for testing DBT tensors.
subroutine, public dbt_test::dbt_test_formats | ( | integer, intent(in) | ndims, |
type(mp_comm_type), intent(in) | mp_comm, | ||
integer, intent(in) | unit_nr, | ||
logical, intent(in) | verbose, | ||
integer, dimension(:), intent(in), optional | blk_size_1, | ||
integer, dimension(:), intent(in), optional | blk_size_2, | ||
integer, dimension(:), intent(in), optional | blk_size_3, | ||
integer, dimension(:), intent(in), optional | blk_size_4, | ||
integer, dimension(:), intent(in), optional | blk_ind_1, | ||
integer, dimension(:), intent(in), optional | blk_ind_2, | ||
integer, dimension(:), intent(in), optional | blk_ind_3, | ||
integer, dimension(:), intent(in), optional | blk_ind_4 | ||
) |
Test equivalence of all tensor formats, using a random distribution.
blk_size_i | block sizes along respective dimension |
blk_ind_i | index along respective dimension of non-zero blocks |
ndims | tensor rank |
unit_nr | output unit, needs to be a valid unit number on all mpi ranks |
verbose | if .TRUE., print all tensor blocks |
Definition at line 173 of file dbt_test.F.
subroutine, public dbt_test::dbt_setup_test_tensor | ( | type(dbt_type), intent(inout) | tensor, |
class(mp_comm_type), intent(in) | mp_comm, | ||
logical, intent(in) | enumerate, | ||
integer, dimension(:), intent(in), optional | blk_ind_1, | ||
integer, dimension(:), intent(in), optional | blk_ind_2, | ||
integer, dimension(:), intent(in), optional | blk_ind_3, | ||
integer, dimension(:), intent(in), optional | blk_ind_4 | ||
) |
Allocate and fill test tensor - entries are enumerated by their index s.t. they only depend on global properties of the tensor but not on distribution, matrix representation, etc.
mp_comm | communicator |
blk_ind_i | index along respective dimension of non-zero blocks |
Definition at line 475 of file dbt_test.F.
subroutine, public dbt_test::dbt_contract_test | ( | real(dp), intent(in) | alpha, |
type(dbt_type), intent(inout) | tensor_1, | ||
type(dbt_type), intent(inout) | tensor_2, | ||
real(dp), intent(in) | beta, | ||
type(dbt_type), intent(inout) | tensor_3, | ||
integer, dimension(:), intent(in) | contract_1, | ||
integer, dimension(:), intent(in) | notcontract_1, | ||
integer, dimension(:), intent(in) | contract_2, | ||
integer, dimension(:), intent(in) | notcontract_2, | ||
integer, dimension(:), intent(in) | map_1, | ||
integer, dimension(:), intent(in) | map_2, | ||
integer, intent(in) | unit_nr, | ||
integer, dimension(2, size(contract_1)), optional | bounds_1, | ||
integer, dimension(2, size(notcontract_1)), optional | bounds_2, | ||
integer, dimension(2, size(notcontract_2)), optional | bounds_3, | ||
logical, intent(in), optional | log_verbose, | ||
logical, intent(in), optional | write_int | ||
) |
test tensor contraction
Definition at line 826 of file dbt_test.F.
real(kind=dp) function, public dbt_test::dbt_checksum | ( | type(dbt_type), intent(in) | tensor | ) |
checksum of a tensor consistent with block_checksum
Definition at line 1184 of file dbt_test.F.
subroutine, public dbt_test::dbt_reset_randmat_seed |
Reset the seed used for generating random matrices to default value.
Definition at line 1194 of file dbt_test.F.