File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 79787978 *  - SCIPallocMemory(), SCIPallocMemoryArray() to allocate memory,
79797979 *  - SCIPfreeMemory(), SCIPfreeMemoryArray() to free memory.
79807980 *
7981+  *  @section REALLOCATION Reallocating memory
7982+  *
7983+  *  - `SCIPensureBlockMemoryArray()`: Extends a dynamically allocated block memory array to be able to store at least the given
7984+  *    number of elements. This method ensures that the array is resized efficiently by calculating an appropriate new size. This can be
7985+  *    useful to build data structures that grow dynamically.
7986+  *
7987+  *  - `SCIPreallocBlockMemoryArray()`, `SCIPreallocBufferArray()`, `SCIPreallocMemoryArray()`: Reallocate memory arrays to a specific
7988+  *    new size. These are useful when you already know the exact new size needed, for instance when managing multiple arrays of the
7989+  *    same size or when you want to compute the new size once and apply it to multiple arrays. Unlike the ensure* functions, these
7990+  *    give you direct control over the array size.
7991+  *
79817992 *  @n
79827993 *  @section MEMBESTPRACTICE Best Practice of Using Memory Functions
79837994 *
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments