feature request: control of DLONG/DFLOAT in generated code

30 views
Skip to first unread message

Matt Baumgart

unread,
Feb 27, 2019, 9:23:47 AM2/27/19
to OSQP
A suggestion: it would be nice if we could specify DLONG/DFLOAT iin the MATLAB codegen process, the same way we can control EMBEDDED settings.
Thanks,
Matt

Goran Banjac

unread,
Mar 3, 2019, 4:33:27 AM3/3/19
to OSQP
Hi Matt,

Thanks for your suggestion.

When compiling the generated code with cmake, one can specify DLONG and DFLOAT as cmake options. However, it was not possible to set these flags when compiling mex interface for the generated code.

I added in this commit new arguments FLOAT and LONG to codegen method. I will update the documentation accordingly.

Goran
Reply all
Reply to author
Forward
0 new messages