buds
0.1
FORTRAN reference counted types
|
Return wrapped integer by modulo operation. More...
Private Member Functions | |
elemental integer(is_) function | modp_is_ (i, n) |
elemental integer(ii_) function | modp_ii_ (i, n) |
elemental integer(il_) function | modp_il_ (i, n) |
Return wrapped integer by modulo operation.
Routine for performing 1-index based modulo operations.
For any numbers i
and n
performing modp(i,n)
returns n
if mod(i,n) == 0
, otherwise it returns i
.