MCPcopy Index your code
hub / github.com/gonum/plot / X

Method X

plotter/contour_example_test.go:64–70  ·  view source on GitHub ↗
(c int)

Source from the content-addressed store, hash-verified

62func (g unitGrid) Dims() (c, r int) { r, c = g.Matrix.Dims(); return c, r }
63func (g unitGrid) Z(c, r int) float64 { return g.Matrix.At(r, c) }
64func (g unitGrid) X(c int) float64 {
65 _, n := g.Matrix.Dims()
66 if c < 0 || c >= n {
67 panic("index out of range")
68 }
69 return float64(c)
70}
71func (g unitGrid) Y(r int) float64 {
72 m, _ := g.Matrix.Dims()
73 if r < 0 || r >= m {

Callers

nothing calls this directly

Calls 1

DimsMethod · 0.65

Tested by

no test coverage detected