Procedures

ProcedureLocationProcedure TypeDescription
add_flops pic_flop_recorder Subroutine

Add an int64 variable which contains the FLOPs we use int64 since we might reach very large FLOP counts

Read more…
adjustl pic_string_type Interface

Left-adjust the character sequence represented by the string. The length of the character sequence remains unchanged.

Read more…
adjustl_string pic_string_type Function

Left-adjust the character sequence represented by the string. The length of the character sequence remains unchanged.

adjustr pic_string_type Interface

Right-adjust the character sequence represented by the string. The length of the character sequence remains unchanged.

Read more…
adjustr_string pic_string_type Function

Right-adjust the character sequence represented by the string. The length of the character sequence remains unchanged.

assign_string_char pic_string_type Subroutine

Assign a character sequence to a string.

assignment(=) pic_string_type Interface

Assign a character sequence to a string.

char pic_string_type Interface

Return the character sequence represented by the string.

Read more…
char_decrease_ord_sort pic_sorting_ord_sort Subroutine
char_decrease_sort pic_sorting_sort Subroutine
char_increase_ord_sort pic_sorting_ord_sort Subroutine
char_increase_sort pic_sorting_sort Subroutine
char_string pic_string_type Function

Return the character sequence represented by the string.

char_string_pos pic_string_type Function

Return the character sequence represented by the string.

char_string_range pic_string_type Function

Return the character sequence represented by the string.

char_to_lower pic_ascii Function

Returns the corresponding lowercase letter, if c is an uppercase ASCII character, otherwise c itself.

char_to_upper pic_ascii Function

Returns the corresponding uppercase letter, if c is a lowercase ASCII character, otherwise c itself.

character_fnv_1 pic_hash_32bit_fnv Function
character_fnv_1a pic_hash_32bit_fnv Function
chomp pic_strings Interface

Remove trailing characters in set from string. If no character set is provided trailing whitespace is removed.

Read more…
chomp_char pic_strings Function

Remove trailing characters in set from string. Default character set variant where trailing whitespace is removed.

chomp_set_char_char pic_strings Function

Remove trailing characters in set from string.

chomp_set_string_char pic_strings Function

Remove trailing characters in set from string.

chomp_string pic_strings Function

Remove trailing characters in set from string. Default character set variant where trailing whitespace is removed.

chomp_substring_char_char pic_strings Function

Remove trailing substrings from string.

chomp_substring_char_string pic_strings Function

Remove trailing substrings from string.

chomp_substring_string_char pic_strings Function

Remove trailing substrings from string.

chomp_substring_string_string pic_strings Function

Remove trailing substrings from string.

close_log_file pic_logger Subroutine

Close the log file, needs to be called at the end of the program

Read more…
compute_lps pic_strings Function

Computes longest prefix suffix for each index of the input ‘string’

Read more…
concat_char_string pic_string_type Function

Concatenate two character sequences. In this version the right-hand side character sequences is by a string.

concat_string_char pic_string_type Function

Concatenate two character sequences. In this version the left-hand side character sequences is by a string.

concat_string_string pic_string_type Function

Concatenate two character sequences. In this version both character sequences are by a string.

configuration pic_logger Subroutine

Get the current logger verbosity configuration

Read more…
configure pic_logger Subroutine

Configure the logger to be a certain verbosity level

Read more…
configure_file_output pic_logger Subroutine

Configure the logger to file to be a certain verbosity level

Read more…
copy_3d_tensor_dp pic_array Subroutine

copy a tensor of datatype dp

copy_3d_tensor_int32 pic_array Subroutine

copy a tensor of datatype int32

copy_3d_tensor_int64 pic_array Subroutine

copy a tensor of datatype int64

copy_3d_tensor_sp pic_array Subroutine

copy a tensor of datatype sp

copy_matrix_dp pic_array Subroutine

copy a matrix of datatype dp

copy_matrix_int32 pic_array Subroutine

copy a matrix of datatype int32

copy_matrix_int64 pic_array Subroutine

copy a matrix of datatype int64

copy_matrix_sp pic_array Subroutine

copy a matrix of datatype sp

copy_vector_dp pic_array Subroutine

copy a vector of datatype dp

copy_vector_int32 pic_array Subroutine

copy a vector of datatype int32

copy_vector_int64 pic_array Subroutine

copy a vector of datatype int64

copy_vector_sp pic_array Subroutine

copy a vector of datatype sp

count pic_strings Interface

Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’

count_char_char pic_strings Function

Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer

count_char_string pic_strings Function

Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer

count_string_char pic_strings Function

Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer

