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

Method TotalSize

niterator/shape/shape.go:10–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10func (ap *AP) TotalSize() int {
11 total := 1
12 for _, size := range ap.Shape {
13 total *= size
14 }
15 return total
16}
17
18func (ap *AP) String() string {
19 return fmt.Sprintf("%v", ap.Shape)

Callers 15

initFunction · 0.80
testIteratorFunction · 0.80
BenchmarkBasicFunction · 0.80
BenchmarkInstructFunction · 0.80
BenchmarkOrdoneFunction · 0.80
BenchmarkPremulFunction · 0.80
BenchmarkOnearrFunction · 0.80
BenchmarkOnearrRevFunction · 0.80
BenchmarkOnearrPremulFunction · 0.80

Calls

no outgoing calls

Tested by 15

initFunction · 0.64
testIteratorFunction · 0.64
BenchmarkBasicFunction · 0.64
BenchmarkInstructFunction · 0.64
BenchmarkOrdoneFunction · 0.64
BenchmarkPremulFunction · 0.64
BenchmarkOnearrFunction · 0.64
BenchmarkOnearrRevFunction · 0.64
BenchmarkOnearrPremulFunction · 0.64