" RuntimeError: MXNode::eval not defined for class N6casadi11DeterminantE "
If I convert all my symbolic matrices to SX class symbols, the expression evaluates fine for small matrices, but as the matrix size increases the time taken to declare the log likelihood function increases manyfold and the code gets stuck at the line where the expression is being declared as "import casadi as cs; loglikehood = cs.log(cs.det(Matrix)) + ...;
This declaration does not finish execution (the code is stuck) even for a 10 x 10 matrix when declared through a SX symbolics.
Is there a better way to do this in casadi.
Best,
Sanket
A = SX.sym('A',n, n)
log_det = ...
F = Function('F',[A],[log_det])F(magic(2))
Error using casadi.Function/call (line 735)
.../casadi/core/mx_node.cpp:291: 'eval' not defined for class N6casadi11DeterminantE
Error in casadi.Function/paren (line 1434)
res = self.call(varargin);
Error in casadi.Function/subsref (line 1414)
[varargout{1:nargout}]= paren(self, s.subs{:});