Skip to content
This repository was archived by the owner on Nov 23, 2018. It is now read-only.

Commit a8deaba

Browse files
committed
Add ErrLinesearcherBound error
1 parent fef9b1a commit a8deaba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

errors.go

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ var (
2727
// progress because there is no change in location after Linesearcher step
2828
// due to floating-point arithmetic.
2929
ErrNoProgress = errors.New("linesearch: no change in location after Linesearcher step")
30+
31+
// ErrLinesearcherBound signifies that a Linesearcher reached a step that
32+
// lies out of allowed bounds.
33+
ErrLinesearcherBound = errors.New("linesearch: step out of bounds")
3034
)
3135

3236
// ErrFunc is returned when an initial function value is invalid. The error

0 commit comments

Comments
 (0)