Skip to content

Commit c7b6bf6

Browse files
committed
Comment out expand in separate_terms
1 parent 9000ea5 commit c7b6bf6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ Variables in `vars` must be unique.
6060
function separate_terms(exprs::AbstractVector, vars, iv)
6161
vars = Symbolics.unwrap.(vars)
6262
exprs = Symbolics.unwrap.(exprs)
63-
exprs = expand.(exprs)
63+
# expand is helpful for separating terms but is harmful for generating effiicient runtime function
64+
# exprs = expand.(exprs)
6465
linear_I = Int[] # row idx for sparse matrix
6566
linear_J = Int[] # col idx for sparse matrix
6667
linear_V = Float64[] # values

0 commit comments

Comments
 (0)