Skip to content

Commit 7dd4f96

Browse files
Fix compatibility with latest gonum (#1)
Co-authored-by: Juan Camilo Reyes Gutiérrez <[email protected]>
1 parent a21c355 commit 7dd4f96

File tree

3 files changed

+69
-109
lines changed

3 files changed

+69
-109
lines changed

cmaesbounded.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (cma *CmaEsCholB) Init(dim, tasks int) int {
207207
cma.mean = resize(cma.mean, dim) // mean location initialized at the start of Run
208208

209209
if cma.InitCholesky != nil {
210-
if cma.InitCholesky.Symmetric() != dim {
210+
if cma.InitCholesky.SymmetricDim() != dim {
211211
panic("cma-es-chol: incorrect InitCholesky size")
212212
}
213213
cma.chol.Clone(cma.InitCholesky)

go.mod

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
module github.com/pa-m/optimize
22

33
require (
4-
github.com/ajstarks/svgo v0.0.0-20190826172357-de52242f3d65 // indirect
5-
github.com/fogleman/gg v1.3.0 // indirect
6-
github.com/jung-kurt/gofpdf v1.10.1 // indirect
7-
github.com/mgechev/revive v1.0.2 // indirect
8-
github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237 // indirect
9-
github.com/stretchr/objx v0.2.0 // indirect
10-
github.com/stretchr/testify v1.4.0 // indirect
114
golang.org/x/exp v0.0.0-20191129062945-2f5052295587
12-
golang.org/x/image v0.0.0-20190902063713-cb417be4ba39 // indirect
13-
golang.org/x/mobile v0.0.0-20190830201351-c6da95954960 // indirect
14-
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 // indirect
15-
golang.org/x/text v0.3.2 // indirect
16-
gonum.org/v1/gonum v0.6.1
17-
gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e // indirect
18-
gonum.org/v1/plot v0.0.0-20190615073203-9aa86143727f // indirect
19-
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
5+
gonum.org/v1/gonum v0.11.0
206
)
217

228
go 1.13

0 commit comments

Comments
 (0)