count_string_string pic_strings Function

Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer

debug pic_logger Subroutine

Log a message that will only be printed at the debug level of verbosity

Read more…
dp_decrease_ord_sort pic_sorting_ord_sort Subroutine
dp_decrease_sort pic_sorting_sort Subroutine
dp_increase_ord_sort pic_sorting_ord_sort Subroutine
dp_increase_sort pic_sorting_sort Subroutine
dummy_work pic_test_helpers Subroutine

this subroutine runs a random dgemm to create work so that timers and other testing utils work nicely

Read more…
ends_with pic_strings Interface

Check whether a string ends with substring or not

Read more…
ends_with_char_char pic_strings Function

Check whether a string ends with substring or not

ends_with_char_string pic_strings Function

Check whether a string ends with substring or not

ends_with_string_char pic_strings Function

Check whether a string ends with substring or not

ends_with_string_string pic_strings Function

Check whether a string ends with substring or not

eq_char_string pic_string_type Function

Compare two character sequences for equality. In this version the right-hand side character sequences is by a string.

eq_string_char pic_string_type Function

Compare two character sequences for equality. In this version the left-hand side character sequences is by a string.

eq_string_string pic_string_type Function

Compare two character sequences for equality. In this version both character sequences are by a string.

error pic_logger Subroutine

Log a message that will only be printed at the error of verbosity

Read more…
fill_3d_tensor_dp pic_array Subroutine

fill a tensor of datatype dp with a value

fill_3d_tensor_int32 pic_array Subroutine

fill a tensor of datatype int32 with a value

fill_3d_tensor_int64 pic_array Subroutine

fill a tensor of datatype int64 with a value

fill_3d_tensor_sp pic_array Subroutine

fill a tensor of datatype sp with a value

fill_matrix_dp pic_array Subroutine

fill a matrix of datatype dp with a value

fill_matrix_int32 pic_array Subroutine

fill a matrix of datatype int32 with a value

fill_matrix_int64 pic_array Subroutine

fill a matrix of datatype int64 with a value

fill_matrix_sp pic_array Subroutine

fill a matrix of datatype sp with a value

fill_vector_dp pic_array Subroutine

fill a vector of datatype dp with a value

fill_vector_int32 pic_array Subroutine

fill a vector of datatype int32 with a value

fill_vector_int64 pic_array Subroutine

fill a vector of datatype int64 with a value

fill_vector_sp pic_array Subroutine

fill a vector of datatype sp with a value

find pic_strings Interface

Finds the starting index of substring ‘pattern’ in the input ‘string’ Specifications

Read more…
find_char_char pic_strings Function

Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer

find_char_string pic_strings Function

Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer

find_string_char pic_strings Function

Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer

find_string_string pic_strings Function

Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer

fix_nvhpc_octal_format pic_strings_to_string Function
flop_rate_add_flops pic_flop_rate Subroutine

add flops to the flop rate type, this will add the flops to the flop recorder Usage: call my_flop_rate%add_flops(1000)

Read more…
flop_rate_get_flop_rate pic_flop_rate Function

get the flop rate in GFLOP/s, this will calculate the flop rate based on the number of flops and the elapsed time

Read more…
flop_rate_get_flops pic_flop_rate Function

get the number of flops recorded in the flop rate type

Read more…
flop_rate_get_time pic_flop_rate Function

get the elapsed time in seconds from the timer contained in the flop rate type

Read more…
flop_rate_report pic_flop_rate Subroutine

report the flop rate, this will print the flop rate in GFLOP/s

Read more…
flop_rate_reset pic_flop_rate Subroutine

reset the flop rate type, this will reset the timer and the flop recorder

Read more…
flop_rate_start_time pic_flop_rate Subroutine

Calls the start method for the timer contained in the flop rate type

Read more…
flop_rate_stop_time pic_flop_rate Subroutine

Calls the stop method for the timer contained in the flop rate type

Read more…
fnv_1_hash pic_hash_32bit_fnv Interface

FNV_1 interfaces

fnv_1a_hash pic_hash_32bit_fnv Interface

FNV_1A interfaces

ge_char_string pic_string_type Function

Compare two character sequences for being greater or equal In this version the right-hand side character sequences is by a string.

ge_string_char pic_string_type Function

Compare two character sequences for being greater or equal. In this version the left-hand side character sequences is by a string.

ge_string_string pic_string_type Function

Compare two character sequences for being greater or equal. In this version both character sequences are by a string.

get_first_arg_from_command_line pic_command_line Function

get the first argument from the command line, this is expected to be a filename

