all: change import paths

This commit is contained in:
Brendan Tracey
2017-05-23 00:03:03 -06:00
parent 9cfdd41029
commit d33397aa65
504 changed files with 989 additions and 989 deletions

View File

@@ -7,7 +7,7 @@ package optimize
import (
"math"
"github.com/gonum/matrix/mat64"
"gonum.org/v1/gonum/matrix/mat64"
)
// BFGS implements the BroydenFletcherGoldfarbShanno optimization method. It

View File

@@ -3,7 +3,7 @@ package optimize
import (
"math"
"github.com/gonum/floats"
"gonum.org/v1/gonum/floats"
)
const (

View File

@@ -5,8 +5,8 @@
package lp
import (
"github.com/gonum/floats"
"github.com/gonum/matrix/mat64"
"gonum.org/v1/gonum/floats"
"gonum.org/v1/gonum/matrix/mat64"
)
// TODO(btracey): Have some sort of preprocessing step for helping to fix A to make it

View File

@@ -10,8 +10,8 @@ import (
"fmt"
"math"
"github.com/gonum/floats"
"github.com/gonum/matrix/mat64"
"gonum.org/v1/gonum/floats"
"gonum.org/v1/gonum/matrix/mat64"
)
// TODO(btracey): Could have a solver structure with an abstract factorizer. With

View File

@@ -9,8 +9,8 @@ import (
"math/rand"
"testing"
"github.com/gonum/floats"
"github.com/gonum/matrix/mat64"
"gonum.org/v1/gonum/floats"
"gonum.org/v1/gonum/matrix/mat64"
)
const convergenceTol = 1e-10

View File

@@ -8,8 +8,8 @@ import (
"fmt"
"log"
"github.com/gonum/matrix/mat64"
"github.com/gonum/optimize/convex/lp"
"gonum.org/v1/gonum/matrix/mat64"
"gonum.org/v1/gonum/optimize/convex/lp"
)
func ExampleSimplex() {

View File

@@ -7,8 +7,8 @@ package functions
import (
"math"
"github.com/gonum/floats"
"github.com/gonum/matrix/mat64"
"gonum.org/v1/gonum/floats"
"gonum.org/v1/gonum/matrix/mat64"
)
// Beale implements the Beale's function.

View File

@@ -8,8 +8,8 @@ import (
"math"
"testing"
"github.com/gonum/diff/fd"
"github.com/gonum/floats"
"gonum.org/v1/gonum/diff/fd"
"gonum.org/v1/gonum/floats"
)
func TestMinimalSurface(t *testing.T) {

View File

@@ -14,8 +14,8 @@ import (
"math"
"testing"
"github.com/gonum/diff/fd"
"github.com/gonum/floats"
"gonum.org/v1/gonum/diff/fd"
"gonum.org/v1/gonum/floats"
)
// function represents an objective function.

View File

@@ -4,7 +4,7 @@
package optimize
import "github.com/gonum/floats"
import "gonum.org/v1/gonum/floats"
// GradientDescent implements the steepest descent optimization method that
// performs successive steps along the direction of the negative gradient.

View File

@@ -8,7 +8,7 @@ import (
"math"
"sync"
"github.com/gonum/stat/distmv"
"gonum.org/v1/gonum/stat/distmv"
)
// GuessAndCheck is a global optimizer that evaluates the function at random

View File

@@ -7,9 +7,9 @@ package optimize
import (
"testing"
"github.com/gonum/matrix/mat64"
"github.com/gonum/optimize/functions"
"github.com/gonum/stat/distmv"
"gonum.org/v1/gonum/matrix/mat64"
"gonum.org/v1/gonum/optimize/functions"
"gonum.org/v1/gonum/stat/distmv"
)
func TestGuessAndCheck(t *testing.T) {

View File

@@ -5,7 +5,7 @@
package optimize
import (
"github.com/gonum/floats"
"gonum.org/v1/gonum/floats"
)
// LBFGS implements the limited-memory BFGS method for gradient-based

View File

@@ -7,7 +7,7 @@ package optimize
import (
"math"
"github.com/gonum/floats"
"gonum.org/v1/gonum/floats"
)
// LinesearchMethod represents an abstract optimization method in which a

View File

@@ -10,7 +10,7 @@ import (
"reflect"
"testing"
"github.com/gonum/optimize/functions"
"gonum.org/v1/gonum/optimize/functions"
)
func TestMoreThuente(t *testing.T) {

View File

@@ -8,8 +8,8 @@ import (
"fmt"
"log"
"github.com/gonum/optimize"
"github.com/gonum/optimize/functions"
"gonum.org/v1/gonum/optimize"
"gonum.org/v1/gonum/optimize/functions"
)
func ExampleLocal() {

View File

@@ -9,8 +9,8 @@ import (
"math"
"time"
"github.com/gonum/floats"
"github.com/gonum/matrix/mat64"
"gonum.org/v1/gonum/floats"
"gonum.org/v1/gonum/matrix/mat64"
)
// newLocation allocates a new locatian structure of the appropriate size. It

View File

@@ -7,7 +7,7 @@ package optimize
import (
"sort"
"github.com/gonum/floats"
"gonum.org/v1/gonum/floats"
)
// nmIterType is a Nelder-Mead evaluation kind

View File

@@ -7,7 +7,7 @@ package optimize
import (
"math"
"github.com/gonum/matrix/mat64"
"gonum.org/v1/gonum/matrix/mat64"
)
const maxNewtonModifications = 20

View File

@@ -11,7 +11,7 @@ import (
"os"
"time"
"github.com/gonum/floats"
"gonum.org/v1/gonum/floats"
)
var printerHeadings = [...]string{

View File

@@ -7,7 +7,7 @@ package optimize
import (
"math"
"github.com/gonum/floats"
"gonum.org/v1/gonum/floats"
)
const (

View File

@@ -10,7 +10,7 @@ import (
"math"
"time"
"github.com/gonum/matrix/mat64"
"gonum.org/v1/gonum/matrix/mat64"
)
const defaultGradientAbsTol = 1e-6

View File

@@ -9,9 +9,9 @@ import (
"math"
"testing"
"github.com/gonum/floats"
"github.com/gonum/matrix/mat64"
"github.com/gonum/optimize/functions"
"gonum.org/v1/gonum/floats"
"gonum.org/v1/gonum/matrix/mat64"
"gonum.org/v1/gonum/optimize/functions"
)
type unconstrainedTest struct {