Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
55
func
(A *Matrix) SetElm(i int, j int, v float64) {
56
A.Elements[i*A.step+j] = v
57
}
58
59
func
(A *Matrix) diagonalCopy() []float64 {
60
diag := make([]float64, A.cols)
Callers
9
add
Method · 0.95
substract
Method · 0.95
scale
Method · 0.95
Add
Function · 0.80
Substract
Function · 0.80
Multiply
Function · 0.80
TestSetElm
Function · 0.80
Multiply
Function · 0.80
recurse
Function · 0.80
Calls
no outgoing calls
Tested by
1
TestSetElm
Function · 0.64