Allocate or resize (shrink or expand) and refill an input allocatable
scalar string or array of rank 1..3
to arbitrary lower and upper bounds while preserving the original contents or a subset of it.
The array contents or a requested subset of it are kept in the original indices in the output rebound array or shifted to a new starting location lbc
in the output array
.
The rest of the elements (including the newly-added elements) are filled with the user-specified fill
.
The following figure illustrates example resizing and refilling of a 1D array and transferal of its contents.
- Parameters
-
[in,out] | array | : The input/output allocatable scalar of
-
type
character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU) type character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU)
or array of rank 1..3 of either
-
type
character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU)
-
type
integer of kind any supported by the processor (e.g., IK, IK8, IK16, IK32, or IK64)
-
type
logical of kind any supported by the processor (e.g., LK)
-
type
complex of kind any supported by the processor (e.g., CK, CK32, CK64, or CK128)
-
type
real of kind any supported by the processor (e.g., RK, RK32, RK64, or RK128)
On output, the array will be (re)allocated to the requested new lower and upper bounds (lb, ub) .
|
[in] | fill | : The input scalar of the same type and kind as the input array containing the value to fill the new elements (if any) of array . If array is of type character , then
-
The equality
len(fill) == 1 must also hold if array is of zero rank (i.e., a scalar string).
-
The equality
len(fill) <= len(array) must also hold if array is of non-zero rank.
|
[in] | lb | : The input scalar or array of type integer of default kind IK representing the new Lower Bound of the output array.
-
If
array is a scalar or array of rank 1 , then lb must be a scalar.
-
If
array is an array of rank > 1 , then lb must be a vector of the same length as rank(array) .
|
[in] | ub | : The input scalar or array of type integer of default kind IK representing the new Upper Bound of the output array.
-
If
array is a scalar or array of rank 1 , then ub must be a scalar.
-
If
array is an array of rank > 1 , then ub must be a vector of the same length as rank(array) .
|
[in] | lbc | : The input scalar or array of type integer of default kind IK, representing the Lower Bound(s) of the Contents in the newly rebound output array .
-
If
array is a scalar or array of rank 1 , then lbc must be a scalar.
-
If
array is an array of rank > 1 , then lbc must be a vector of the same length as rank(array) .
(optional, default = lbcold .) |
[in] | lbcold | : The input scalar or array of type integer of default kind IK, representing the Lower Bound(s) of the Contents in the original (old) input array that is to be copied to the newly allocated output array starting at the new lower bound(s) lbc .
(optional, default = lbound(array) . If array is a scalar string, then default = 1 . It can be present only if the input arguments lbc and ubcold are also present.) |
[in] | ubcold | : The input scalar or array of type integer of default kind IK, representing the Upper Bound(s) of the Contents in the original (old) input array that is to be copied to the newly allocated output array starting at the new lower bound(s) lbc .
(optional, default = ubound(array) . If array is a scalar string, then default = len(array) It can be present only if the input arguments lbc and lbcold are also present.) |
[out] | failed | : The output scalar logical of default kind LK that is .false. if and only if the requested array resizing is successful, otherwise it is set to .true. to signal the occurrence of an allocation error.
The value of failed is .true. only if the stat argument returned by the Fortran intrinsic allocate() statement is non-zero.
(optional, if missing and an allocation error occurs, the processor dictates the program behavior (normally execution stops).) |
[out] | errmsg | : The output scalar character of default kind SK of arbitrary length type parameter.
If the optional output argument failed is present and an error occurs, errmsg will be set to a message describing the nature of the error.
This behavior conforms with the standard Fortran behavior for the intrinsic allocate() statement.
A length type parameter of 127 or more for errmsg should be sufficient for capturing most if not all error messages in entirety.
(optional. Its presence is relevant if and only if the optional output argument failed is also present.) |
Possible calling interfaces ⛓
call setRebilled(array(..), fill, lb(..), ub(..), failed
= failed,
errmsg = errmsg)
call setRebilled(array(..), fill, lb(..), ub(..), lbc(..), failed
= failed,
errmsg = errmsg)
call setRebilled(array(..), fill, lb(..), ub(..), lbc(..), lbcold(..), ubcold(..), failed
= failed,
errmsg = errmsg)
!
Allocate or resize (shrink or expand) and refill an input allocatable scalar string or array of rank ...
This module contains procedures and generic interfaces for resizing allocatable arrays of various typ...
- Warning
- The condition
all(0 <= ub - lb + 1)
must hold for the corresponding input argument (i.e., the size of the output array
must be non-negative).
The condition all(lbound(array) <= lbcold .and. lbcold <= ubound(array))
must hold for the corresponding input arguments.
The condition all(lbound(array) <= ubcold .and. ubcold <= ubound(array))
must hold for the corresponding input arguments.
The condition all(lb <= lbc)
must hold for the corresponding input arguments.
The condition all(lbc - lbcold + ubcold <= ub)
must hold for the corresponding input arguments (i.e., the upper bound(s) of contents cannot overflow the upper bound(s) of the new array).
The equality len(fill) == 1
must also hold if array
is of zero rank (i.e., a scalar string).
The equality len(fill) <= len(array)
must also hold if array
is of non-zero rank.
These conditions are verified only if the library is built with the preprocessor macro CHECK_ENABLED=1
.
-
The
pure
procedure(s) documented herein become impure
when the ParaMonte library is compiled with preprocessor macro CHECK_ENABLED=1
.
By default, these procedures are pure
in release
build and impure
in debug
and testing
builds.
- Note
- If the input
array
is unallocated, it will be allocated to the requested shape and filled entirely with fill
, equivalent to allocate(array(\@lb:ub), source = fill)
.
-
If the initialization of the new elements with
fill
is not necessary, use setResized to resize arrays without initialization.
-
The sole purpose of this generic interface is to provide a convenient but fast method of resizing allocatable arrays without losing the contents of the array and refilling the new elements with requested
fill
.
- Developer Remark:
- An optional dummy argument
stat
(instead of failed
) for the procedures of this generic interface are impossible as it creates ambiguous interfaces.
- See also
- setResized
setRebound
setRefilled
setRebilled
getCoreHalo
setCoreHalo
getCentered
setCentered
getPadded
setPadded
Example usage ⛓
6 call disp
%show(
'array'); \
7 call disp
%show( array , deliml
= SK_
"""" ); \
8 call disp
%show(
'lbound(array)'); \
9 call disp
%show(
lbound(array) ); \
10 call disp
%show(
'ubound(array)'); \
11 call disp
%show(
ubound(array) ); \
12 call disp
%show(
'fill'); \
13 call disp
%show( FILL , deliml
= SK_
"""" ); \
14 call disp
%show(
'lb'); \
15 call disp
%show( LB ); \
16 call disp
%show(
'ub'); \
17 call disp
%show( UB ); \
18 call disp
%show(
'call setRebilled(array, fill, lb, ub)'); \
20 call disp
%show(
'array'); \
21 call disp
%show( array , deliml
= SK_
"""" ); \
22 call disp
%show(
'lbound(array)'); \
23 call disp
%show(
lbound(array) ); \
24 call disp
%show(
'ubound(array)'); \
25 call disp
%show(
ubound(array) ); \
29#define REBILL_SHIFT_ARRAY \
33 call disp
%show(
'array'); \
34 call disp
%show( array , deliml
= SK_
"""" ); \
35 call disp
%show(
'lbound(array)'); \
36 call disp
%show(
lbound(array) ); \
37 call disp
%show(
'ubound(array)'); \
38 call disp
%show(
ubound(array) ); \
39 call disp
%show(
'fill'); \
40 call disp
%show( FILL , deliml
= SK_
"""" ); \
41 call disp
%show(
'lb'); \
42 call disp
%show( LB ); \
43 call disp
%show(
'ub'); \
44 call disp
%show( UB ); \
45 call disp
%show(
'lbc'); \
46 call disp
%show( LBC ); \
47 call disp
%show(
'call setRebilled(array, fill, lb, ub, lbc)'); \
49 call disp
%show(
'array'); \
50 call disp
%show( array , deliml
= SK_
"""" ); \
51 call disp
%show(
'lbound(array)'); \
52 call disp
%show(
lbound(array) ); \
53 call disp
%show(
'ubound(array)'); \
54 call disp
%show(
ubound(array) ); \
58#define REBILL_SHIFT_SUBSET_ARRAY \
62 call disp
%show(
'array'); \
63 call disp
%show( array , deliml
= SK_
"""" ); \
64 call disp
%show(
'lbound(array)'); \
65 call disp
%show(
lbound(array) ); \
66 call disp
%show(
'ubound(array)'); \
67 call disp
%show(
ubound(array) ); \
68 call disp
%show(
'fill'); \
69 call disp
%show( FILL , deliml
= SK_
"""" ); \
70 call disp
%show(
'lb'); \
71 call disp
%show( LB ); \
72 call disp
%show(
'ub'); \
73 call disp
%show( UB ); \
74 call disp
%show(
'lbc'); \
75 call disp
%show( LBC ); \
76 call disp
%show(
'lbcold'); \
77 call disp
%show( LBCOLD ); \
78 call disp
%show(
'ubcold'); \
79 call disp
%show( UBCOLD ); \
80 call disp
%show(
'call setRebilled(array, fill, lb, ub, lbc, lbcold, ubcold)'); \
81 call setRebilled(array, FILL, LB, UB, LBC, LBCOLD, UBCOLD) ; \
82 call disp
%show(
'array'); \
83 call disp
%show( array , deliml
= SK_
"""" ); \
84 call disp
%show(
'lbound(array)'); \
85 call disp
%show(
lbound(array) ); \
86 call disp
%show(
'ubound(array)'); \
87 call disp
%show(
ubound(array) ); \
103 type(display_type) :: disp
107 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
108 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
109 call disp%show(
"! Expand an array with specific lower and upper bounds.")
110 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
111 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
115 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%")
116 call disp%show(
"! Expand `character` vector.")
117 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%")
123#define DECLARE character(2,SKG), allocatable :: array(:)
124#define CONSTRUCT allocate(array(3:8)); array(:) = ["AA", "BB", "CC", "DD", "EE", "FF"]
128 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%")
129 call disp%show(
"! Expand `integer` vector.")
130 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%")
136#define DECLARE integer(IKG), allocatable :: array(:)
137#define CONSTRUCT allocate(array(3:8)); array(:) = [1, 2, 3, 4, 5, 6]
141 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%")
142 call disp%show(
"! Expand `logical` vector.")
143 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%")
148#define FILL .false._LKG
149#define DECLARE logical(LKG), allocatable :: array(:)
150#define CONSTRUCT allocate(array(3:8)); array(:) = [.true., .true., .true., .true., .true., .true.]
154 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%")
155 call disp%show(
"! Expand `complex` vector.")
156 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%")
161#define FILL cmplx(-9.,-9.,CKG)
162#define DECLARE complex(CKG), allocatable :: array(:)
163#define CONSTRUCT allocate(array(3:8)); array(:) = [(1., -1.), (2., -2.), (3., -3.), (4., -4.), (5., -5.), (6., -6.)]
167 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%")
168 call disp%show(
"! Expand `real` vector.")
169 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%")
175#define DECLARE real(RKG), allocatable :: array(:)
176#define CONSTRUCT allocate(array(3:8)); array(:) = [1., 2., 3., 4., 5., 6.]
180 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%")
181 call disp%show(
"! Expand `character` matrix.")
182 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%")
185#define LB [-1_IK, -1_IK]
186#define UB [+7_IK, +7_IK]
188#define DECLARE character(2,SKG), allocatable :: array(:,:)
189#define CONSTRUCT allocate(array(2:3,3:5)); array(:,:) = reshape(["AA", "BB", "CC", "DD", "EE", "FF"], shape = shape(array), order = [2, 1])
193 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%")
194 call disp%show(
"! Expand `character` cube.")
195 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%")
198#define LB [-1_IK, -1_IK, 1_IK]
199#define UB [+7_IK, +7_IK, 3_IK]
201#define DECLARE character(2,SKG), allocatable :: array(:,:,:)
202#define CONSTRUCT allocate(array(2:3,3:5,2:2)); array(:,:,:) = reshape(["AA", "BB", "CC", "DD", "EE", "FF"], shape = shape(array), order = [3, 2, 1])
206 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
207 call disp%show(
"! Expand `character` with partially-overlapping bounds.")
208 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
211#define LB [-1_IK, -1_IK]
212#define UB [+2_IK, +4_IK]
214#define DECLARE character(2,SKG), allocatable :: array(:,:)
215#define CONSTRUCT allocate(array(2:3,3:5)); array(:,:) = reshape(["AA", "BB", "CC", "DD", "EE", "FF"], shape = shape(array), order = [2, 1])
219 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
220 call disp%show(
"! Expand `character` with entirely new non-overlapping bounds.")
221 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
224#define LB [-1_IK, -1_IK]
225#define UB [+1_IK, +2_IK]
227#define DECLARE character(2,SKG), allocatable :: array(:,:)
228#define CONSTRUCT allocate(array(2:3,3:5)); array(:,:) = reshape(["AA", "BB", "CC", "DD", "EE", "FF"], shape = shape(array), order = [2, 1])
232 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
233 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
234 call disp%show(
"! Expand an array and shift its contents.")
235 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
236 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
240 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
241 call disp%show(
"! Expand and shift `character` vector.")
242 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
249#define DECLARE character(2,SKG), allocatable :: array(:)
250#define CONSTRUCT allocate(array(3:8)); array(:) = ["AA", "BB", "CC", "DD", "EE", "FF"]
254 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
255 call disp%show(
"! Expand and shift `character` matrix.")
256 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
259#define LB [+5_IK, +5_IK]
260#define UB [10_IK, 10_IK]
261#define LBC [7_IK, 7_IK]
263#define DECLARE character(2,SKG), allocatable :: array(:,:)
264#define CONSTRUCT allocate(array(2:3,3:5)); array(:,:) = reshape(["AA", "BB", "CC", "DD", "EE", "FF"], shape = shape(array), order = [2, 1])
268 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
269 call disp%show(
"! Expand and shift `character` cube.")
270 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
273#define LB [+5_IK, +5_IK, 1_IK]
274#define UB [10_IK, 10_IK, 2_IK]
275#define LBC [7_IK, 7_IK, 2_IK]
277#define DECLARE character(2,SKG), allocatable :: array(:,:,:)
278#define CONSTRUCT allocate(array(1:2,1:3,1:1)); array(:,:,:) = reshape(["AA", "BB", "CC", "DD", "EE", "FF"], shape = shape(array), order = [3, 2, 1])
282 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
283 call disp%show(
"! Expand and shift `character` with partially-overlapping bounds.")
284 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
287#define LB [-1_IK, -1_IK]
288#define UB [+2_IK, +4_IK]
289#define LBC [0_IK, 0_IK]
291#define DECLARE character(2,SKG), allocatable :: array(:,:)
292#define CONSTRUCT allocate(array(2:3,3:5)); array(:,:) = reshape(["AA", "BB", "CC", "DD", "EE", "FF"], shape = shape(array), order = [2, 1])
296 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
297 call disp%show(
"! Expand and shift `character` with entirely new non-overlapping bounds.")
298 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
301#define LB [-1_IK, -1_IK]
302#define UB [+1_IK, +2_IK]
303#define LBC [-1_IK, 1_IK]
305#define DECLARE character(2,SKG), allocatable :: array(:,:)
306#define CONSTRUCT allocate(array(2:3,3:5)); array(:,:) = reshape(["AA", "BB", "CC", "DD", "EE", "FF"], shape = shape(array), order = [2, 1])
310 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
311 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
312 call disp%show(
"! Expand an array and shift a subset of its contents.")
313 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
314 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
318 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
319 call disp%show(
"! Expand and shift `character` vector.")
320 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
329#define DECLARE character(2,SKG), allocatable :: array(:)
330#define CONSTRUCT allocate(array(3:8)); array(:) = ["AA", "BB", "CC", "DD", "EE", "FF"]
331REBILL_SHIFT_SUBSET_ARRAY
334 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
335 call disp%show(
"! Expand and shift `character` matrix.")
336 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
339#define LB [1_IK, 3_IK]
340#define UB [2_IK, 4_IK]
341#define LBC [1_IK, 3_IK]
342#define LBCOLD [2_IK, 4_IK]
343#define UBCOLD [3_IK, 5_IK]
345#define DECLARE character(2,SKG), allocatable :: array(:,:)
346#define CONSTRUCT allocate(array(2:3,3:5)); array(:,:) = reshape(["AA", "BB", "CC", "DD", "EE", "FF"], shape = shape(array), order = [2, 1])
347REBILL_SHIFT_SUBSET_ARRAY
350 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
351 call disp%show(
"! Expand and shift `character` cube.")
352 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
355#define LB [1_IK, 2_IK, 3_IK]
356#define UB [2_IK, 3_IK, 5_IK]
357#define LBC [1_IK, 2_IK, 4_IK]
358#define LBCOLD [1_IK, 2_IK, 2_IK]
359#define UBCOLD [2_IK, 3_IK, 2_IK]
361#define DECLARE character(2,SKG), allocatable :: array(:,:,:)
362#define CONSTRUCT allocate(array(1:2,1:3,1:2)); array(:,:,:) = reshape(["AA", "BB", "CC", "DD", "EE", "FF", "GG", "HH", "II", "JJ", "KK", "LL"], shape = shape(array), order = [3, 2, 1])
363REBILL_SHIFT_SUBSET_ARRAY
This is a generic method of the derived type display_type with pass attribute.
This is a generic method of the derived type display_type with pass attribute.
This module contains classes and procedures for input/output (IO) or generic display operations on st...
type(display_type) disp
This is a scalar module variable an object of type display_type for general display.
This module defines the relevant Fortran kind type-parameters frequently used in the ParaMonte librar...
integer, parameter RK
The default real kind in the ParaMonte library: real64 in Fortran, c_double in C-Fortran Interoperati...
integer, parameter LK
The default logical kind in the ParaMonte library: kind(.true.) in Fortran, kind(....
integer, parameter CK
The default complex kind in the ParaMonte library: real64 in Fortran, c_double_complex in C-Fortran I...
integer, parameter IK
The default integer kind in the ParaMonte library: int32 in Fortran, c_int32_t in C-Fortran Interoper...
integer, parameter SK
The default character kind in the ParaMonte library: kind("a") in Fortran, c_char in C-Fortran Intero...
Generate and return an object of type display_type.
Example Unix compile command via Intel ifort
compiler ⛓
3ifort -fpp -standard-semantics -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
Example Windows Batch compile command via Intel ifort
compiler ⛓
2set PATH=..\..\..\lib;%PATH%
3ifort /fpp /standard-semantics /O3 /I:..\..\..\include main.F90 ..\..\..\lib\libparamonte*.lib /exe:main.exe
Example Unix / MinGW compile command via GNU gfortran
compiler ⛓
3gfortran -cpp -ffree-line-length-none -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
Example output ⛓
14"AA",
"BB",
"CC",
"DD",
"EE",
"FF"
27"--",
"AA",
"BB",
"CC",
"DD",
"EE",
"FF",
"--",
"--"
38"+1",
"+2",
"+3",
"+4",
"+5",
"+6"
51"-3",
"+1",
"+2",
"+3",
"+4",
"+5",
"+6",
"-3",
"-3"
62"T",
"T",
"T",
"T",
"T",
"T"
75"F",
"T",
"T",
"T",
"T",
"T",
"T",
"F",
"F"
86"+1.0000000000000000, -1.0000000000000000",
"+2.0000000000000000, -2.0000000000000000",
"+3.0000000000000000, -3.0000000000000000",
"+4.0000000000000000, -4.0000000000000000",
"+5.0000000000000000, -5.0000000000000000",
"+6.0000000000000000, -6.0000000000000000"
92"-9.0000000000000000, -9.0000000000000000"
99"-9.0000000000000000, -9.0000000000000000",
"+1.0000000000000000, -1.0000000000000000",
"+2.0000000000000000, -2.0000000000000000",
"+3.0000000000000000, -3.0000000000000000",
"+4.0000000000000000, -4.0000000000000000",
"+5.0000000000000000, -5.0000000000000000",
"+6.0000000000000000, -6.0000000000000000",
"-9.0000000000000000, -9.0000000000000000",
"-9.0000000000000000, -9.0000000000000000"
110"+1.0000000000000000",
"+2.0000000000000000",
"+3.0000000000000000",
"+4.0000000000000000",
"+5.0000000000000000",
"+6.0000000000000000"
123"-1.0000000000000000",
"+1.0000000000000000",
"+2.0000000000000000",
"+3.0000000000000000",
"+4.0000000000000000",
"+5.0000000000000000",
"+6.0000000000000000",
"-1.0000000000000000",
"-1.0000000000000000"
148"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
149"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
150"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
151"--",
"--",
"--",
"--",
"AA",
"BB",
"CC",
"--",
"--"
152"--",
"--",
"--",
"--",
"DD",
"EE",
"FF",
"--",
"--"
153"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
154"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
155"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
156"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
183"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
184"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
185"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
186"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
187"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
188"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
189"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
190"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
191"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
193"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
194"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
195"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
196"--",
"--",
"--",
"--",
"AA",
"BB",
"CC",
"--",
"--"
197"--",
"--",
"--",
"--",
"DD",
"EE",
"FF",
"--",
"--"
198"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
199"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
200"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
201"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
203"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
204"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
205"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
206"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
207"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
208"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
209"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
210"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
211"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
236"--",
"--",
"--",
"--",
"--",
"--"
237"--",
"--",
"--",
"--",
"--",
"--"
238"--",
"--",
"--",
"--",
"--",
"--"
239"--",
"--",
"--",
"--",
"AA",
"BB"
264"--",
"--",
"--",
"--"
265"--",
"--",
"--",
"--"
266"--",
"--",
"--",
"--"
284"AA",
"BB",
"CC",
"DD",
"EE",
"FF"
299"AA",
"BB",
"CC",
"DD",
"EE",
"FF",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
326"--",
"--",
"--",
"--",
"--",
"--"
327"--",
"--",
"--",
"--",
"--",
"--"
328"--",
"--",
"--",
"--",
"--",
"--"
329"--",
"--",
"--",
"--",
"--",
"--"
330"--",
"--",
"--",
"--",
"--",
"--"
331"--",
"--",
"--",
"--",
"--",
"--"
360"--",
"--",
"--",
"--",
"--",
"--"
361"--",
"--",
"--",
"--",
"--",
"--"
362"--",
"--",
"--",
"--",
"--",
"--"
363"--",
"--",
"--",
"--",
"--",
"--"
364"--",
"--",
"--",
"--",
"--",
"--"
365"--",
"--",
"--",
"--",
"--",
"--"
367"--",
"--",
"--",
"--",
"--",
"--"
368"--",
"--",
"--",
"--",
"--",
"--"
369"--",
"--",
"--",
"--",
"--",
"--"
370"--",
"--",
"--",
"--",
"--",
"--"
371"--",
"--",
"--",
"--",
"--",
"--"
372"--",
"--",
"--",
"--",
"--",
"--"
399"--",
"--",
"--",
"--",
"--",
"--"
400"--",
"AA",
"BB",
"CC",
"--",
"--"
401"--",
"DD",
"EE",
"FF",
"--",
"--"
402"--",
"--",
"--",
"--",
"--",
"--"
429"--",
"--",
"AA",
"BB"
430"--",
"--",
"DD",
"EE"
431"--",
"--",
"--",
"--"
449"AA",
"BB",
"CC",
"DD",
"EE",
"FF"
466call setRebilled(array, fill, lb, ub, lbc, lbcold, ubcold)
468"CC",
"DD",
"EE",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--",
"--"
497call setRebilled(array, fill, lb, ub, lbc, lbcold, ubcold)
533call setRebilled(array, fill, lb, ub, lbc, lbcold, ubcold)
- Test:
- test_pm_arrayRebill
- Todo:
- Very Low Priority: This generic interface can be extended to arrays of higher ranks.
- Todo:
- Normal Priority: This generic interface should be extended to arrays of container type as done in pm_arrayResize.
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
-
If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
-
If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
- Copyright
- Computational Data Science Lab
- Author:
- Amir Shahmoradi, September 1, 2017, 12:00 AM, Institute for Computational Engineering and Sciences (ICES), The University of Texas Austin
Definition at line 214 of file pm_arrayRebill.F90.