tbeu / matio

MATLAB MAT File I/O Library
https://matio.sourceforge.io
BSD 2-Clause "Simplified" License
334 stars 97 forks source link

mat73.c: Allocation of dimension array #70

Closed tbeu closed 6 years ago

tbeu commented 7 years ago

The max default dimension for HDF5-based MAT variables was changed from stack allocation to heap allocation by dec7a79e8037fd26d983e35222a0c7e7b729d84c. A better idea is to have some kind of (configurable) max. dimension for stack allocation. e.g., if rank is less than or equal to 3 stack allocation is used, whereas higher-dimensional arrays utilize dynamic allocation (heap).