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.
1 parent ade11d3 commit e74e754Copy full SHA for e74e754
src/systems/diffeqs/abstractodesystem.jl
@@ -298,12 +298,12 @@ function W_sparsity(sys::AbstractODESystem)
298
jac_sparsity = jacobian_sparsity(sys)
299
else
300
jac = calculate_jacobian(sys; sparse = true)
301
- jac_sparsity = sparse((!iszero).(jac))
+ jac_sparsity = SparseMatrixCSC{Bool, Int64}((!iszero).(jac))
302
end
303
(n, n) = size(jac_sparsity)
304
M = calculate_massmatrix(sys)
305
- M_sparsity = M isa UniformScaling ? sparse(I(n)) : sparse((!iszero).(M))
306
- jac_sparsity .|| M_sparsity
+ M_sparsity = M isa UniformScaling ? sparse(I(n)) : SparseMatrixCSC{Bool, Int64}((!iszero).(M))
+ jac_sparsity .| M_sparsity
307
308
309
function isautonomous(sys::AbstractODESystem)
0 commit comments