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

Function Apply

matrix/cmath/math.go:149–155  ·  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]]). Returns a new matrix.

(A *matrix.ComplexMatrix, fn func(complex128) complex128, indexes ...int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

ConjFunction · 0.70
ExpFunction · 0.70
LogFunction · 0.70
SqrtFunction · 0.70

Calls 2

CopyMethod · 0.65
ApplyMethod · 0.45

Tested by

no test coverage detected