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

Function ApplyConst

matrix/math.go:145–151  ·  view source on GitHub ↗

Makes a copy C of A and applies function fn to elements of then new copy C. If indexes is non empty then function is applied to all elements of C indexed by indexes array. Otherwise function is applied to all elements of A. New value of element in C is fn(A[i], x). Returns a new matrix.

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

PowFunction · 0.70

Calls 2

CopyMethod · 0.65
ApplyConstMethod · 0.45

Tested by

no test coverage detected