|
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
misc.h File Reference Detailed Descriptioninternal miscellaneous methods Definition in file misc.h. #include "scip/def.h"#include "blockmemshell/memory.h"#include "scip/type_retcode.h"#include "scip/type_set.h"#include "scip/type_misc.h"#include "scip/pub_misc.h"Go to the source code of this file. Function Documentation
creates a dynamic array of real values
Definition at line 2354 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPcreateRealarray(), SCIPrealarrayCopy(), SCIPsolCreate(), SCIPsolCreateOriginal(), and SCIPsolCreateUnknown().
creates a copy of a dynamic array of real values
Definition at line 2374 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_RealArray::firstidx, SCIP_RealArray::maxusedidx, SCIP_RealArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPrealarrayCreate(), SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPsolCopy().
frees a dynamic array of real values
Definition at line 2398 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreeRealarray(), and SCIPsolFree().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 2412 of file misc.c. References SCIP_RealArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_RealArray::firstidx, MAX, SCIP_RealArray::maxusedidx, MIN, SCIP_RealArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPextendRealarray(), SCIPlpSumRows(), and SCIPrealarraySetVal().
clears a dynamic real array
Definition at line 2567 of file misc.c. References BMSclearMemoryArray, SCIP_RealArray::firstidx, SCIP_RealArray::maxusedidx, SCIP_RealArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPclearRealarray(), and SCIPlpSumRows().
gets value of entry in dynamic array
Definition at line 2598 of file misc.c. References SCIP_RealArray::firstidx, SCIP_RealArray::maxusedidx, NULL, SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPgetRealarrayVal(), SCIPrealarrayIncVal(), solGetArrayVal(), and solIncArrayVal().
sets value of entry in dynamic array
Definition at line 2619 of file misc.c. References SCIP_RealArray::firstidx, MAX, SCIP_RealArray::maxusedidx, MIN, SCIP_RealArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPrealarrayExtend(), SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPrealarrayIncVal(), SCIPsetRealarrayVal(), solIncArrayVal(), and solSetArrayVal().
increases value of entry in dynamic array
Definition at line 2688 of file misc.c. References SCIP_INVALID, SCIP_OKAY, SCIP_Real, SCIPrealarrayGetVal(), and SCIPrealarraySetVal(). Referenced by SCIPincRealarrayVal(), SCIPlpSumRows(), and solIncArrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 2706 of file misc.c. References SCIP_RealArray::minusedidx, and NULL. Referenced by SCIPgetRealarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 2716 of file misc.c. References SCIP_RealArray::maxusedidx, and NULL. Referenced by SCIPgetRealarrayMaxIdx().
creates a dynamic array of int values
Definition at line 2726 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPcreateIntarray(), and SCIPintarrayCopy().
creates a copy of a dynamic array of int values
Definition at line 2746 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_IntArray::firstidx, SCIP_IntArray::maxusedidx, SCIP_IntArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPintarrayCreate(), SCIP_IntArray::vals, and SCIP_IntArray::valssize.
frees a dynamic array of int values
Definition at line 2769 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreeIntarray().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 2783 of file misc.c. References SCIP_IntArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_IntArray::firstidx, MAX, SCIP_IntArray::maxusedidx, MIN, SCIP_IntArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPdebugMessage, SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPextendIntarray(), and SCIPintarraySetVal().
clears a dynamic int array
Definition at line 2938 of file misc.c. References BMSclearMemoryArray, SCIP_IntArray::firstidx, SCIP_IntArray::maxusedidx, SCIP_IntArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPclearIntarray().
gets value of entry in dynamic array
Definition at line 2969 of file misc.c. References SCIP_IntArray::firstidx, SCIP_IntArray::maxusedidx, NULL, SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPgetIntarrayVal(), and SCIPintarrayIncVal().
sets value of entry in dynamic array
Definition at line 2990 of file misc.c. References SCIP_IntArray::firstidx, MAX, SCIP_IntArray::maxusedidx, MIN, SCIP_IntArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPintarrayExtend(), SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPintarrayIncVal(), and SCIPsetIntarrayVal().
increases value of entry in dynamic array
Definition at line 3058 of file misc.c. References SCIPintarrayGetVal(), and SCIPintarraySetVal(). Referenced by SCIPincIntarrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 3070 of file misc.c. References SCIP_IntArray::minusedidx, and NULL. Referenced by SCIPgetIntarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 3080 of file misc.c. References SCIP_IntArray::maxusedidx, and NULL. Referenced by SCIPgetIntarrayMaxIdx().
creates a dynamic array of bool values
Definition at line 3091 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPboolarrayCopy(), SCIPcreateBoolarray(), SCIPsolCreate(), SCIPsolCreateOriginal(), and SCIPsolCreateUnknown().
creates a copy of a dynamic array of bool values
Definition at line 3111 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_BoolArray::firstidx, SCIP_BoolArray::maxusedidx, SCIP_BoolArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPboolarrayCreate(), SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPsolCopy().
frees a dynamic array of bool values
Definition at line 3135 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreeBoolarray(), and SCIPsolFree().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 3149 of file misc.c. References SCIP_BoolArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, BMSmoveMemoryArray, calcGrowSize(), FALSE, SCIP_BoolArray::firstidx, MAX, SCIP_BoolArray::maxusedidx, MIN, SCIP_BoolArray::minusedidx, NULL, SCIP_ALLOC, SCIP_Bool, SCIP_OKAY, SCIPdebugMessage, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPboolarraySetVal(), and SCIPextendBoolarray().
clears a dynamic bool array
Definition at line 3306 of file misc.c. References BMSclearMemoryArray, SCIP_BoolArray::firstidx, SCIP_BoolArray::maxusedidx, SCIP_BoolArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPclearBoolarray(), and solClearArrays().
gets value of entry in dynamic array
Definition at line 3337 of file misc.c. References FALSE, SCIP_BoolArray::firstidx, SCIP_BoolArray::maxusedidx, NULL, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPgetBoolarrayVal(), solGetArrayVal(), solIncArrayVal(), and solUnlinkVar().
sets value of entry in dynamic array
Definition at line 3358 of file misc.c. References FALSE, SCIP_BoolArray::firstidx, MAX, SCIP_BoolArray::maxusedidx, MIN, SCIP_BoolArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPboolarrayExtend(), SCIPdebugMessage, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPsetBoolarrayVal(), solIncArrayVal(), and solSetArrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 3426 of file misc.c. References SCIP_BoolArray::minusedidx, and NULL. Referenced by SCIPgetBoolarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 3436 of file misc.c. References SCIP_BoolArray::maxusedidx, and NULL. Referenced by SCIPgetBoolarrayMaxIdx().
creates a dynamic array of pointer values
Definition at line 3447 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPcreatePtrarray(), and SCIPptrarrayCopy().
creates a copy of a dynamic array of pointer values
Definition at line 3467 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_PtrArray::firstidx, SCIP_PtrArray::maxusedidx, SCIP_PtrArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPptrarrayCreate(), SCIP_PtrArray::vals, and SCIP_PtrArray::valssize.
frees a dynamic array of pointer values
Definition at line 3490 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreePtrarray().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 3504 of file misc.c. References SCIP_PtrArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_PtrArray::firstidx, MAX, SCIP_PtrArray::maxusedidx, MIN, SCIP_PtrArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPdebugMessage, SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPextendPtrarray(), and SCIPptrarraySetVal().
clears a dynamic pointer array
Definition at line 3659 of file misc.c. References BMSclearMemoryArray, SCIP_PtrArray::firstidx, SCIP_PtrArray::maxusedidx, SCIP_PtrArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPclearPtrarray().
gets value of entry in dynamic array
Definition at line 3690 of file misc.c. References SCIP_PtrArray::firstidx, SCIP_PtrArray::maxusedidx, NULL, SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPgetPtrarrayVal().
sets value of entry in dynamic array
Definition at line 3711 of file misc.c. References SCIP_PtrArray::firstidx, MAX, SCIP_PtrArray::maxusedidx, MIN, SCIP_PtrArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPptrarrayExtend(), SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPsetPtrarrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 3779 of file misc.c. References SCIP_PtrArray::minusedidx, and NULL. Referenced by SCIPgetPtrarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 3789 of file misc.c. References SCIP_PtrArray::maxusedidx, and NULL. Referenced by SCIPgetPtrarrayMaxIdx(). |