PythonOptimizers / cysparse

Python/Cython library to replace PySparse
http://PythonOptimizers.github.io/cysparse
7 stars 3 forks source link

Memory management of internal arrays: let the caller decide to whom the memory belongs #200

Open ghost opened 9 years ago

ghost commented 9 years ago

Now that we use some tricks to by pass memory allocation with LLSparseMatrix, CSCSparseMatrix and CSRSparseMatrix (and maybe other classes?), we must add a flag for memory ownership. If the memory is allocated by the caller, the matrices can not free this memory.

This is urgent and will be one of my first tasks in the future.