Universal symbolic argument wrapper for Function inputs/outputs.
More...
#include <JanusTypes.hpp>
Universal symbolic argument wrapper for Function inputs/outputs.
Allows automatic flattening of Eigen matrices and MX scalars into a single casadi::MX type. Enables mixed initializer lists: {scalar_sym, matrix_sym}.
- See also
- Function
◆ SymbolicArg() [1/2]
Construct from single symbolic scalar (MX).
- Parameters
-
◆ SymbolicArg() [2/2]
template<typename Derived>
| janus::SymbolicArg::SymbolicArg |
( |
const Eigen::MatrixBase< Derived > & | e | ) |
|
|
inline |
Construct from Eigen matrix of symbolic scalars.
- Template Parameters
-
| Derived | Eigen expression type |
- Parameters
-
| e | Eigen matrix to flatten into MX |
◆ get()
Get underlying CasADi MX object.
- Returns
- Copy of the stored MX
◆ operator SymbolicScalar()
Implicit conversion to CasADi MX.
- Returns
- Underlying MX object
The documentation for this class was generated from the following file: