1D array routines
See arange, diff, isSorted, repeat for more information.
Create a 1D array from start to stop in given increments of 1 or optionally step
Interfaced with arange
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r32), | intent(inout), | allocatable | :: | res(:) | ||
real(kind=r32), | intent(in) | :: | start | Start from here |
||
real(kind=r32), | intent(in) | :: | stp | Stop here |
||
real(kind=r32), | intent(in), | optional | :: | step | Step size |
Interfaced with arange
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(inout), | allocatable | :: | res(:) | ||
real(kind=r64), | intent(in) | :: | start | Start from here |
||
real(kind=r64), | intent(in) | :: | stp | Stop here |
||
real(kind=r64), | intent(in), | optional | :: | step | Step size |
Interfaced with arange
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32), | intent(inout), | allocatable | :: | res(:) | ||
integer(kind=i32), | intent(in) | :: | start | Start from here |
||
integer(kind=i32), | intent(in) | :: | stp | Stop here |
||
integer(kind=i32), | intent(in), | optional | :: | step | Step size |
Interfaced with arange
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i64), | intent(inout), | allocatable | :: | res(:) | ||
integer(kind=i64), | intent(in) | :: | start | Start from here |
||
integer(kind=i64), | intent(in) | :: | stp | Stop here |
||
integer(kind=i64), | intent(in), | optional | :: | step | Step size |
Compute the difference along an array
Interfaced with diff
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r32), | intent(in) | :: | this(:) | 1D array |
||
real(kind=r32) | :: | res(:) | Difference along array |
Interfaced with diff
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | this(:) | 1D array |
||
real(kind=r64) | :: | res(:) | Difference along array |
Interfaced with diff
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32), | intent(in) | :: | this(:) | 1D array |
||
integer(kind=i32) | :: | res(:) | Difference along array |
Interfaced with diff
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i64), | intent(in) | :: | this(:) | 1D array |
||
integer(kind=i64) | :: | res(:) | Difference along array |
Check that a 1D array is sorted
Interfaced with isSorted
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r32), | intent(in) | :: | this(:) | 1D array |
isSorted
Interfaced with isSorted
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | this(:) | 1D array |
isSorted
Interfaced with isSorted
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32), | intent(in) | :: | this(:) | 1D array |
isSorted
Interfaced with isSorted
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i64), | intent(in) | :: | this(:) | 1D array |
isSorted
Interfaced with isSorted
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r32), | intent(in) | :: | this(:) | 1D array |
||
integer(kind=i32), | intent(in) | :: | indx(:) | Index into 1D array |
isSorted
Interfaced with isSorted
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | this(:) | 1D array |
||
integer(kind=i32), | intent(in) | :: | indx(:) | Index into 1D array |
isSorted
Interfaced with isSorted
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32), | intent(in) | :: | this(:) | 1D array |
||
integer(kind=i32), | intent(in) | :: | indx(:) | Index into 1D array |
isSorted
Interfaced with isSorted
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i64), | intent(in) | :: | this(:) | 1D array |
||
integer(kind=i32), | intent(in) | :: | indx(:) | Index into 1D array |
isSorted
Repeat each element nRepeat times
Interfaced with repeat
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r32) | :: | this(:) | 1D array |
|||
integer(kind=i32) | :: | nRepeats | Number of times each element should be repeated |
|||
real(kind=r32), | allocatable | :: | res(:) |
Interfaced with repeat
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64) | :: | this(:) | 1D array |
|||
integer(kind=i32) | :: | nRepeats | Number of times each element should be repeated |
|||
real(kind=r64), | allocatable | :: | res(:) |
Interfaced with repeat
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32) | :: | this(:) | 1D array |
|||
integer(kind=i32) | :: | nRepeats | Number of times each element should be repeated |
|||
integer(kind=i32), | allocatable | :: | res(:) |
Interfaced with repeat
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i64) | :: | this(:) | 1D array |
|||
integer(kind=i32) | :: | nRepeats | Number of times each element should be repeated |
|||
integer(kind=i64), | allocatable | :: | res(:) |
Perform Knuth shuffling on an array
Interfaced with shuffle
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r32), | intent(inout) | :: | this(:) | 1D array |
Interfaced with shuffle
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(inout) | :: | this(:) | 1D array |
Interfaced with shuffle
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32), | intent(inout) | :: | this(:) | 1D array |
Interfaced with shuffle
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i64), | intent(inout) | :: | this(:) | 1D array |