unique Interface

public interface unique

Calls

interface~~unique~~CallsGraph interface~unique unique proc~unique_int unique_int interface~unique->proc~unique_int proc~unique_real unique_real interface~unique->proc~unique_real interface~expand_vector expand_vector proc~unique_int->interface~expand_vector interface~sort_ascending sort_ascending proc~unique_int->interface~sort_ascending proc~unique_real->interface~expand_vector proc~unique_real->interface~sort_ascending proc~expand_vector_int expand_vector_int interface~expand_vector->proc~expand_vector_int proc~expand_vector_real expand_vector_real interface~expand_vector->proc~expand_vector_real proc~sort_ascending_int sort_ascending_int interface~sort_ascending->proc~sort_ascending_int proc~sort_ascending_real sort_ascending_real interface~sort_ascending->proc~sort_ascending_real interface~swap swap proc~sort_ascending_int->interface~swap proc~sort_ascending_real->interface~swap proc~swap_int swap_int interface~swap->proc~swap_int proc~swap_real swap_real interface~swap->proc~swap_real

Called by

interface~~unique~~CalledByGraph interface~unique unique proc~divide_interval divide_interval proc~divide_interval->interface~unique proc~put_in_cache function_cache%put_in_cache proc~put_in_cache->interface~unique proc~compute_function_with_cache compute_function_with_cache proc~compute_function_with_cache->proc~put_in_cache proc~compute_sparsity_random_2 compute_sparsity_random_2 proc~compute_sparsity_random_2->proc~divide_interval

Module Procedures

private function unique_int(vec, chunk_size) result(ivec_unique)

Returns only the unique elements of the vector (sorted in ascending order).

Arguments

Type IntentOptional Attributes Name
integer, intent(in), dimension(:) :: vec

a vector of integers

integer, intent(in) :: chunk_size

chunk size for adding to arrays

Return Value integer, dimension(:), allocatable

unique elements of ivec

private function unique_real(vec, chunk_size) result(ivec_unique)

Returns only the unique elements of the vector (sorted in ascending order).

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), dimension(:) :: vec

a vector of integers

integer, intent(in) :: chunk_size

chunk size for adding to arrays

Return Value real(kind=wp), dimension(:), allocatable

unique elements of ivec