Skip to content

Commit

Permalink
Update src/remat.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
dmbates and github-actions[bot] committed Dec 14, 2023
1 parent 755acd3 commit 806acbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Diagonals have a lower bound of `0`. Off-diagonals have a lower-bound of `-Inf`
"""
function lowerbd(A::ReMat{T}) where {T}
k = size(A.λ, 1) # construct diagind(A.λ) by hand following #52115
return T[x range(1, step=k + 1, length=k) ? zero(T) : T(-Inf) for x in A.inds]
return T[x range(1; step=k + 1, length=k) ? zero(T) : T(-Inf) for x in A.inds]
end

"""
Expand Down

0 comments on commit 806acbe

Please sign in to comment.