Skip to content

Commit 34ae2ca

Browse files
committed
bug in pre-allocate convergence history
1 parent 43566e5 commit 34ae2ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MultiResponseVarianceComponentModels"
22
uuid = "95bd6349-d788-4b5f-978d-e543c2eb4d7d"
33
authors = ["Hua Zhou <[email protected]> and contributors"]
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[deps]
77
IterativeSolvers = "42fd0dbc-a981-5370-80f2-aaf504508153"

src/fit.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ function fit!(
3535
# record iterate history if requested
3636
history = ConvergenceHistory(partial = !log)
3737
history[:reltol] = reltol
38-
IterativeSolvers.reserve!(Int, history, :iter, maxiter)
39-
IterativeSolvers.reserve!(T, history, :logl, maxiter)
40-
IterativeSolvers.reserve!(Float64, history, :itertime, maxiter)
38+
IterativeSolvers.reserve!(Int , history, :iter , maxiter + 1)
39+
IterativeSolvers.reserve!(T , history, :logl , maxiter + 1)
40+
IterativeSolvers.reserve!(Float64, history, :itertime, maxiter + 1)
4141
# initialization
4242
tic = time()
4343
if init == :default

0 commit comments

Comments
 (0)