mat.Dense doesn't implement the interface mat.Matrix: At() has a pointer receiver
chmike opened this issue · comments
What are you trying to do?
I have a matrix x, I want to compute the inverse of the transpose of x multiplied with itself.
What did you do?
https://go.dev/play/p/AD6X5omiDPh
What did you expect to happen?
I expected to get the inverse of the matrix.
What actually happened?
I got a compilation error stating :
"cannot use c (variable of type mat.Dense) as mat.Matrix value in argument to ci.Inverse: mat.Dense does not implement mat.Matrix (method At has pointer receiver)"
What version of Go and Gonum are you using?
go version go1.20.6 darwin/arm64
I don't have the gonum sources installed in my GOPATH/src. The command to get rev-parse HEAD fails.
I just installed gonum a few minutes ago.
grep gonum.org/v1/gonum go.sum
gonum.org/v1/gonum v0.13.0 h1:a0T3bh+7fhRyqeNbiC3qVHYmkiQgit3wnNan/2c0HMM=
gonum.org/v1/gonum v0.13.0/go.mod h1:/WPYRckkfWrhWefxyYTfrTtQR0KH4iyHNuzxqXAKyAU=
Does this issue reproduce with the current master?
I don't know. I'm not sure that what I'm trying to do is correct.
I should have passed the address of c to Inverse.