Matlab bindings now only building once rather than every call to make, via the use of some proxies. Matlab build currently only happens in one thread, so it can be pretty slow
This commit is contained in:
@@ -42,8 +42,10 @@ void mexFunction(int nlhs, mxArray* plhs[],
|
||||
|
||||
{{ functional.generate(fun) }}
|
||||
|
||||
{%- if noutputs %}
|
||||
// push the outputs back to matlab
|
||||
for (size_t n = 0; n < nlhs; ++n) {
|
||||
plhs[n] = outputs[n].mxArray();
|
||||
plhs[n] = outputs[n].toMxArray();
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
|
Reference in New Issue
Block a user