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

Method subpath

plotter/contour.go:599–605  ·  view source on GitHub ↗

subpath returns a subpath given the slice of point indices into the path.

(i []int)

Source from the content-addressed store, hash-verified

597// subpath returns a subpath given the slice of point indices
598// into the path.
599func (p path) subpath(i []int) path {
600 pa := make(path, 0, len(i))
601 for _, n := range i {
602 pa = append(pa, p[n])
603 }
604 return pa
605}
606
607// linearPathsIn returns the linear paths in g created from p.
608// If g contains any cycles linearPaths will panic.

Callers 2

TestJohnsonFunction · 0.80
exciseLoopsMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestJohnsonFunction · 0.64