matrix/mat64: remove unused functions
MODIFY
matrix/mat64/eigen.go
matrix/mat64/eigen.go
@@ -16,18 +16,6 @@ const (
badNoVect = "mat64: eigenvectors not computed"
)
-func symmetric(m *Dense) bool {
- n, _ := m.Dims()
- for i := 0; i < n; i++ {
- for j := 0; j < i; j++ {
- if m.at(i, j) != m.at(j, i) {
- return false
- }
- }
- }
- return true
-}
-
// EigenSym is a type for creating and manipulating the Eigen decomposition of
// symmetric matrices.
type EigenSym struct {

MODIFY
matrix/mat64/shadow_test.go
matrix/mat64/shadow_test.go
@@ -217,13 +217,6 @@ func overlapSiblingTriangles(ai, aj, an int, aKind matrix.TriKind, bi, bj, bn in
return false
}
-func abs(a int) int {
- if a < 0 {
- return -a
- }
- return a
-}
-
func kindString(k matrix.TriKind) string {
if k == matrix.Upper {
return "U"

matrix/mat64: remove unused functions