mirror of
https://github.com/gonum/gonum.git
synced 2025-10-17 12:40:52 +08:00
all: change import paths
This commit is contained in:
@@ -7,7 +7,7 @@ package optimize
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/gonum/matrix/mat64"
|
||||
"gonum.org/v1/gonum/matrix/mat64"
|
||||
)
|
||||
|
||||
// BFGS implements the Broyden–Fletcher–Goldfarb–Shanno optimization method. It
|
||||
|
@@ -3,7 +3,7 @@ package optimize
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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() {
|
||||
|
@@ -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.
|
||||
|
@@ -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) {
|
||||
|
@@ -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.
|
||||
|
@@ -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.
|
||||
|
@@ -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
|
||||
|
@@ -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) {
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/optimize/functions"
|
||||
"gonum.org/v1/gonum/optimize/functions"
|
||||
)
|
||||
|
||||
func TestMoreThuente(t *testing.T) {
|
||||
|
@@ -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() {
|
||||
|
@@ -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
|
||||
|
@@ -7,7 +7,7 @@ package optimize
|
||||
import (
|
||||
"sort"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
// nmIterType is a Nelder-Mead evaluation kind
|
||||
|
@@ -7,7 +7,7 @@ package optimize
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/gonum/matrix/mat64"
|
||||
"gonum.org/v1/gonum/matrix/mat64"
|
||||
)
|
||||
|
||||
const maxNewtonModifications = 20
|
||||
|
@@ -11,7 +11,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
var printerHeadings = [...]string{
|
||||
|
@@ -7,7 +7,7 @@ package optimize
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
"math"
|
||||
"time"
|
||||
|
||||
"github.com/gonum/matrix/mat64"
|
||||
"gonum.org/v1/gonum/matrix/mat64"
|
||||
)
|
||||
|
||||
const defaultGradientAbsTol = 1e-6
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user