MCPcopy Index your code
hub / github.com/arnauddri/algorithms / FloatArrayEquals

Function FloatArrayEquals

data-structures/matrix/matrix_test.go:95–105  ·  view source on GitHub ↗
(a []float64, b []float64)

Source from the content-addressed store, hash-verified

93}
94
95func FloatArrayEquals(a []float64, b []float64) bool {
96 if len(a) != len(b) {
97 return false
98 }
99 for i, v := range a {
100 if v != b[i] {
101 return false
102 }
103 }
104 return true
105}

Callers 4

TestMakeMatrixFunction · 0.70
TestAddFunction · 0.70
TestSubstractFunction · 0.70
TestScaleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected