methods for the creation and access of dynamic arrays
| SCIP_RETCODE SCIPcreateRealarray | ( | SCIP * | scip, |
| SCIP_REALARRAY ** | realarray | ||
| ) |
creates a dynamic array of real values
| scip | SCIP data structure |
| realarray | pointer to store the real array |
Definition at line 47864 of file scip.c.
References SCIP_CALL, SCIP_OKAY, SCIPblkmem(), and SCIPrealarrayCreate().
| SCIP_RETCODE SCIPfreeRealarray | ( | SCIP * | scip, |
| SCIP_REALARRAY ** | realarray | ||
| ) |
frees a dynamic array of real values
| scip | SCIP data structure |
| realarray | pointer to the real array |
Definition at line 47881 of file scip.c.
References SCIP_CALL, SCIP_OKAY, and SCIPrealarrayFree().
| SCIP_RETCODE SCIPextendRealarray | ( | SCIP * | scip, |
| SCIP_REALARRAY * | realarray, | ||
| int | minidx, | ||
| int | maxidx | ||
| ) |
extends dynamic array to be able to store indices from minidx to maxidx
| scip | SCIP data structure |
| realarray | dynamic real array |
| minidx | smallest index to allocate storage for |
| maxidx | largest index to allocate storage for |
Definition at line 47898 of file scip.c.
References SCIP_Set::mem_arraygrowfac, SCIP_Set::mem_arraygrowinit, SCIP_CALL, SCIP_OKAY, SCIPrealarrayExtend(), and Scip::set.
| SCIP_RETCODE SCIPclearRealarray | ( | SCIP * | scip, |
| SCIP_REALARRAY * | realarray | ||
| ) |
clears a dynamic real array
clears a dynamic real array
| scip | SCIP data structure |
| realarray | dynamic real array |
Definition at line 47917 of file scip.c.
References SCIP_CALL, SCIP_OKAY, and SCIPrealarrayClear().
| SCIP_Real SCIPgetRealarrayVal | ( | SCIP * | scip, |
| SCIP_REALARRAY * | realarray, | ||
| int | idx | ||
| ) |
gets value of entry in dynamic array
gets value of entry in dynamic array
| scip | SCIP data structure |
| realarray | dynamic real array |
| idx | array index to get value for |
Definition at line 47933 of file scip.c.
References SCIPrealarrayGetVal().
| SCIP_RETCODE SCIPsetRealarrayVal | ( | SCIP * | scip, |
| SCIP_REALARRAY * | realarray, | ||
| int | idx, | ||
| SCIP_Real | val | ||
| ) |
sets value of entry in dynamic array
| scip | SCIP data structure |
| realarray | dynamic real array |
| idx | array index to set value for |
| val | value to set array index to |
Definition at line 47949 of file scip.c.
References SCIP_Set::mem_arraygrowfac, SCIP_Set::mem_arraygrowinit, SCIP_CALL, SCIP_OKAY, SCIPrealarraySetVal(), and Scip::set.
| SCIP_RETCODE SCIPincRealarrayVal | ( | SCIP * | scip, |
| SCIP_REALARRAY * | realarray, | ||
| int | idx, | ||
| SCIP_Real | incval | ||
| ) |
increases value of entry in dynamic array
| scip | SCIP data structure |
| realarray | dynamic real array |
| idx | array index to increase value for |
| incval | value to increase array index |
Definition at line 47968 of file scip.c.
References SCIP_Set::mem_arraygrowfac, SCIP_Set::mem_arraygrowinit, SCIP_CALL, SCIP_OKAY, SCIPrealarrayIncVal(), and Scip::set.
| int SCIPgetRealarrayMinIdx | ( | SCIP * | scip, |
| SCIP_REALARRAY * | realarray | ||
| ) |
returns the minimal index of all stored non-zero elements
| scip | SCIP data structure |
| realarray | dynamic real array |
Definition at line 47986 of file scip.c.
References SCIPrealarrayGetMinIdx().
| int SCIPgetRealarrayMaxIdx | ( | SCIP * | scip, |
| SCIP_REALARRAY * | realarray | ||
| ) |
returns the maximal index of all stored non-zero elements
| scip | SCIP data structure |
| realarray | dynamic real array |
Definition at line 48000 of file scip.c.
References SCIPrealarrayGetMaxIdx().
| SCIP_RETCODE SCIPcreateIntarray | ( | SCIP * | scip, |
| SCIP_INTARRAY ** | intarray | ||
| ) |
creates a dynamic array of int values
| scip | SCIP data structure |
| intarray | pointer to store the int array |
Definition at line 48015 of file scip.c.
References SCIP_CALL, SCIP_OKAY, SCIPblkmem(), and SCIPintarrayCreate().
| SCIP_RETCODE SCIPfreeIntarray | ( | SCIP * | scip, |
| SCIP_INTARRAY ** | intarray | ||
| ) |
frees a dynamic array of int values
| scip | SCIP data structure |
| intarray | pointer to the int array |
Definition at line 48032 of file scip.c.
References SCIP_CALL, SCIP_OKAY, and SCIPintarrayFree().
| SCIP_RETCODE SCIPextendIntarray | ( | SCIP * | scip, |
| SCIP_INTARRAY * | intarray, | ||
| int | minidx, | ||
| int | maxidx | ||
| ) |
extends dynamic array to be able to store indices from minidx to maxidx
| scip | SCIP data structure |
| intarray | dynamic int array |
| minidx | smallest index to allocate storage for |
| maxidx | largest index to allocate storage for |
Definition at line 48049 of file scip.c.
References SCIP_Set::mem_arraygrowfac, SCIP_Set::mem_arraygrowinit, SCIP_CALL, SCIP_OKAY, SCIPintarrayExtend(), and Scip::set.
| SCIP_RETCODE SCIPclearIntarray | ( | SCIP * | scip, |
| SCIP_INTARRAY * | intarray | ||
| ) |
clears a dynamic int array
| scip | SCIP data structure |
| intarray | dynamic int array |
Definition at line 48068 of file scip.c.
References SCIP_CALL, SCIP_OKAY, and SCIPintarrayClear().
| int SCIPgetIntarrayVal | ( | SCIP * | scip, |
| SCIP_INTARRAY * | intarray, | ||
| int | idx | ||
| ) |
gets value of entry in dynamic array
| scip | SCIP data structure |
| intarray | dynamic int array |
| idx | array index to get value for |
Definition at line 48084 of file scip.c.
References SCIPintarrayGetVal().
| SCIP_RETCODE SCIPsetIntarrayVal | ( | SCIP * | scip, |
| SCIP_INTARRAY * | intarray, | ||
| int | idx, | ||
| int | val | ||
| ) |
sets value of entry in dynamic array
| scip | SCIP data structure |
| intarray | dynamic int array |
| idx | array index to set value for |
| val | value to set array index to |
Definition at line 48100 of file scip.c.
References SCIP_Set::mem_arraygrowfac, SCIP_Set::mem_arraygrowinit, SCIP_CALL, SCIP_OKAY, SCIPintarraySetVal(), and Scip::set.
| SCIP_RETCODE SCIPincIntarrayVal | ( | SCIP * | scip, |
| SCIP_INTARRAY * | intarray, | ||
| int | idx, | ||
| int | incval | ||
| ) |
increases value of entry in dynamic array
| scip | SCIP data structure |
| intarray | dynamic int array |
| idx | array index to increase value for |
| incval | value to increase array index |
Definition at line 48119 of file scip.c.
References SCIP_Set::mem_arraygrowfac, SCIP_Set::mem_arraygrowinit, SCIP_CALL, SCIP_OKAY, SCIPintarrayIncVal(), and Scip::set.
| int SCIPgetIntarrayMinIdx | ( | SCIP * | scip, |
| SCIP_INTARRAY * | intarray | ||
| ) |
returns the minimal index of all stored non-zero elements
| scip | SCIP data structure |
| intarray | dynamic int array |
Definition at line 48137 of file scip.c.
References SCIPintarrayGetMinIdx().
| int SCIPgetIntarrayMaxIdx | ( | SCIP * | scip, |
| SCIP_INTARRAY * | intarray | ||
| ) |
returns the maximal index of all stored non-zero elements
| scip | SCIP data structure |
| intarray | dynamic int array |
Definition at line 48151 of file scip.c.
References SCIPintarrayGetMaxIdx().
| SCIP_RETCODE SCIPcreateBoolarray | ( | SCIP * | scip, |
| SCIP_BOOLARRAY ** | boolarray | ||
| ) |
creates a dynamic array of bool values
| scip | SCIP data structure |
| boolarray | pointer to store the bool array |
Definition at line 48166 of file scip.c.
References SCIP_CALL, SCIP_OKAY, SCIPblkmem(), and SCIPboolarrayCreate().
| SCIP_RETCODE SCIPfreeBoolarray | ( | SCIP * | scip, |
| SCIP_BOOLARRAY ** | boolarray | ||
| ) |
frees a dynamic array of bool values
| scip | SCIP data structure |
| boolarray | pointer to the bool array |
Definition at line 48183 of file scip.c.
References SCIP_CALL, SCIP_OKAY, and SCIPboolarrayFree().
| SCIP_RETCODE SCIPextendBoolarray | ( | SCIP * | scip, |
| SCIP_BOOLARRAY * | boolarray, | ||
| int | minidx, | ||
| int | maxidx | ||
| ) |
extends dynamic array to be able to store indices from minidx to maxidx
| scip | SCIP data structure |
| boolarray | dynamic bool array |
| minidx | smallest index to allocate storage for |
| maxidx | largest index to allocate storage for |
Definition at line 48200 of file scip.c.
References SCIP_Set::mem_arraygrowfac, SCIP_Set::mem_arraygrowinit, SCIP_CALL, SCIP_OKAY, SCIPboolarrayExtend(), and Scip::set.
| SCIP_RETCODE SCIPclearBoolarray | ( | SCIP * | scip, |
| SCIP_BOOLARRAY * | boolarray | ||
| ) |
clears a dynamic bool array
| scip | SCIP data structure |
| boolarray | dynamic bool array |
Definition at line 48219 of file scip.c.
References SCIP_CALL, SCIP_OKAY, and SCIPboolarrayClear().
| SCIP_Bool SCIPgetBoolarrayVal | ( | SCIP * | scip, |
| SCIP_BOOLARRAY * | boolarray, | ||
| int | idx | ||
| ) |
gets value of entry in dynamic array
| scip | SCIP data structure |
| boolarray | dynamic bool array |
| idx | array index to get value for |
Definition at line 48235 of file scip.c.
References SCIPboolarrayGetVal().
| SCIP_RETCODE SCIPsetBoolarrayVal | ( | SCIP * | scip, |
| SCIP_BOOLARRAY * | boolarray, | ||
| int | idx, | ||
| SCIP_Bool | val | ||
| ) |
sets value of entry in dynamic array
| scip | SCIP data structure |
| boolarray | dynamic bool array |
| idx | array index to set value for |
| val | value to set array index to |
Definition at line 48251 of file scip.c.
References SCIP_Set::mem_arraygrowfac, SCIP_Set::mem_arraygrowinit, SCIP_CALL, SCIP_OKAY, SCIPboolarraySetVal(), and Scip::set.
| int SCIPgetBoolarrayMinIdx | ( | SCIP * | scip, |
| SCIP_BOOLARRAY * | boolarray | ||
| ) |
returns the minimal index of all stored non-zero elements
| scip | SCIP data structure |
| boolarray | dynamic bool array |
Definition at line 48269 of file scip.c.
References SCIPboolarrayGetMinIdx().
| int SCIPgetBoolarrayMaxIdx | ( | SCIP * | scip, |
| SCIP_BOOLARRAY * | boolarray | ||
| ) |
returns the maximal index of all stored non-zero elements
| scip | SCIP data structure |
| boolarray | dynamic bool array |
Definition at line 48283 of file scip.c.
References SCIPboolarrayGetMaxIdx().
| SCIP_RETCODE SCIPcreatePtrarray | ( | SCIP * | scip, |
| SCIP_PTRARRAY ** | ptrarray | ||
| ) |
creates a dynamic array of pointers
| scip | SCIP data structure |
| ptrarray | pointer to store the int array |
Definition at line 48298 of file scip.c.
References SCIP_CALL, SCIP_OKAY, SCIPblkmem(), and SCIPptrarrayCreate().
| SCIP_RETCODE SCIPfreePtrarray | ( | SCIP * | scip, |
| SCIP_PTRARRAY ** | ptrarray | ||
| ) |
frees a dynamic array of pointers
| scip | SCIP data structure |
| ptrarray | pointer to the int array |
Definition at line 48315 of file scip.c.
References SCIP_CALL, SCIP_OKAY, and SCIPptrarrayFree().
| SCIP_RETCODE SCIPextendPtrarray | ( | SCIP * | scip, |
| SCIP_PTRARRAY * | ptrarray, | ||
| int | minidx, | ||
| int | maxidx | ||
| ) |
extends dynamic array to be able to store indices from minidx to maxidx
| scip | SCIP data structure |
| ptrarray | dynamic int array |
| minidx | smallest index to allocate storage for |
| maxidx | largest index to allocate storage for |
Definition at line 48332 of file scip.c.
References SCIP_Set::mem_arraygrowfac, SCIP_Set::mem_arraygrowinit, SCIP_CALL, SCIP_OKAY, SCIPptrarrayExtend(), and Scip::set.
| SCIP_RETCODE SCIPclearPtrarray | ( | SCIP * | scip, |
| SCIP_PTRARRAY * | ptrarray | ||
| ) |
clears a dynamic pointer array
| scip | SCIP data structure |
| ptrarray | dynamic int array |
Definition at line 48351 of file scip.c.
References SCIP_CALL, SCIP_OKAY, and SCIPptrarrayClear().
| void* SCIPgetPtrarrayVal | ( | SCIP * | scip, |
| SCIP_PTRARRAY * | ptrarray, | ||
| int | idx | ||
| ) |
gets value of entry in dynamic array
| scip | SCIP data structure |
| ptrarray | dynamic int array |
| idx | array index to get value for |
Definition at line 48364 of file scip.c.
References SCIPptrarrayGetVal().
| SCIP_RETCODE SCIPsetPtrarrayVal | ( | SCIP * | scip, |
| SCIP_PTRARRAY * | ptrarray, | ||
| int | idx, | ||
| void * | val | ||
| ) |
sets value of entry in dynamic array
| scip | SCIP data structure |
| ptrarray | dynamic int array |
| idx | array index to set value for |
| val | value to set array index to |
Definition at line 48380 of file scip.c.
References SCIP_Set::mem_arraygrowfac, SCIP_Set::mem_arraygrowinit, SCIP_CALL, SCIP_OKAY, SCIPptrarraySetVal(), and Scip::set.
| int SCIPgetPtrarrayMinIdx | ( | SCIP * | scip, |
| SCIP_PTRARRAY * | ptrarray | ||
| ) |
returns the minimal index of all stored non-zero elements
| scip | SCIP data structure |
| ptrarray | dynamic ptr array |
Definition at line 48398 of file scip.c.
References SCIPptrarrayGetMinIdx().
| int SCIPgetPtrarrayMaxIdx | ( | SCIP * | scip, |
| SCIP_PTRARRAY * | ptrarray | ||
| ) |
returns the maximal index of all stored non-zero elements
| scip | SCIP data structure |
| ptrarray | dynamic ptr array |
Definition at line 48412 of file scip.c.
References SCIPptrarrayGetMaxIdx().