Is there a workaround to let LibraryLink return multiple results?

I have used the LibraryLink wrapper for some days. In general, there is only one result retruned by LibraryFunction[] with the help of MArgument_set*(Res, *);. However, in pratical applications, multiple results may also occur. For instance, I have a C function elevate_bspline_degree(), which has the following decalration:

void elevate_bspline_degree(double *Pw, double *U, int p) 

This function elevates the degree of the B-spline from p to p + 1, and new control points and knots vector will be returned via the pointer variables Pw and U, respectively.


Category: librarylink Time: 2016-07-30 Views: 0
Tags: librarylink

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.283 (s). 12 q(s)