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

Function ApplyConstValues

matrix/math.go:156–162  ·  view source on GitHub ↗

Makes a copy C of A and applies function fn to elements of the new copy C pointed by the contexts of indexes array. New value of element in C is fn(A[indexes[i]], values[i]). Returns new matrix.

(A *FloatMatrix, 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

nothing calls this directly

Calls 2

CopyMethod · 0.65
ApplyConstValuesMethod · 0.45

Tested by

no test coverage detected