Using the C++ Math Library | ![]() ![]() |
How to Call C++ Library Functions
The following sections use the cos()
, tril()
, find()
, and svd()
functions to demonstrate how to translate a MATLAB call to a function into a C++ Math Library call. Each of the functions demonstrates a different aspect of the calling conventions, including what data type to use for C++ input and output arguments, how to handle optional arguments, and how to handle MATLAB's multiple output values in C++. Specifically, the topics covered include:
![]() | Calling Library Functions | Returning One Result and Passing Only Required Input Arguments | ![]() |