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

Method ApplyConst

matrix/dense_math.go:230–247  ·  view source on GitHub ↗

Compute A = fn(A, x) 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. For all i in A: A[i] = fn(A[i], x) if len(indexes) == 0 For all i in indexes: A[indexes[i]] = fn(A[indexes[i

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

PowMethod · 0.95
scale2Function · 0.45
ApplyConstFunction · 0.45
ApplyConstFunction · 0.45

Calls 4

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

Tested by

no test coverage detected