Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/arnauddri/algorithms
/ GetElm
Method
GetElm
data-structures/matrix/matrix.go:51–53 ·
view source on GitHub ↗
(i int, j int)
Source
from the content-addressed store, hash-verified
49
}
50
51
func
(A *Matrix) GetElm(i int, j int) float64 {
52
return
A.Elements[i*A.step+j]
53
}
54
55
func
(A *Matrix) SetElm(i int, j int, v float64) {
56
A.Elements[i*A.step+j] = v
Callers
13
diagonalCopy
Method · 0.95
copy
Method · 0.95
trace
Method · 0.95
add
Method · 0.95
substract
Method · 0.95
scale
Method · 0.95
Add
Function · 0.80
Substract
Function · 0.80
Multiply
Function · 0.80
TestGetElm
Function · 0.80
TestSetElm
Function · 0.80
Multiply
Function · 0.80
Calls
no outgoing calls
Tested by
2
TestGetElm
Function · 0.64
TestSetElm
Function · 0.64