GEOS-DEV / LvArray

Portable HPC Containers (C++)
BSD 3-Clause "New" or "Revised" License
47 stars 10 forks source link

Remove m_singleParameterResizeIndex from ArrayView to reduce memory. #311

Closed dkachuma closed 7 months ago

dkachuma commented 8 months ago

There is a loss of some functionality here. In examples/exampleArray.cpp for instance, you could do

LvArray::Array< int > array( 5, 6 );
array.setSingleParameterResizeIndex( 1 );
array.resize( 3 );

which would reshape the array to 5x3. This cannot be done anymore.