Read more…
get_flops pic_flop_recorder Function

Get the int64 number of FLOPs we currently have in the counter

Read more…
get_knowledge pic_knowledge Subroutine

I print random knowledge

get_precision pic_io Function

Get the current precision for real numbers

get_precision pic_io Interface

Obtain the current precision being used to print variables to strings

Read more…
get_threading_mode pic_array Interface

get_threading_mode returns the current threading mode for the array routines Usage: mode = get_threading_mode()

get_threading_mode_ pic_array Function

get the current threading mode for the array routines Usage: mode = get_threading_mode()

gt_char_string pic_string_type Function

Compare two character sequences for being greater. In this version the right-hand side character sequences is by a string.

gt_string_char pic_string_type Function

Compare two character sequences for being greater. In this version the left-hand side character sequences is by a string.

gt_string_string pic_string_type Function

Compare two character sequences for being greater. In this version both character sequences are by a string.

iachar pic_string_type Interface

Code in ASCII collating sequence.

Read more…
iachar_string pic_string_type Function

Code in ASCII collating sequence.

ichar pic_string_type Interface

Character-to-integer conversion function.

Read more…
ichar_string pic_string_type Function

Character-to-integer conversion function.

index pic_string_type Interface

Position of a substring within a string.

Read more…
index_char_string pic_string_type Function

Position of a sequence of character within a character sequence. In this version the sub character sequence is represented by a string.

index_string_char pic_string_type Function

Position of a sequence of character within a character sequence. In this version the main character sequence is represented by a string.

index_string_string pic_string_type Function

Position of a sequence of character within a character sequence. In this version both character sequences are represented by a string.

info pic_logger Subroutine

Log a message that will only be printed at the info level of verbosity

Read more…
int16_fnv_1 pic_hash_32bit_fnv Function
int16_fnv_1a pic_hash_32bit_fnv Function
int32_decrease_ord_sort pic_sorting_ord_sort Subroutine
int32_decrease_sort pic_sorting_sort Subroutine
int32_fnv_1 pic_hash_32bit_fnv Function
int32_fnv_1a pic_hash_32bit_fnv Function
int32_increase_ord_sort pic_sorting_ord_sort Subroutine
int32_increase_sort pic_sorting_sort Subroutine
int64_decrease_ord_sort pic_sorting_ord_sort Subroutine
int64_decrease_sort pic_sorting_sort Subroutine
int64_fnv_1 pic_hash_32bit_fnv Function
int64_fnv_1a pic_hash_32bit_fnv Function
int64_increase_ord_sort pic_sorting_ord_sort Subroutine
int64_increase_sort pic_sorting_sort Subroutine
int8_fnv_1 pic_hash_32bit_fnv Function

The original FNV-1 8-bit key algorithm.

int8_fnv_1a pic_hash_32bit_fnv Function

The original FNV-1a 8-bit key algorithm.

is_alpha pic_ascii Function

Checks whether c is an ASCII letter (A .. Z, a .. z).

is_alphanum pic_ascii Function

Checks whether c is a letter or a number (0 .. 9, a .. z, A .. Z).

is_ascii pic_ascii Function

Checks whether or not c is in the ASCII character set - i.e. in the range 0 .. 0x7F.

is_blank pic_ascii Function

Checks whether or not c is a blank character. That includes the only the space and tab characters

is_control pic_ascii Function

Checks whether c is a control character.

is_digit pic_ascii Function

Checks whether c is a digit (0 .. 9).

is_equal pic_test_helpers Interface

The is equal interface is used to circumvent the fact that Fortran, rightfully, complains about comparing two reals without involving a tolerance, i.e. if(a == b) since there is no guarantee that the two reals are exactly equal due to floating point precision issues. The functions are defined as elemental

Read more…
is_equal_dp pic_test_helpers Function
is_equal_sp pic_test_helpers Function
is_graphical pic_ascii Function

Checks whether or not c is a printable character other than the space character.

is_hex_digit pic_ascii Function

Checks whether c is a digit in base 16 (0 .. 9, A .. F, a .. f).

is_lower pic_ascii Function

Checks whether c is a lowercase ASCII letter (a .. z).

is_octal_digit pic_ascii Function

Checks whether c is a digit in base 8 (0 .. 7).

is_printable pic_ascii Function

Checks whether or not c is a printable character - including the space character.

is_punctuation pic_ascii Function

Checks whether or not c is a punctuation character. That includes all ASCII characters which are not control characters, letters, digits, or whitespace.

is_sorted pic_array Interface

