go.matrix icon indicating copy to clipboard operation
go.matrix copied to clipboard

Bug when the row and col index is negative when getting or setting value in the sparse.go

Open hezila opened this issue 11 years ago • 0 comments

When the row or col index is negative, such as A.Get(1, -2), an error occurred.

By checking your code, the minus "-" operation should be changed to "+" operation.

hezila avatar Feb 12 '14 10:02 hezila