affine: Remove unused function

This commit is contained in:
Hajime Hoshi 2018-07-27 01:23:14 +09:00
parent c6153de4f5
commit 2b4785f863

View File

@ -14,17 +14,6 @@
package affine package affine
// add is deprecated
func add(lhs, rhs []float64, dim int) []float64 {
result := make([]float64, len(lhs))
for i := 0; i < dim-1; i++ {
for j := 0; j < dim; j++ {
result[i*dim+j] = lhs[i*dim+j] + rhs[i*dim+j]
}
}
return result
}
func mulSquare(lhs, rhs []float32, dim int) []float32 { func mulSquare(lhs, rhs []float32, dim int) []float32 {
result := make([]float32, len(lhs)) result := make([]float32, len(lhs))
for i := 0; i < dim; i++ { for i := 0; i < dim; i++ {