MCPcopy
hub / github.com/arnauddri/algorithms / SetElm

Method SetElm

data-structures/matrix/matrix.go:55–57  ·  view source on GitHub ↗
(i int, j int, v float64)

Source from the content-addressed store, hash-verified

53}
54
55func (A *Matrix) SetElm(i int, j int, v float64) {
56 A.Elements[i*A.step+j] = v
57}
58
59func (A *Matrix) diagonalCopy() []float64 {
60 diag := make([]float64, A.cols)

Callers 9

addMethod · 0.95
substractMethod · 0.95
scaleMethod · 0.95
AddFunction · 0.80
SubstractFunction · 0.80
MultiplyFunction · 0.80
TestSetElmFunction · 0.80
MultiplyFunction · 0.80
recurseFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestSetElmFunction · 0.64