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

Function ApplyConst

matrix/cmath/math.go:160–166  ·  view source on GitHub ↗

Make a copy C of A and apply function fn element wise to C. For indexes is not empty then C[indexes[i]] = fn(C[indexes[i]], x). Returns a new matrix.

(A *matrix.ComplexMatrix, x complex128, fn func(complex128, complex128) complex128, 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