MCPcopy Index your code
hub / github.com/andeya/algorithm / Apply

Method Apply

matrix/dense_math.go:206–223  ·  view source on GitHub ↗

Compute A = fn(A) by applying function fn element wise to A. If indexes array is non-empty function is applied to elements of A indexed by the contents of indexes.

(fn func(float64) float64, indexes ...int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

updateScalingFunction · 0.95
ExpMethod · 0.95
SqrtMethod · 0.95
LogMethod · 0.95
ApplyFunction · 0.45
ApplyFunction · 0.45

Calls 4

realIndexFunction · 0.85
RowsMethod · 0.65
LeadingIndexMethod · 0.65
NumElementsMethod · 0.65

Tested by

no test coverage detected