Code is also available in this GitHub repository:
thanks for these very helpful examples. Unfortunately, there is a case missing:
I would like to pass several MTensors as a result via LibraryLink.
Say, I have a real matrix and a list of integers that I want to pass on.
Not sure how to do this off-hand, but I will ask some people who might know.
Another good place to look for a possible answer is the Q&A site called StackExchange:
A possible answer here:
With a mirror post here: