We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
expand
separate_terms
1 parent 9000ea5 commit c7b6bf6Copy full SHA for c7b6bf6
1 file changed
src/utils.jl
@@ -60,7 +60,8 @@ Variables in `vars` must be unique.
60
function separate_terms(exprs::AbstractVector, vars, iv)
61
vars = Symbolics.unwrap.(vars)
62
exprs = Symbolics.unwrap.(exprs)
63
- exprs = expand.(exprs)
+ # expand is helpful for separating terms but is harmful for generating effiicient runtime function
64
+ # exprs = expand.(exprs)
65
linear_I = Int[] # row idx for sparse matrix
66
linear_J = Int[] # col idx for sparse matrix
67
linear_V = Float64[] # values
0 commit comments