to_string Interface

public interface to_string

converts a variable of type (int32, int64, sp, dp, char, logical) to a “string” which is just a collecting of chars.

Usage result = to_string(variable)

Note

the functions here are not elemental so they won’t work for arrays. Please use pic_print_array_v2 module for this

Calls

interface~~to_string~~CallsGraph interface~to_string to_string proc~to_string_char to_string_char interface~to_string->proc~to_string_char proc~to_string_dp to_string_dp interface~to_string->proc~to_string_dp proc~to_string_int32 to_string_int32 interface~to_string->proc~to_string_int32 proc~to_string_int64 to_string_int64 interface~to_string->proc~to_string_int64 proc~to_string_logical to_string_logical interface~to_string->proc~to_string_logical proc~to_string_sp to_string_sp interface~to_string->proc~to_string_sp

Called by

interface~~to_string~~CalledByGraph interface~to_string to_string proc~flop_rate_report flop_rate_type%flop_rate_report proc~flop_rate_report->interface~to_string proc~print_matrix_dp print_matrix_dp proc~print_matrix_dp->interface~to_string proc~print_matrix_int32 print_matrix_int32 proc~print_matrix_int32->interface~to_string proc~print_matrix_int64 print_matrix_int64 proc~print_matrix_int64->interface~to_string proc~print_matrix_sp print_matrix_sp proc~print_matrix_sp->interface~to_string proc~print_packed_matrix_dp print_packed_matrix_dp proc~print_packed_matrix_dp->interface~to_string proc~print_packed_matrix_int32 print_packed_matrix_int32 proc~print_packed_matrix_int32->interface~to_string proc~print_packed_matrix_int64 print_packed_matrix_int64 proc~print_packed_matrix_int64->interface~to_string proc~print_packed_matrix_sp print_packed_matrix_sp proc~print_packed_matrix_sp->interface~to_string proc~print_vector_dp print_vector_dp proc~print_vector_dp->interface~to_string proc~print_vector_int32 print_vector_int32 proc~print_vector_int32->interface~to_string proc~print_vector_int64 print_vector_int64 proc~print_vector_int64->interface~to_string proc~print_vector_sp print_vector_sp proc~print_vector_sp->interface~to_string proc~timer_print_time pic_timer_type%timer_print_time proc~timer_print_time->interface~to_string interface~print_array_v2 print_array_v2 interface~print_array_v2->proc~print_matrix_dp interface~print_array_v2->proc~print_matrix_int32 interface~print_array_v2->proc~print_matrix_int64 interface~print_array_v2->proc~print_matrix_sp interface~print_array_v2->proc~print_packed_matrix_dp interface~print_array_v2->proc~print_packed_matrix_int32 interface~print_array_v2->proc~print_packed_matrix_int64 interface~print_array_v2->proc~print_packed_matrix_sp interface~print_array_v2->proc~print_vector_dp interface~print_array_v2->proc~print_vector_int32 interface~print_array_v2->proc~print_vector_int64 interface~print_array_v2->proc~print_vector_sp proc~print_3d_tensor_dp print_3d_tensor_dp interface~print_array_v2->proc~print_3d_tensor_dp proc~print_3d_tensor_sp print_3d_tensor_sp interface~print_array_v2->proc~print_3d_tensor_sp proc~print_3d_tensor_dp->interface~print_array_v2 proc~print_3d_tensor_sp->interface~print_array_v2

Module Procedures

private function to_string_int32(i) result(trimmed_str)

transform an int32 to a string

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: i

Return Value character(len=:), allocatable

private function to_string_int64(i) result(trimmed_str)

transform an int64 to a string

Arguments

Type IntentOptional Attributes Name
integer(kind=int64), intent(in) :: i

Return Value character(len=:), allocatable

private function to_string_sp(r) result(trimmed_str)

transform a real(sp) to a string

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in) :: r

Return Value character(len=:), allocatable

private function to_string_dp(r) result(trimmed_str)

transform a real(dp) to a string

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: r

Return Value character(len=:), allocatable

private function to_string_char(c) result(trimmed_str)

transform a character to a string

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: c

Return Value character(len=:), allocatable

private function to_string_logical(l) result(trimmed_str)

tranform a logical to a string either true or false

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: l

Return Value character(len=:), allocatable