is_sorted provides a simple way to checking if a 1d array is sorted it is implemented for int32, int64, sp, and dp datatypes. The default is to check if an array is sorted in ascending fashion.

Read more…
is_sorted_char pic_array Function

check if a 1d array of type char is sorted

is_sorted_dp pic_array Function

check if a 1d array of type dp is sorted

is_sorted_int32 pic_array Function

check if a 1d array of type int32 is sorted

is_sorted_int64 pic_array Function

check if a 1d array of type int64 is sorted

is_sorted_sp pic_array Function

check if a 1d array of type sp is sorted

is_upper pic_ascii Function

Checks whether c is an uppercase ASCII letter (A .. Z).

is_white pic_ascii Function

Checks whether or not c is a whitespace character. That includes the space, tab, vertical tab, form feed, carriage return, and linefeed characters.

join pic_strings Interface

Joins an array of strings into a single string. The chunks are separated with a space, or an optional user-defined separator.

join_char pic_strings Function

Joins a list of strings with a separator (default: space). Returns a new string

join_string pic_strings Function

Joins a list of strings with a separator (default: space). Returns a new string

knowledge pic_logger Subroutine

Log a message that will only be printed at the error of verbosity

Read more…
le_char_string pic_string_type Function

Compare two character sequences for being less or equal In this version the right-hand side character sequences is by a string.

le_string_char pic_string_type Function

Compare two character sequences for being less or equal. In this version the left-hand side character sequences is by a string.

le_string_string pic_string_type Function

Compare two character sequences for being less or equal. In this version both character sequences are by a string.

len_string pic_string_type Function

Returns the length of the character sequence represented by the string.

len_trim pic_string_type Interface

Returns the length of the character sequence without trailing spaces represented by the string.

Read more…
len_trim_string pic_string_type Function

Returns the length of the character sequence without trailing spaces represented by the string.

lge pic_string_type Interface

Lexically compare the order of two character sequences being greater equal, The left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
lge_char_string pic_string_type Function

Lexically compare two character sequences for being greater or equal In this version the right-hand side character sequences is by a string.

lge_string_char pic_string_type Function

Lexically compare two character sequences for being greater or equal. In this version the left-hand side character sequences is by a string.

lge_string_string pic_string_type Function

Lexically compare two character sequences for being greater or equal. In this version both character sequences are by a string.

lgt pic_string_type Interface

Lexically compare the order of two character sequences being greater, The left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
lgt_char_string pic_string_type Function

Lexically compare two character sequences for being greater. In this version the right-hand side character sequences is by a string.

lgt_string_char pic_string_type Function

Lexically compare two character sequences for being greater. In this version the left-hand side character sequences is by a string.

lgt_string_string pic_string_type Function

Lexically compare two character sequences for being greater. In this version both character sequences are by a string.

lle pic_string_type Interface

Lexically compare the order of two character sequences being less equal, The left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
lle_char_string pic_string_type Function

Lexically compare two character sequences for being less or equal In this version the right-hand side character sequences is by a string.

lle_string_char pic_string_type Function

Lexically compare two character sequences for being less or equal. In this version the left-hand side character sequences is by a string.

lle_string_string pic_string_type Function

Lexically compare two character sequences for being less or equal. In this version both character sequences are by a string.

llt pic_string_type Interface

Lexically compare the order of two character sequences being less, The left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
llt_char_string pic_string_type Function

Lexically compare two character sequences for being less. In this version the right-hand side character sequences is by a string.

llt_string_char pic_string_type Function

Lexically compare two character sequences for being less. In this version the left-hand side character sequences is by a string.

llt_string_string pic_string_type Function

Lexically compare two character sequences for being less. In this version both character sequences are by a string.

log pic_logger Subroutine

internal subroutines that processes the message and filters it according to the verbosity level set by the user or the default this is a private subroutine so it is not exposed to the user

lt_char_string pic_string_type Function

Compare two character sequences for being less. In this version the right-hand side character sequences is by a string.

lt_string_char pic_string_type Function

Compare two character sequences for being less. In this version the left-hand side character sequences is by a string.

lt_string_string pic_string_type Function

Compare two character sequences for being less. In this version both character sequences are by a string.

maybe pic_string_type Function

Safely return the character sequences represented by the string

move pic_string_type Interface

Moves the allocated character scalar from ‘from’ to ‘to’

move_char_char pic_string_type Subroutine

Moves the allocated character scalar from ‘from’ to ‘to’ No output

move_char_string pic_string_type Subroutine

Moves the allocated character scalar from ‘from’ to ‘to’ No output

move_string_char pic_string_type Subroutine

