Documentation for module dbcsr_test_methods

Tests for CP2K DBCSR operations

source: dbcsr_test_methods.F
Loading...

public Subroutines/Functions:

FUNCTION
INTEGER
atoi (a)
...
FUNCTION
LOGICAL
atol (a)
...
FUNCTION
REAL(real_8)
ator (a)
...
...
Impose sparsity on a dense matrix based on a dbcsr
...
Creates a random matrix.
...
Reset the seed used for generating random matrices to default value
...
Convert a sparse matrix to a dense matrix

FUNCTIONatoi(a)

...

Return Value ::
INTEGER
Arguments:
CHARACTER(*),
INTENT(in)
:: a ...

FUNCTIONatol(a)

...

Return Value ::
LOGICAL
Arguments:
CHARACTER(*),
INTENT(in)
:: a ...

FUNCTIONator(a)

...

Return Value ::
REAL(real_8)
Arguments:
CHARACTER(*),
INTENT(in)
:: a ...

FUNCTIONcompx_to_dbcsr_scalar(z, data_type)

...

Return Value ::
Arguments:
COMPLEX(real_8)
:: z ...
INTEGER
:: data_type ...

SUBROUTINEdbcsr_impose_sparsity(sparse, dense)

Impose sparsity on a dense matrix based on a dbcsr

Arguments:
TYPE(dbcsr_type),
INTENT(in)
:: sparse sparse matrix
INTENT(inout)
:: dense dense matrix

SUBROUTINEdbcsr_make_random_block_sizes(block_sizes, size_sum, size_mix)

...

Arguments:
INTEGER,
INTENT(out),
POINTER
:: block_sizes(:) ...
INTEGER,
INTENT(in)
:: size_sum ...
INTEGER,
INTENT(in)
:: size_mix(:) ...

SUBROUTINEdbcsr_make_random_matrix(matrix, row_blk_sizes, col_blk_sizes, name, sparsity, mp_group, data_type, symmetry, dist)

Creates a random matrix.

Arguments:
TYPE(dbcsr_type),
INTENT(out)
:: matrix ...
INTEGER,
INTENT(in),
POINTER
:: row_blk_sizes(:) ...
INTEGER,
INTENT(in),
POINTER
:: col_blk_sizes(:) ...
CHARACTER(*),
INTENT(in)
:: name ...
REAL(real_8),
INTENT(in)
:: sparsity ...
INTEGER,
INTENT(in)
:: mp_group ...
INTEGER,
INTENT(in),
OPTIONAL
:: data_type ...
CHARACTER,
INTENT(in),
OPTIONAL
:: symmetry ...
INTENT(in),
OPTIONAL
:: dist ...

SUBROUTINEdbcsr_random_dist(dist_array, dist_size, nbins)

...

Arguments:
INTEGER,
INTENT(out),
POINTER
:: dist_array(:) ...
INTEGER,
INTENT(in)
:: dist_size ...
INTEGER,
INTENT(in)
:: nbins ...

SUBROUTINEdbcsr_reset_randmat_seed()

Reset the seed used for generating random matrices to default value

SUBROUTINEdbcsr_test_read_args(narg, args)

...

Arguments:
INTEGER,
INTENT(out)
:: narg ...
CHARACTER(*),
INTENT(out)
:: args(:) ...

SUBROUTINEdbcsr_to_dense_local(sparse, dense)

Convert a sparse matrix to a dense matrix

Arguments:
TYPE(dbcsr_type),
INTENT(in)
:: sparse sparse matrix
INTENT(inout)
:: dense dense matrix