ScalES-PPM
Loading...
Searching...
No Matches
Functions/Subroutines
ppm_compare Module Reference

collection of simple comparison functions More...

Functions/Subroutines

pure integer function, public cmp_i4 (a, b)
 compare two integers
 
pure integer function, public rcmp_i4 (a, b)
 compare two integers, reverse result
 
pure integer function, public cmp_i4_indirect_i4 (a, b, indirection)
 compare two integers indirectly
 
pure integer function, public cmp_i4_indirect_i8 (a, b, indirection)
 compare two integers indirectly
 
pure integer function, public rcmp_i4_indirect_i8 (a, b, indirection)
 compare two integers indirectly, reverse result
 
pure integer function, public cmp_i8 (a, b)
 compare two integers
 
pure integer function, public cmp_dp (a, b)
 compare two double precision reals
 
pure integer function, public rcmp_dp (a, b)
 compare two double precision reals, reverse result
 
pure integer function, public cmp_i4_indirect_dp (a, b, indirection)
 compare two integers indirectly
 
pure integer function, public rcmp_i4_indirect_dp (a, b, indirection)
 compare two integers indirectly, reverse result
 

Detailed Description

collection of simple comparison functions

Function/Subroutine Documentation

◆ cmp_dp()

pure integer function, public ppm_compare::cmp_dp ( real(dp), intent(in) a,
real(dp), intent(in) b )

compare two double precision reals

Parameters
afirst number to compare
bsecond number to compare
Returns
0 if a == b 1 if a > b -1 if a < b

◆ cmp_i4()

pure integer function, public ppm_compare::cmp_i4 ( integer(i4), intent(in) a,
integer(i4), intent(in) b )

compare two integers

Parameters
afirst number to compare
bsecond number to compare
Returns
0 if a == b 1 if a > b -1 if a < b

◆ cmp_i4_indirect_dp()

pure integer function, public ppm_compare::cmp_i4_indirect_dp ( integer(i4), intent(in) a,
integer(i4), intent(in) b,
real(dp), dimension(*), intent(in) indirection )

compare two integers indirectly

Parameters
afirst index to compare
bsecond index to compare
indirectiontable to reference for values
Returns
0 if indirection(a) == indirection(b) 1 if indirection(a) > indirection(b) -1 if indirection(a) < indirection(b)

◆ cmp_i4_indirect_i4()

pure integer function, public ppm_compare::cmp_i4_indirect_i4 ( integer(i4), intent(in) a,
integer(i4), intent(in) b,
integer(i4), dimension(*), intent(in) indirection )

compare two integers indirectly

Parameters
afirst index to compare
bsecond index to compare
indirectiontable to reference for values
Returns
0 if indirection(a) == indirection(b) 1 if indirection(a) > indirection(b) -1 if indirection(a) < indirection(b)

◆ cmp_i4_indirect_i8()

pure integer function, public ppm_compare::cmp_i4_indirect_i8 ( integer(i4), intent(in) a,
integer(i4), intent(in) b,
integer(i8), dimension(*), intent(in) indirection )

compare two integers indirectly

Parameters
afirst index to compare
bsecond index to compare
indirectiontable to reference for values
Returns
0 if indirection(a) == indirection(b) 1 if indirection(a) > indirection(b) -1 if indirection(a) < indirection(b)

◆ cmp_i8()

pure integer function, public ppm_compare::cmp_i8 ( integer(i8), intent(in) a,
integer(i8), intent(in) b )

compare two integers

Parameters
afirst number to compare
bsecond number to compare
Returns
0 if a == b 1 if a > b -1 if a < b

◆ rcmp_dp()

pure integer function, public ppm_compare::rcmp_dp ( real(dp), intent(in) a,
real(dp), intent(in) b )

compare two double precision reals, reverse result

Parameters
afirst number to compare
bsecond number to compare
Returns
0 if a == b -1 if a > b 1 if a < b

◆ rcmp_i4()

pure integer function, public ppm_compare::rcmp_i4 ( integer(i4), intent(in) a,
integer(i4), intent(in) b )

compare two integers, reverse result

Parameters
afirst number to compare
bsecond number to compare
Returns
0 if a == b -1 if a > b 1 if a < b

◆ rcmp_i4_indirect_dp()

pure integer function, public ppm_compare::rcmp_i4_indirect_dp ( integer(i4), intent(in) a,
integer(i4), intent(in) b,
real(dp), dimension(*), intent(in) indirection )

compare two integers indirectly, reverse result

Parameters
afirst index to compare
bsecond index to compare
indirectiontable to reference for values
Returns
0 if indirection(a) == indirection(b) -1 if indirection(a) > indirection(b) 1 if indirection(a) < indirection(b)

◆ rcmp_i4_indirect_i8()

pure integer function, public ppm_compare::rcmp_i4_indirect_i8 ( integer(i4), intent(in) a,
integer(i4), intent(in) b,
integer(i8), dimension(*), intent(in) indirection )

compare two integers indirectly, reverse result

Parameters
afirst index to compare
bsecond index to compare
indirectiontable to reference for values
Returns
0 if indirection(a) == indirection(b) -1 if indirection(a) > indirection(b) 1 if indirection(a) < indirection(b)

Das diesem Bericht zugrundeliegende Vorhaben wurde mit Mitteln des Bundesministeriums für Bildung, und Forschung unter dem Förderkennzeichen 01IH08004E gefördert. Die Verantwortung für den Inhalt dieser Veröffentlichung liegt beim Autor.