EMS-TU-Ilmenau / fastmat

A library to build up lazily evaluated expressions of linear transforms for efficient scientific computing.
https://fastmat.readthedocs.io
Apache License 2.0
24 stars 8 forks source link

core.getMemoryFootprint does not handle ndarrays of dtype `object` and structured dtypes correctly #77

Open ChristophWWagner opened 4 years ago

ChristophWWagner commented 4 years ago

The proposed way to solve this is to scan default and structured data types for occurances of object and then to recurse into that.

However, this is not critical for its usage in fastmat yet, so it is just a polishing/enhancement thing for now

ChristophWWagner commented 3 years ago

Note that these structured data types may not only be ndarrays of simple object dtype, but may also consist of complex dtypes that might need to be disected with more scrutiny to come to a good size estimation.