Change Method to localMethod.

Now that Local is gone, unexport the type.
This commit is contained in:
Brendan Tracey
2018-07-18 13:16:48 -06:00
parent 72e79ca985
commit 3dd933ac47
8 changed files with 20 additions and 20 deletions

View File

@@ -38,7 +38,7 @@ func (g *GradientDescent) RunGlobal(operation chan<- GlobalTask, result <-chan G
return
}
func (g *GradientDescent) Init(loc *Location) (Operation, error) {
func (g *GradientDescent) initLocal(loc *Location) (Operation, error) {
if g.Linesearcher == nil {
g.Linesearcher = &Backtracking{}
}
@@ -55,7 +55,7 @@ func (g *GradientDescent) Init(loc *Location) (Operation, error) {
return g.ls.Init(loc)
}
func (g *GradientDescent) Iterate(loc *Location) (Operation, error) {
func (g *GradientDescent) iterateLocal(loc *Location) (Operation, error) {
return g.ls.Iterate(loc)
}