Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
10
func
(ap *AP) TotalSize() int {
11
total := 1
12
for
_, size :=
range
ap.Shape {
13
total *= size
14
}
15
return
total
16
}
17
18
func
(ap *AP) String() string {
19
return
fmt.Sprintf(
"%v"
, ap.Shape)
Callers
15
init
Function · 0.80
testIterator
Function · 0.80
BenchmarkBasic
Function · 0.80
BenchmarkInstruct
Function · 0.80
BenchmarkOrdone
Function · 0.80
BenchmarkPremul
Function · 0.80
BenchmarkOnearr
Function · 0.80
BenchmarkOnearrRev
Function · 0.80
BenchmarkOnearrRevAdvance
Function · 0.80
BenchmarkOnearrRevSpecialize
Function · 0.80
BenchmarkOnearrRevSpecializeAdvance
Function · 0.80
BenchmarkOnearrPremul
Function · 0.80
Calls
no outgoing calls
Tested by
15
init
Function · 0.64
testIterator
Function · 0.64
BenchmarkBasic
Function · 0.64
BenchmarkInstruct
Function · 0.64
BenchmarkOrdone
Function · 0.64
BenchmarkPremul
Function · 0.64
BenchmarkOnearr
Function · 0.64
BenchmarkOnearrRev
Function · 0.64
BenchmarkOnearrRevAdvance
Function · 0.64
BenchmarkOnearrRevSpecialize
Function · 0.64
BenchmarkOnearrRevSpecializeAdvance
Function · 0.64
BenchmarkOnearrPremul
Function · 0.64