Skip to content

Commit

Permalink
go fmt ./...
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkgupta committed Sep 9, 2014
1 parent ea406aa commit ed383ce
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions vectorutilities/vectorutilities.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package vectorutilities

func Add(x, y []float64) []float64 {
r := make([]float64, len(x))
for i := range r {
r[i] = x[i] + y[i]
}
return r
r := make([]float64, len(x))
for i := range r {
r[i] = x[i] + y[i]
}
return r
}

func Scale(a float64, x []float64) []float64 {
r := make([]float64, len(x))
for i := range r {
r[i] = a * x[i]
}
return r
r := make([]float64, len(x))
for i := range r {
r[i] = a * x[i]
}
return r
}

0 comments on commit ed383ce

Please sign in to comment.