Skip to content

Commit

Permalink
Fix compatibility with latest gonum (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Camilo Reyes Gutiérrez <[email protected]>
  • Loading branch information
jbonzo and juanreyes6469 authored Aug 15, 2023
1 parent a21c355 commit 7dd4f96
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 109 deletions.
2 changes: 1 addition & 1 deletion cmaesbounded.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (cma *CmaEsCholB) Init(dim, tasks int) int {
cma.mean = resize(cma.mean, dim) // mean location initialized at the start of Run

if cma.InitCholesky != nil {
if cma.InitCholesky.Symmetric() != dim {
if cma.InitCholesky.SymmetricDim() != dim {
panic("cma-es-chol: incorrect InitCholesky size")
}
cma.chol.Clone(cma.InitCholesky)
Expand Down
16 changes: 1 addition & 15 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
module github.com/pa-m/optimize

require (
github.com/ajstarks/svgo v0.0.0-20190826172357-de52242f3d65 // indirect
github.com/fogleman/gg v1.3.0 // indirect
github.com/jung-kurt/gofpdf v1.10.1 // indirect
github.com/mgechev/revive v1.0.2 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237 // indirect
github.com/stretchr/objx v0.2.0 // indirect
github.com/stretchr/testify v1.4.0 // indirect
golang.org/x/exp v0.0.0-20191129062945-2f5052295587
golang.org/x/image v0.0.0-20190902063713-cb417be4ba39 // indirect
golang.org/x/mobile v0.0.0-20190830201351-c6da95954960 // indirect
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 // indirect
golang.org/x/text v0.3.2 // indirect
gonum.org/v1/gonum v0.6.1
gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e // indirect
gonum.org/v1/plot v0.0.0-20190615073203-9aa86143727f // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gonum.org/v1/gonum v0.11.0
)

go 1.13
Loading

0 comments on commit 7dd4f96

Please sign in to comment.