Moves the allocated character scalar from ‘from’ to ‘to’ No output

move_string_string pic_string_type Subroutine

Moves the allocated character scalar from ‘from’ to ‘to’ No output

ne_char_string pic_string_type Function

Compare two character sequences for inequality. In this version the right-hand side character sequences is by a string.

ne_string_char pic_string_type Function

Compare two character sequences for inequality. In this version the left-hand side character sequences is by a string.

ne_string_string pic_string_type Function

Compare two character sequences for inequality. In this version both character sequences are by a string.

operator(//) pic_string_type Interface

Concatenate two character sequences, the left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
operator(/=) pic_string_type Interface

Compare two character sequences for inequality, the left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
operator(<) pic_string_type Interface

Compare two character sequences for being less, the left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
operator(<=) pic_string_type Interface

Compare two character sequences for being less than, the left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
operator(==) pic_string_type Interface

Compare two character sequences for equality, the left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
operator(>) pic_string_type Interface

Compare two character sequences for being greater, the left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
operator(>=) pic_string_type Interface

Compare two character sequences for being greater than, the left-hand side, the right-hand side or both character sequences can be represented by a string.

Read more…
optional_char pic_optional_value Function

Handle optional character(len=*) value

optional_dp pic_optional_value Function

Handle optional real(dp) value

optional_int32 pic_optional_value Function

Handle optional integer(int32) value

optional_int64 pic_optional_value Function

Handle optional integer(int64) value

optional_logical pic_optional_value Function

Handle optional logical value

optional_sp pic_optional_value Function

Handle optional real(sp) value

ord_sort pic_sorting Interface

The generic subroutine interface implementing the ORD_SORT algorithm, a translation to Fortran 2008, of the "Rust" sort algorithm found in slice.rs https://github.com/rust-lang/rust/blob/90eb44a5897c39e3dff9c7e48e3973671dcd9496/src/liballoc/slice.rs#L2159 ORD_SORT is a hybrid stable comparison algorithm combining merge sort, and insertion sort.

Read more…
pad pic_io Function

function to pad a string with a certain number of characters for nice printing

pad pic_io Interface

adds a number X of spaces to the left of a “string” whcih is just a collection of characters. Mostly used for nice printing

Read more…
padl pic_strings Interface

Left pad the input string

padl_char_default pic_strings Function

Left pad the input string with ” ” (1 whitespace)

Read more…
padl_char_pad_with pic_strings Function

Left pad the input string with the ‘pad_with’ character

Read more…
padl_string_default pic_strings Function

Left pad the input string with ” ” (1 whitespace)

Read more…
padl_string_pad_with pic_strings Function

Left pad the input string with the ‘pad_with’ character

Read more…
padr pic_strings Interface

Right pad the input string

padr_char_default pic_strings Function

Right pad the input string with ” ” (1 whitespace)

Read more…
padr_char_pad_with pic_strings Function

Right pad the input string with the ‘pad_with’ character

Read more…
padr_string_default pic_strings Function

Right pad the input string with ” ” (1 whitespace)

Read more…
padr_string_pad_with pic_strings Function

Right pad the input string with the ‘pad_with’ character

Read more…
performance pic_logger Subroutine

Log a message that will only be printed at the performance of verbosity

Read more…
pic_copy pic_array Interface

copy provides a blas-less implementation of xcopy where x is (i,s,d) icopy, scopy, dcopy if you built pic with BLAS use the copy interface provided there, I will not beat BLAS copy is implemented for (int32, int64, sp, dp) for 1 and 2d arrays of the same types

Read more…
pic_fill pic_array Interface

fill provides a generic interface to assing a value alpha of types (int32, int64, sp, dp) as defined in pic_types.F90 The inteface supports filling 1d and 2d arrays of the specified variables

Read more…
pic_optional pic_optional_value Interface

Overloaded interface for optional value retrieval, supported types are: - integer(int32), integer(int64), real(sp), real(dp), character(len=*), logical

pic_print_array pic_array Interface

Generic interface for printing arrays of different types

Read more…
pic_print_banner pic Subroutine

my cool banner, work in progress

pic_scramble_array pic_array Interface
pic_sum pic_array Interface

pic_sum provides a threaded alternative to the sum(array) Fortran intrinsic which will be too slow for large sizes of vectors and matrices. Note that this provides the total sum. As opposed to the blas alternative XASUM which does the absolute sum

Read more…
pic_transpose pic_array Interface

pic_transpose provides a blas-less, threaded alternative to the Fortran transpose intrinsic which will be slow for large matrix sizes. pic_transpose does not assume symmetric matrices

Read more…
print_3d_tensor_dp pic_array Subroutine

Print a 3D tensor of values

print_3d_tensor_int32 pic_array Subroutine

Print a 3D tensor of values

print_3d_tensor_int64 pic_array Subroutine

Print a 3D tensor of values

print_3d_tensor_sp pic_array Subroutine

Print a 3D tensor of values

print_asterisk_row pic_io Subroutine

prints a convenient row of asterisks of length n

print_matrix_dp pic_array Subroutine

print a matrix of values

print_matrix_int32 pic_array Subroutine

print a matrix of values

print_matrix_int64 pic_array Subroutine

print a matrix of values

print_matrix_sp pic_array Subroutine

print a matrix of values

print_packed_matrix_dp pic_array Subroutine

Print a packed lower triangular matrix of values

print_packed_matrix_int32 pic_array Subroutine

Print a packed lower triangular matrix of values

print_packed_matrix_int64 pic_array Subroutine

Print a packed lower triangular matrix of values

print_packed_matrix_sp pic_array Subroutine

Print a packed lower triangular matrix of values

print_vector_dp pic_array Subroutine

print a vector of values

print_vector_int32 pic_array Subroutine

print a vector of values

print_vector_int64 pic_array Subroutine

print a vector of values

print_vector_sp pic_array Subroutine

print a vector of values

radix_sort pic_sorting Interface

The generic subroutine interface implementing the LSD radix sort algorithm, see https://en.wikipedia.org/wiki/Radix_sort for more details. It is always O(N) in sorting random data, but need a O(N) buffer. (Specification)

radix_sort_u32_helper pic_sorting_radix_sort Subroutine
radix_sort_u64_helper pic_sorting_radix_sort Subroutine
read (formatted) pic_string_type Interface

Read a character sequence from a connected unformatted unit into the string.

read (unformatted) pic_string_type Interface

Read a character sequence from a connected unformatted unit into the string.

read_formatted pic_string_type Subroutine

Read a character sequence from a connected formatted unit into the string.

read_unformatted pic_string_type Subroutine

Read a character sequence from a connected unformatted unit into the string.

repeat pic_string_type Interface

Repeats the character sequence hold by the string by the number of specified copies.

Read more…
repeat_string pic_string_type Function

Repeats the character sequence hold by the string by the number of specified copies.

replace_all pic_strings Interface

Replaces all the occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Version: experimental

replace_all_char_char_char pic_strings Function

Replaces all the occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string

replace_all_char_char_string pic_strings Function

Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string

replace_all_char_string_char pic_strings Function

Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string

replace_all_char_string_string pic_strings Function

Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string

replace_all_string_char_char pic_strings Function

Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string

replace_all_string_char_string pic_strings Function

Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string

replace_all_string_string_char pic_strings Function

Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string

replace_all_string_string_string pic_strings Function

Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string

reset_flop_counter pic_flop_recorder Subroutine

Resets the flop counter to 0_int64

Read more…
reverse pic_ascii Function

Reverse the character order in the input character variable

Read more…
reverse pic_ascii Interface

Returns a new character sequence which is reverse of the input charater sequence This method is elemental and returns a character sequence

reverse pic_string_type Interface

Reverses the character sequence hold by the input string

Read more…
reverse_string pic_string_type Function

Reverse the character sequence hold by the input string

scan pic_string_type Interface

Scan a string for the presence of a set of characters. Scans a string for any of the characters in a set of characters.

Read more…
scan_char_string pic_string_type Function

Scan a character sequence for any of the characters in a set of characters. In this version the set of characters is represented by a string.

scan_string_char pic_string_type Function

Scan a character sequence for any of the characters in a set of characters. In this version the character sequences is represented by a string.

scan_string_string pic_string_type Function

Scan a character sequence for any of the characters in a set of characters. In this version both the character sequence and the character set are represented by a string.

scramble_array_character pic_array Subroutine

should not be used, intended for testing purposes. randomizes an array of type char

scramble_array_dp pic_array Subroutine

should not be used, intended for testing purposes. randomizes an array of type dp

scramble_array_int32 pic_array Subroutine

should not be used, intended for testing purposes. randomizes an array of type int32

scramble_array_int64 pic_array Subroutine

should not be used, intended for testing purposes. randomizes an array of type int64

scramble_array_sp pic_array Subroutine

should not be used, intended for testing purposes. randomizes an array of type sp

set_brackets pic_array Subroutine

Set brackets based on output format type

set_precision pic_io Interface

This routine overrides the default dp precision used for printing strings in the to_char function, the default is : integer(default_int), parameter :: default_dp_precision = 12

Read more…
set_precision_internal pic_io Subroutine

Set the precision for real numbers

set_threading_mode pic_array Interface

set_threading sets the threading mode for the array routines this will set the use_threaded variable to true or false depending on the input Usage: call set_threading_mode(.true.) or call set_threading_mode(.false.)

set_threading_mode_ pic_array Subroutine

set the threading mode for the array routines, this will set the use_threaded variable to true or false depending on the input

Read more…
set_to_string pic_strings Function

Implementation to transfer a set of characters to a string representing the set.

Read more…
slen pic_string_type Interface

Returns the length of the character sequence represented by the string.

Read more…
slice pic_strings Interface

Extracts characters from the input string to return a new string

Read more…
slice_char pic_strings Function

Extract the characters from the region between ‘first’ and ‘last’ index (both inclusive) of the input ‘string’ by taking strides of length ‘stride’ Returns a new string

slice_string pic_strings Function

Extract the characters from the region between ‘first’ and ‘last’ index (both inclusive) of the input ‘string’ by taking strides of length ‘stride’ Returns a new string

sort pic_sorting Interface

The generic subroutine interface implementing the SORT algorithm, based on the introsort of David Musser. (Specification)

sort_index pic_sorting Interface

The generic subroutine interface implementing the SORT_INDEX algorithm, based on the "Rust" sort algorithm found in slice.rs https://github.com/rust-lang/rust/blob/90eb44a5897c39e3dff9c7e48e3973671dcd9496/src/liballoc/slice.rs#L2159 but modified to return an array of indices that would provide a stable sort of the rank one ARRAY input.

Read more…
sp_decrease_ord_sort pic_sorting_ord_sort Subroutine
sp_decrease_sort pic_sorting_sort Subroutine
sp_increase_ord_sort pic_sorting_ord_sort Subroutine
sp_increase_sort pic_sorting_sort Subroutine
starts_with pic_strings Interface

Check whether a string starts with substring or not

Read more…
starts_with_char_char pic_strings Function

Check whether a string starts with substring or not

starts_with_char_string pic_strings Function

Check whether a string starts with substring or not

starts_with_string_char pic_strings Function

Check whether a string starts with substring or not

starts_with_string_string pic_strings Function

Check whether a string starts with substring or not

string_type pic_string_type Interface

Constructor for new string instances

strip pic_strings Interface

Remove leading and trailing whitespace characters.

Read more…
strip_char pic_strings Function

Remove leading and trailing whitespace characters.

strip_string pic_strings Function

Remove leading and trailing whitespace characters.

sum_3d_tensor_dp pic_array Function

perform the total sum of all components of type dp in a 3d tensor

sum_3d_tensor_int32 pic_array Function

perform the total sum of all components of type int32 in a 3d tensor

sum_3d_tensor_int64 pic_array Function

perform the total sum of all components of type int64 in a 3d tensor

sum_3d_tensor_sp pic_array Function

perform the total sum of all components of type sp in a 3d tensor

sum_matrix_dp pic_array Function

perform the total sum of all components of type dp in a matrix

sum_matrix_int32 pic_array Function

perform the total sum of all components of type int32 in a matrix

sum_matrix_int64 pic_array Function

perform the total sum of all components of type int64 in a matrix

sum_matrix_sp pic_array Function

perform the total sum of all components of type sp in a matrix

sum_vector_dp pic_array Function

perform the total sum of all components of type dp in a vector

sum_vector_int32 pic_array Function

perform the total sum of all components of type int32 in a vector

sum_vector_int64 pic_array Function

perform the total sum of all components of type int64 in a vector

sum_vector_sp pic_array Function

perform the total sum of all components of type sp in a vector

timer_get_elapsed_time pic_timer Function

Returns the elapsed time as a real(dp) variable

Read more…
timer_print_time pic_timer Subroutine

Prints the elapsed time at the time of calling

Read more…
timer_start pic_timer Subroutine

starts the timer. If OMP is enabled, it will use omp_get_wtime() if not, it will use Fortran’s system_clock

Read more…
timer_stop pic_timer Subroutine

stop the timer. If OMP is enabled, it will use omp_get_wtime() if not, it will use Fortran’s system_clock

Read more…
to_c_char pic_strings Interface

Format or transfer other types as a string.

to_c_char_from_char pic_strings Function

Convert a Fortran character string to a C character array

Read more…
to_c_char_from_string pic_strings Function

Convert a Fortran string type to a C character array

Read more…
to_char pic_io Interface

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

Read more…
to_char_char pic_io Function

transform a character to a string

to_char_dp pic_io Function

transform a real(dp) to a string

to_char_int32 pic_io Function

transform an int32 to a string

to_char_int64 pic_io Function

transform an int64 to a string

to_char_logical pic_io Function

tranform a logical to a string either true or false

to_char_matrix_dp pic_io Function
to_char_matrix_int32 pic_io Function
to_char_matrix_int64 pic_io Function
to_char_matrix_sp pic_io Function
to_char_sp pic_io Function

transform a real(sp) to a string

to_char_vector_dp pic_io Function
to_char_vector_int32 pic_io Function
to_char_vector_int64 pic_io Function
to_char_vector_sp pic_io Function
to_lower pic_ascii Function

Convert character variable to lower case

Read more…
to_lower pic_ascii Interface

Returns a new character sequence which is the lower case version of the input character sequence This method is elemental and returns a character sequence

to_lower pic_string_type Interface

Returns the lowercase version of the character sequence hold by the input string

Read more…
to_lower_string pic_string_type Function

Convert the character sequence hold by the input string to lower case

to_sentence pic_ascii Function

Converts character sequence to sentence case

Read more…
to_sentence pic_ascii Interface

Returns a new character sequence which is the sentence case version of the input character sequence This method is elemental and returns a character sequence

to_sentence pic_string_type Interface

Returns the sentencecase version of the character sequence hold by the input string

Read more…
to_sentence_string pic_string_type Function

Convert the character sequence hold by the input string to sentence case

to_string pic_strings Interface

Format or transfer other types as a string.

to_title pic_ascii Function

Converts character sequence to title case

Read more…
to_title pic_ascii Interface

Returns a new character sequence which is the title case version of the input character sequence This method is elemental and returns a character sequence

to_title pic_string_type Interface

Returns the titlecase version of the character sequence hold by the input string

Read more…
to_title_string pic_string_type Function

Convert the character sequence hold by the input string to title case

to_upper pic_ascii Function

Convert character variable to upper case

Read more…
to_upper pic_ascii Interface

Returns a new character sequence which is the upper case version of the input character sequence This method is elemental and returns a character sequence

to_upper pic_string_type Interface

Returns the uppercase version of the character sequence hold by the input string

Read more…
to_upper_string pic_string_type Function

Convert the character sequence hold by the input string to upper case

transpose_matrix_dp pic_array Subroutine

transpose a matrix of datatype dp

transpose_matrix_int32 pic_array Subroutine

transpose a matrix of datatype int32

transpose_matrix_int64 pic_array Subroutine

transpose a matrix of datatype int64

transpose_matrix_sp pic_array Subroutine

transpose a matrix of datatype sp

trim pic_string_type Interface

Returns the character sequence hold by the string without trailing spaces.

Read more…
trim_string pic_string_type Function

Returns the character sequence hold by the string without trailing spaces.

unused_dummy_argument pic_string_type Subroutine

Do nothing but mark an unused dummy argument as such to acknowledge compile time warning like:

Read more…
verbose pic_logger Subroutine

Log a message that will only be printed at the verbose level of verbosity

Read more…
verify pic_string_type Interface

Scan a string for the absence of a set of characters. Verifies that all the characters in string belong to the set of characters in set.

Read more…
verify_char_string pic_string_type Function

Verify a character sequence for the absence any of the characters in a set of characters. In this version the set of characters is represented by a string.

verify_string_char pic_string_type Function

Verify a character sequence for the absence any of the characters in a set of characters. In this version the character sequences is represented by a string.

verify_string_string pic_string_type Function

Verify a character sequence for the absence any of the characters in a set of characters. In this version both the character sequence and the character set are represented by a string.

warning pic_logger Subroutine

Log a message that will only be printed at the warning level of verbosity

Read more…
write (formatted) pic_string_type Interface

Write the character sequence hold by the string to a connected formatted unit.

write (unformatted) pic_string_type Interface

Write the character sequence hold by the string to a connected unformatted unit.

write_formatted pic_string_type Subroutine

Write the character sequence hold by the string to a connected formatted unit.

write_log_line pic_logger Subroutine

Internal subroutine that will write the message to the log no interface to the public

write_unformatted pic_string_type Subroutine

Write the character sequence hold by the string to a connected unformatted unit.

zfill pic_strings Interface

Left pad the input string with zeros.

zfill_char pic_strings Function

Left pad the input string with zeros

Read more…
zfill_string pic_strings Function

Left pad the input string with zeros

Read more…