MCPcopy Create free account
hub / github.com/egonelbre/exp / Mul

Method Mul

bench/vector_fusing/vector_test.go:42–44  ·  view source on GitHub ↗
(v float32)

Source from the content-addressed store, hash-verified

40 return Vec3s{a.X + b.X, a.Y + b.Y, a.Z + b.Z}
41}
42func (a Vec3s) Mul(v float32) Vec3s {
43 return Vec3s{a.X * v, a.Y * v, a.Z * v}
44}
45
46func BenchmarkStructAddMul(b *testing.B) {
47 x, y := Vec3s{1, 2, 3}, Vec3s{5, 6, 7}

Callers 1

BenchmarkStructAddMulFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected