libsim
Versione7.2.3
|
This module defines usefull general purpose function and subroutine. Continua...
Tipi di dato | |
interface | append |
Quick method to append an element to the array. Continua... | |
type | arrayof_doubleprecision |
Derived type defining a dynamically extensible array of DOUBLEPRECISION elements. Continua... | |
type | arrayof_integer |
Derived type defining a dynamically extensible array of INTEGER elements. Continua... | |
type | arrayof_logical |
Derived type defining a dynamically extensible array of LOGICAL elements. Continua... | |
type | arrayof_real |
Derived type defining a dynamically extensible array of REAL elements. Continua... | |
interface | delete |
Destructor for finalizing an array object. Continua... | |
interface | index |
Index method. Continua... | |
interface | index_sorted |
Index method with sorted array. Continua... | |
interface | insert |
Method for inserting elements of the array at a desired position. Continua... | |
interface | packarray |
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. Continua... | |
interface | remove |
Method for removing elements of the array at a desired position. Continua... | |
interface | sort |
Sort method. Continua... | |
Funzioni/Subroutine | |
integer function, public | firsttrue (v) |
Return the index ot the first true element of the input logical array v. Continua... | |
integer function, public | lasttrue (v) |
Return the index ot the last true element of the input logical array v. Continua... | |
integer function | count_distinct_sorted_i (vect, mask) |
conta gli elementi distinti in un sorted array Continua... | |
integer function | count_distinct_i (vect, mask, back) |
conta gli elementi distinti in vect Continua... | |
integer function, dimension(dim) | pack_distinct_sorted_i (vect, dim, mask) |
compatta gli elementi distinti di vect in un sorted array Continua... | |
integer function, dimension(dim) | pack_distinct_i (vect, dim, mask, back) |
compatta gli elementi distinti di vect in un array Continua... | |
integer function, dimension(size(vect)) | map_distinct_i (vect, mask, back) |
map distinct Continua... | |
integer function, dimension(dim) | map_inv_distinct_i (vect, dim, mask, back) |
map inv distinct Continua... | |
integer function | index_i (vect, search, mask, back, cache) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. Continua... | |
recursive integer function | index_sorted_i (vect, search) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. Continua... | |
subroutine | sort_i (XDONT) |
Sorts inline into ascending order - Quicksort Quicksort chooses a "pivot" in the set, and explores the array from both ends, looking for a value > pivot with the increasing index, for a value <= pivot with the decreasing index, and swapping them when it has found one of each. Continua... | |
subroutine | inssor_i (XDONT) |
Sorts into increasing order (Insertion sort) Sorts XDONT into increasing order (Insertion sort) This subroutine uses insertion sort. Continua... | |
integer function | count_distinct_sorted_r (vect, mask) |
conta gli elementi distinti in un sorted array Continua... | |
integer function | count_distinct_r (vect, mask, back) |
conta gli elementi distinti in vect Continua... | |
real function, dimension(dim) | pack_distinct_sorted_r (vect, dim, mask) |
compatta gli elementi distinti di vect in un sorted array Continua... | |
real function, dimension(dim) | pack_distinct_r (vect, dim, mask, back) |
compatta gli elementi distinti di vect in un array Continua... | |
integer function, dimension(size(vect)) | map_distinct_r (vect, mask, back) |
map distinct Continua... | |
integer function, dimension(dim) | map_inv_distinct_r (vect, dim, mask, back) |
map inv distinct Continua... | |
integer function | index_r (vect, search, mask, back, cache) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. Continua... | |
recursive integer function | index_sorted_r (vect, search) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. Continua... | |
subroutine | sort_r (XDONT) |
Sorts inline into ascending order - Quicksort Quicksort chooses a "pivot" in the set, and explores the array from both ends, looking for a value > pivot with the increasing index, for a value <= pivot with the decreasing index, and swapping them when it has found one of each. Continua... | |
subroutine | inssor_r (XDONT) |
Sorts into increasing order (Insertion sort) Sorts XDONT into increasing order (Insertion sort) This subroutine uses insertion sort. Continua... | |
integer function | count_distinct_sorted_d (vect, mask) |
conta gli elementi distinti in un sorted array Continua... | |
integer function | count_distinct_d (vect, mask, back) |
conta gli elementi distinti in vect Continua... | |
doubleprecision function, dimension(dim) | pack_distinct_sorted_d (vect, dim, mask) |
compatta gli elementi distinti di vect in un sorted array Continua... | |
doubleprecision function, dimension(dim) | pack_distinct_d (vect, dim, mask, back) |
compatta gli elementi distinti di vect in un array Continua... | |
integer function, dimension(size(vect)) | map_distinct_d (vect, mask, back) |
map distinct Continua... | |
integer function, dimension(dim) | map_inv_distinct_d (vect, dim, mask, back) |
map inv distinct Continua... | |
integer function | index_d (vect, search, mask, back, cache) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. Continua... | |
recursive integer function | index_sorted_d (vect, search) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. Continua... | |
subroutine | sort_d (XDONT) |
Sorts inline into ascending order - Quicksort Quicksort chooses a "pivot" in the set, and explores the array from both ends, looking for a value > pivot with the increasing index, for a value <= pivot with the decreasing index, and swapping them when it has found one of each. Continua... | |
subroutine | inssor_d (XDONT) |
Sorts into increasing order (Insertion sort) Sorts XDONT into increasing order (Insertion sort) This subroutine uses insertion sort. Continua... | |
integer function | count_distinct_sorted_c (vect, mask) |
conta gli elementi distinti in un sorted array Continua... | |
integer function | count_distinct_c (vect, mask, back) |
conta gli elementi distinti in vect Continua... | |
integer function, dimension(size(vect)) | map_distinct_c (vect, mask, back) |
map distinct Continua... | |
integer function, dimension(dim) | map_inv_distinct_c (vect, dim, mask, back) |
map inv distinct Continua... | |
integer function, public | index_c (vect, search, mask, back, cache) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. Continua... | |
recursive integer function | index_sorted_c (vect, search) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. Continua... | |
subroutine | sort_c (XDONT) |
Sorts inline into ascending order - Quicksort Quicksort chooses a "pivot" in the set, and explores the array from both ends, looking for a value > pivot with the increasing index, for a value <= pivot with the decreasing index, and swapping them when it has found one of each. Continua... | |
subroutine | inssor_c (XDONT) |
Sorts into increasing order (Insertion sort) Sorts XDONT into increasing order (Insertion sort) This subroutine uses insertion sort. Continua... | |
integer function, dimension(count(mask)), public | map (mask) |
Return the index of the array only where the mask is true. Continua... | |
subroutine, private | arrayof_integer_insert_array (this, content, nelem, pos) |
Method for inserting a number of elements of the array at a desired position. Continua... | |
subroutine, private | arrayof_integer_insert (this, content, pos) |
Method for inserting an element of the array at a desired position. Continua... | |
integer function, private | arrayof_integer_append (this, content) |
Quick method to append an element to the array. Continua... | |
subroutine, private | arrayof_integer_insert_unique (this, content, pos) |
Method for inserting an element of the array at a desired position only if it is not present in the array yet. Continua... | |
integer function, private | arrayof_integer_append_unique (this, content) |
Quick function to append an element to the array only if it is not present in the array yet. Continua... | |
subroutine, private | arrayof_integer_remove (this, nelem, pos) |
Method for removing elements of the array at a desired position. Continua... | |
subroutine, private | arrayof_integer_delete (this, nodealloc) |
Destructor for finalizing an array object. Continua... | |
subroutine, private | arrayof_integer_packarray (this) |
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. Continua... | |
subroutine, private | arrayof_real_insert_array (this, content, nelem, pos) |
Method for inserting a number of elements of the array at a desired position. Continua... | |
subroutine, private | arrayof_real_insert (this, content, pos) |
Method for inserting an element of the array at a desired position. Continua... | |
integer function, private | arrayof_real_append (this, content) |
Quick method to append an element to the array. Continua... | |
subroutine, private | arrayof_real_insert_unique (this, content, pos) |
Method for inserting an element of the array at a desired position only if it is not present in the array yet. Continua... | |
integer function, private | arrayof_real_append_unique (this, content) |
Quick function to append an element to the array only if it is not present in the array yet. Continua... | |
subroutine, private | arrayof_real_remove (this, nelem, pos) |
Method for removing elements of the array at a desired position. Continua... | |
subroutine, private | arrayof_real_delete (this, nodealloc) |
Destructor for finalizing an array object. Continua... | |
subroutine, private | arrayof_real_packarray (this) |
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. Continua... | |
subroutine, private | arrayof_doubleprecision_insert_array (this, content, nelem, pos) |
Method for inserting a number of elements of the array at a desired position. Continua... | |
subroutine, private | arrayof_doubleprecision_insert (this, content, pos) |
Method for inserting an element of the array at a desired position. Continua... | |
integer function, private | arrayof_doubleprecision_append (this, content) |
Quick method to append an element to the array. Continua... | |
subroutine, private | arrayof_doubleprecision_insert_unique (this, content, pos) |
Method for inserting an element of the array at a desired position only if it is not present in the array yet. Continua... | |
integer function, private | arrayof_doubleprecision_append_unique (this, content) |
Quick function to append an element to the array only if it is not present in the array yet. Continua... | |
subroutine, private | arrayof_doubleprecision_remove (this, nelem, pos) |
Method for removing elements of the array at a desired position. Continua... | |
subroutine, private | arrayof_doubleprecision_delete (this, nodealloc) |
Destructor for finalizing an array object. Continua... | |
subroutine, private | arrayof_doubleprecision_packarray (this) |
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. Continua... | |
subroutine, private | arrayof_logical_insert_array (this, content, nelem, pos) |
Method for inserting a number of elements of the array at a desired position. Continua... | |
subroutine, private | arrayof_logical_insert (this, content, pos) |
Method for inserting an element of the array at a desired position. Continua... | |
integer function, private | arrayof_logical_append (this, content) |
Quick method to append an element to the array. Continua... | |
subroutine, private | arrayof_logical_remove (this, nelem, pos) |
Method for removing elements of the array at a desired position. Continua... | |
subroutine, private | arrayof_logical_delete (this, nodealloc) |
Destructor for finalizing an array object. Continua... | |
subroutine, private | arrayof_logical_packarray (this) |
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. Continua... | |
This module defines usefull general purpose function and subroutine.