We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function Determinant calculates wrong values for matrices of dimension 1x1, 4x4, 5x5 and larger. Here's sample code describing my issue.
Determinant
mat1x1 := [][]float64{ []float64{5}, } fmt.Println(matrix.Determinant(mat1x1)) // Prints 0, expected 5 mat4x4 := [][]float64{ []float64{2, 4, 3, 7}, []float64{6, 5, 9, 9}, []float64{9, 3, 6, 7}, []float64{7, 4, 2, 8}, } fmt.Println(matrix.Determinant(mat4x4)) // Prints 297, expected -77 mat5x5 := [][]float64{ []float64{2, 4, 3, 7, 6}, []float64{5, 9, 9, 9, 3}, []float64{6, 7, 7, 4, 2}, []float64{8, 2, 4, 6, 0}, []float64{1, 5, 2, 6, 8}, } fmt.Println(matrix.Determinant(mat5x5)) // Prints -16188, expected -1092
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Function
Determinant
calculates wrong values for matrices of dimension 1x1, 4x4, 5x5 and larger. Here's sample code describing my issue.The text was updated successfully, but these errors were encountered: