Is it possible to get a list of all existing managed library expressions, from within Mathematica? Mathematica clearly needs to keep track of which ones exist.

Or do I need to refer to the table of existing objects I keep on the C side?


As far as I know, there is no built-in way to do this. The kernel data structure that stores the information for all existing managed library expressions is not accessible from top level.

But yes, it is indeed possible to keep track of them on the C side and pass the list of IDs to Mathematica through your own LibraryFunction call.

  • $\begingroup$ Actually it's necessary to keep track on them on the C side, anyway, so it's not difficult. $\endgroup$ – Szabolcs Aug 14 '15 at 8:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.