Skip to content

Commit 6c9cbc8

Browse files
author
Wimmerer
committed
Set size of zero vector to be size(A, 2)
1 parent 3ba3bc3 commit 6c9cbc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function SciMLBase.init(prob::LinearProblem, alg::Union{SciMLLinearSolveAlgorith
8787
)
8888
@unpack A, b, u0, p = prob
8989

90-
u0 = (u0 !== nothing) ? u0 : zero(b)
90+
u0 = (u0 !== nothing) ? u0 : zeros(size(A, 2))
9191

9292
cacheval = init_cacheval(alg, A, b, u0, Pl, Pr, maxiters, abstol, reltol, verbose)
9393
isfresh = true

0 commit comments

Comments
 (0)