You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which will take the expression e, call get_args on it, and return the n-th argument as an expression.
The SymEngine's getargs are slow anyway, since it returns std::vector<Basic> and internally SymEngine does not store the arguments in a vector, and so it must construct it (slow). Consequently, the SymbolicGetArg will be slow as well. We can start by using basic_get_args, implemented in SymEngine as:
Activity
certik commentedon Oct 25, 2023
The other design is to introduce
SymbolicGetArguments(expr e):This function will return a
list[S]of all the arguments at once. Then we use regular LPython mechanism for accessing a list.This might be a better approach.
In fact this approach is equivalent to what we already designed in the past: #2332 (comment), so let's do that.
anutosh491 commentedon Jan 31, 2024
Closing as completed through #2399