mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 07:06:54 +08:00
all: change import paths
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
package blas32
|
||||
|
||||
import (
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/blas/native"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas/native"
|
||||
)
|
||||
|
||||
var blas32 blas.Float32 = native.Implementation{}
|
||||
|
@@ -6,8 +6,8 @@
|
||||
package blas64
|
||||
|
||||
import (
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/blas/native"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas/native"
|
||||
)
|
||||
|
||||
var blas64 blas.Float64 = native.Implementation{}
|
||||
|
@@ -6,8 +6,8 @@
|
||||
package cblas128
|
||||
|
||||
import (
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/blas/cgo"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas/cgo"
|
||||
)
|
||||
|
||||
// TODO(kortschak): Change this and the comment below to native.Implementation
|
||||
|
@@ -6,8 +6,8 @@
|
||||
package cblas64
|
||||
|
||||
import (
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/blas/cgo"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas/cgo"
|
||||
)
|
||||
|
||||
// TODO(kortschak): Change this and the comment below to native.Implementation
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package cgo
|
||||
|
||||
import (
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -15,7 +15,7 @@ import "C"
|
||||
import (
|
||||
"unsafe"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
// Type check assertions:
|
||||
|
@@ -3,7 +3,7 @@ package cgo
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func BenchmarkDgemmSmSmSm(b *testing.B) {
|
||||
|
@@ -3,7 +3,7 @@ package cgo
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func BenchmarkDgemvSmSmNoTransInc1(b *testing.B) {
|
||||
|
@@ -3,7 +3,7 @@ package cgo
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func BenchmarkDgerSmSmInc1(b *testing.B) {
|
||||
|
@@ -10,8 +10,8 @@ import (
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func BenchmarkDtrmv(b *testing.B) {
|
||||
|
@@ -20,7 +20,7 @@ import (
|
||||
|
||||
"github.com/cznic/cc"
|
||||
|
||||
"github.com/gonum/internal/binding"
|
||||
"gonum.org/v1/gonum/internal/binding"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -3,7 +3,7 @@ package cgo
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
var impl Implementation
|
||||
|
@@ -3,7 +3,7 @@ package cgo
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func TestDgemv(t *testing.T) {
|
||||
|
@@ -3,7 +3,7 @@ package cgo
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func TestDgemm(t *testing.T) {
|
||||
|
@@ -5,8 +5,8 @@
|
||||
package native
|
||||
|
||||
import (
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -8,8 +8,8 @@ import (
|
||||
"runtime"
|
||||
"sync"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/internal/asm/f64"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/internal/asm/f64"
|
||||
)
|
||||
|
||||
// Dgemm computes
|
||||
|
@@ -7,7 +7,7 @@ package native
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func BenchmarkDgemmSmSmSm(b *testing.B) {
|
||||
|
@@ -7,7 +7,7 @@ package native
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func BenchmarkDgemvSmSmNoTransInc1(b *testing.B) {
|
||||
|
@@ -7,7 +7,7 @@ package native
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func BenchmarkDgerSmSmInc1(b *testing.B) {
|
||||
|
@@ -10,8 +10,8 @@ import (
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func BenchmarkDtrmv(b *testing.B) {
|
||||
|
@@ -9,7 +9,7 @@ package native
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
math "github.com/gonum/blas/native/internal/math32"
|
||||
math "gonum.org/v1/gonum/blas/native/internal/math32"
|
||||
)
|
||||
|
||||
func newGeneral32(r, c int) general32 {
|
||||
|
@@ -9,7 +9,7 @@ import (
|
||||
"testing"
|
||||
"testing/quick"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
const tol = 1e-7
|
||||
|
@@ -7,8 +7,8 @@ package native
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/internal/asm/f64"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/internal/asm/f64"
|
||||
)
|
||||
|
||||
var _ blas.Float64Level1 = Implementation{}
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -5,7 +5,7 @@
|
||||
package native
|
||||
|
||||
import (
|
||||
"github.com/gonum/internal/asm/f64"
|
||||
"gonum.org/v1/gonum/internal/asm/f64"
|
||||
)
|
||||
|
||||
// Ddot computes the dot product of the two vectors
|
||||
|
@@ -7,7 +7,7 @@ package native
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
var impl Implementation
|
||||
|
@@ -7,10 +7,10 @@
|
||||
package native
|
||||
|
||||
import (
|
||||
math "github.com/gonum/blas/native/internal/math32"
|
||||
math "gonum.org/v1/gonum/blas/native/internal/math32"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/internal/asm/f32"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/internal/asm/f32"
|
||||
)
|
||||
|
||||
var _ blas.Float32Level1 = Implementation{}
|
||||
|
@@ -7,7 +7,7 @@
|
||||
package native
|
||||
|
||||
import (
|
||||
"github.com/gonum/internal/asm/f32"
|
||||
"gonum.org/v1/gonum/internal/asm/f32"
|
||||
)
|
||||
|
||||
// Dsdot computes the dot product of the two vectors
|
||||
|
@@ -7,7 +7,7 @@
|
||||
package native
|
||||
|
||||
import (
|
||||
"github.com/gonum/internal/asm/f32"
|
||||
"gonum.org/v1/gonum/internal/asm/f32"
|
||||
)
|
||||
|
||||
// Sdot computes the dot product of the two vectors
|
||||
|
@@ -7,7 +7,7 @@
|
||||
package native
|
||||
|
||||
import (
|
||||
"github.com/gonum/internal/asm/f32"
|
||||
"gonum.org/v1/gonum/internal/asm/f32"
|
||||
)
|
||||
|
||||
// Sdsdot computes the dot product of the two vectors plus a constant
|
||||
|
@@ -5,8 +5,8 @@
|
||||
package native
|
||||
|
||||
import (
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/internal/asm/f64"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/internal/asm/f64"
|
||||
)
|
||||
|
||||
var _ blas.Float64Level2 = Implementation{}
|
||||
|
@@ -7,7 +7,7 @@ package native
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func TestDgemv(t *testing.T) {
|
||||
|
@@ -7,8 +7,8 @@
|
||||
package native
|
||||
|
||||
import (
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/internal/asm/f32"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/internal/asm/f32"
|
||||
)
|
||||
|
||||
var _ blas.Float32Level2 = Implementation{}
|
||||
|
@@ -5,8 +5,8 @@
|
||||
package native
|
||||
|
||||
import (
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/internal/asm/f64"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/internal/asm/f64"
|
||||
)
|
||||
|
||||
var _ blas.Float64Level3 = Implementation{}
|
||||
|
@@ -7,7 +7,7 @@ package native
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas/testblas"
|
||||
"gonum.org/v1/gonum/blas/testblas"
|
||||
)
|
||||
|
||||
func TestDgemm(t *testing.T) {
|
||||
|
@@ -7,8 +7,8 @@
|
||||
package native
|
||||
|
||||
import (
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/internal/asm/f32"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/internal/asm/f32"
|
||||
)
|
||||
|
||||
var _ blas.Float32Level3 = Implementation{}
|
||||
|
@@ -8,7 +8,7 @@ import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
func TestDgemmParallel(t *testing.T) {
|
||||
|
@@ -10,8 +10,8 @@ import (
|
||||
"runtime"
|
||||
"sync"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/internal/asm/f32"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/internal/asm/f32"
|
||||
)
|
||||
|
||||
// Sgemm computes
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"math"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
// throwPanic will throw unexpected panics if true, or will just report them as errors if false
|
||||
|
@@ -4,8 +4,8 @@ import (
|
||||
"math"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
func TestFlattenBanded(t *testing.T) {
|
||||
|
@@ -3,7 +3,7 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
type Dgbmver interface {
|
||||
|
@@ -3,7 +3,7 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
type Dgemmer interface {
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
func DgemmBenchmark(b *testing.B, dgemm Dgemmer, m, n, k int, tA, tB blas.Transpose) {
|
||||
|
@@ -3,7 +3,7 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
type DgemvCase struct {
|
||||
|
@@ -3,7 +3,7 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
type Dsbmver interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dspmver interface {
|
||||
|
@@ -3,7 +3,7 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
type Dsprer interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dspr2er interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dsymmer interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dsymver interface {
|
||||
|
@@ -3,7 +3,7 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
type Dsyrer interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dsyr2er interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dsyr2ker interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dsyker interface {
|
||||
|
@@ -3,7 +3,7 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
type Dtbmver interface {
|
||||
|
@@ -3,7 +3,7 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
type Dtbsver interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dtpmver interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dtpsver interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dtrmmer interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dtrmver interface {
|
||||
|
@@ -8,7 +8,7 @@ import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
func DtrmvBenchmark(b *testing.B, dtrmv Dtrmver, n, lda, incX int, ul blas.Uplo, tA blas.Transpose, d blas.Diag) {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dtrsmer interface {
|
||||
|
@@ -3,8 +3,8 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Dtrsver interface {
|
||||
|
@@ -3,7 +3,7 @@ package testblas
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
type Dtxmver interface {
|
||||
|
@@ -9,8 +9,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
|
||||
"math"
|
||||
"testing"
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/blas"
|
||||
"gonum.org/v1/gonum/blas"
|
||||
)
|
||||
|
||||
func DgemvBenchmark(b *testing.B, blasser Dgemver, tA blas.Transpose, m, n, incX, incY int) {
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
"runtime"
|
||||
"sync"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
// A Point is a stencil location in a finite difference formula.
|
||||
|
@@ -8,8 +8,8 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
|
||||
"github.com/gonum/diff/fd"
|
||||
"github.com/gonum/matrix/mat64"
|
||||
"gonum.org/v1/gonum/diff/fd"
|
||||
"gonum.org/v1/gonum/matrix/mat64"
|
||||
)
|
||||
|
||||
func ExampleDerivative() {
|
||||
|
@@ -9,7 +9,7 @@ import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
)
|
||||
|
||||
type Rosenbrock struct {
|
||||
|
@@ -8,8 +8,8 @@ import (
|
||||
"runtime"
|
||||
"sync"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"github.com/gonum/matrix/mat64"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
"gonum.org/v1/gonum/matrix/mat64"
|
||||
)
|
||||
|
||||
type JacobianSettings struct {
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
func vecFunc13(y, x []float64) {
|
||||
|
@@ -15,7 +15,7 @@ import (
|
||||
"math"
|
||||
"sort"
|
||||
|
||||
"github.com/gonum/internal/asm/f64"
|
||||
"gonum.org/v1/gonum/internal/asm/f64"
|
||||
)
|
||||
|
||||
// Add adds, element-wise, the elements of s and dst, and stores in dst.
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
"math"
|
||||
"math/rand"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
)
|
||||
|
||||
// Interval is an interval of resolutions with a common score.
|
||||
|
@@ -10,9 +10,9 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
|
||||
"github.com/gonum/graph/simple"
|
||||
"gonum.org/v1/gonum/graph/simple"
|
||||
)
|
||||
|
||||
func ExampleProfile_simple() {
|
||||
|
@@ -9,7 +9,7 @@ import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
)
|
||||
|
||||
// Q returns the modularity Q score of the graph g subdivided into the
|
||||
|
@@ -11,8 +11,8 @@ import (
|
||||
|
||||
"golang.org/x/tools/container/intsets"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
)
|
||||
|
||||
// qDirected returns the modularity Q score of the graph g subdivided into the
|
||||
|
@@ -12,8 +12,8 @@ import (
|
||||
|
||||
"golang.org/x/tools/container/intsets"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
)
|
||||
|
||||
// DirectedMultiplex is a directed multiplex graph.
|
||||
|
@@ -11,10 +11,10 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"github.com/gonum/graph/simple"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph/simple"
|
||||
)
|
||||
|
||||
var communityDirectedMultiplexQTests = []struct {
|
||||
|
@@ -11,10 +11,10 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"github.com/gonum/graph/simple"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph/simple"
|
||||
)
|
||||
|
||||
var communityDirectedQTests = []struct {
|
||||
|
@@ -8,9 +8,9 @@ import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/graphs/gen"
|
||||
"github.com/gonum/graph/simple"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/graphs/gen"
|
||||
"gonum.org/v1/gonum/graph/simple"
|
||||
)
|
||||
|
||||
// set is an integer set.
|
||||
|
@@ -11,8 +11,8 @@ import (
|
||||
|
||||
"golang.org/x/tools/container/intsets"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
)
|
||||
|
||||
// qUndirected returns the modularity Q score of the graph g subdivided into the
|
||||
|
@@ -12,8 +12,8 @@ import (
|
||||
|
||||
"golang.org/x/tools/container/intsets"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
)
|
||||
|
||||
// UndirectedMultiplex is an undirected multiplex graph.
|
||||
|
@@ -11,10 +11,10 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"github.com/gonum/graph/simple"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph/simple"
|
||||
)
|
||||
|
||||
var communityUndirectedMultiplexQTests = []struct {
|
||||
|
@@ -11,10 +11,10 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/floats"
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"github.com/gonum/graph/simple"
|
||||
"gonum.org/v1/gonum/floats"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph/simple"
|
||||
)
|
||||
|
||||
var communityUndirectedQTests = []struct {
|
||||
|
@@ -15,10 +15,10 @@ import (
|
||||
"fmt"
|
||||
"sort"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"github.com/gonum/graph/network"
|
||||
"github.com/gonum/graph/simple"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph/network"
|
||||
"gonum.org/v1/gonum/graph/simple"
|
||||
)
|
||||
|
||||
// set is an integer set.
|
||||
|
@@ -7,9 +7,9 @@ package dot
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/formats/dot"
|
||||
"github.com/gonum/graph/formats/dot/ast"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/formats/dot"
|
||||
"gonum.org/v1/gonum/graph/formats/dot/ast"
|
||||
"golang.org/x/tools/container/intsets"
|
||||
)
|
||||
|
||||
|
@@ -8,8 +8,8 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/simple"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/simple"
|
||||
)
|
||||
|
||||
func TestRoundTrip(t *testing.T) {
|
||||
|
@@ -20,8 +20,8 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/internal/ordered"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/internal/ordered"
|
||||
)
|
||||
|
||||
// Node is a DOT graph node.
|
||||
|
@@ -8,8 +8,8 @@ import (
|
||||
"math"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/simple"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/simple"
|
||||
)
|
||||
|
||||
// set is an integer set.
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/simple"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/simple"
|
||||
)
|
||||
|
||||
type GraphNode struct {
|
||||
|
@@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/gonum/graph"
|
||||
"github.com/gonum/graph/topo"
|
||||
"gonum.org/v1/gonum/graph"
|
||||
"gonum.org/v1/gonum/graph/topo"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@@ -15,8 +15,8 @@ import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/graph/formats/dot"
|
||||
"github.com/gonum/graph/formats/dot/ast"
|
||||
"gonum.org/v1/gonum/graph/formats/dot"
|
||||
"gonum.org/v1/gonum/graph/formats/dot/ast"
|
||||
)
|
||||
|
||||
func TestParseFile(t *testing.T) {
|
||||
|
@@ -16,9 +16,9 @@ import (
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/gonum/graph/formats/dot/ast"
|
||||
"github.com/gonum/graph/formats/dot/internal/lexer"
|
||||
"github.com/gonum/graph/formats/dot/internal/parser"
|
||||
"gonum.org/v1/gonum/graph/formats/dot/ast"
|
||||
"gonum.org/v1/gonum/graph/formats/dot/internal/lexer"
|
||||
"gonum.org/v1/gonum/graph/formats/dot/internal/parser"
|
||||
)
|
||||
|
||||
// ParseFile parses the given Graphviz DOT file into an AST.
|
||||
|
@@ -16,8 +16,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/gonum/graph/formats/dot/ast"
|
||||
"github.com/gonum/graph/formats/dot/internal/token"
|
||||
"gonum.org/v1/gonum/graph/formats/dot/ast"
|
||||
"gonum.org/v1/gonum/graph/formats/dot/internal/token"
|
||||
)
|
||||
|
||||
// === [ File ] ================================================================
|
||||
|
@@ -15,7 +15,7 @@ import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/graph/formats/dot"
|
||||
"gonum.org/v1/gonum/graph/formats/dot"
|
||||
)
|
||||
|
||||
func TestParseFile(t *testing.T) {
|
||||
|
@@ -16,7 +16,7 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
|
||||
"github.com/gonum/graph/formats/dot/internal/token"
|
||||
"gonum.org/v1/gonum/graph/formats/dot/internal/token"
|
||||
)
|
||||
|
||||
type ErrorSymbol interface {
|
||||
|
@@ -15,7 +15,7 @@ package lexer
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/gonum/graph/formats/dot/internal/token"
|
||||
"gonum.org/v1/gonum/graph/formats/dot/internal/token"
|
||||
)
|
||||
|
||||
type ActionTable [NumStates]ActionRow
|
||||
|
@@ -18,7 +18,7 @@ import (
|
||||
"unicode/utf8"
|
||||
|
||||
// "github.com/gonum/graph/formats/dot/internal/util"
|
||||
"github.com/gonum/graph/formats/dot/internal/token"
|
||||
"gonum.org/v1/gonum/graph/formats/dot/internal/token"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -15,7 +15,7 @@ import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"github.com/gonum/graph/formats/dot"
|
||||
"gonum.org/v1/gonum/graph/formats/dot"
|
||||
)
|
||||
|
||||
func TestParseFile(t *testing.T) {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user