MCPcopy Create free account
hub / github.com/andeya/algorithm / ApplyConstValues

Method ApplyConstValues

matrix/dense_math.go:251–264  ·  view source on GitHub ↗

Compute A = fn(A, x) by applying function fn element wise to A. For all i in indexes: A[indexes[i]] = fn(A[indexes[i]], values[i])

(values []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 2

ApplyConstValuesFunction · 0.45
ApplyConstValuesFunction · 0.45

Calls 4

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

Tested by

no test coverage detected