MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / gradient_quad

Function gradient_quad

lib/matplotlib/tests/test_triangulation.py:478–479  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

476 return a*(x-0.5)**2 + b*(y-0.5)**2 + c*x*y
477
478 def gradient_quad(x, y):
479 return (2*a*(x-0.5) + c*y, 2*b*(y-0.5) + c*x)
480
481 x = np.array([0.2, 0.33367, 0.669, 0., 1., 1., 0.])
482 y = np.array([0.3, 0.80755, 0.4335, 0., 0., 1., 1.])

Callers 1

test_triinterpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…