MCPcopy Create free account
hub / github.com/CompVis/zigma / sgn

Function sgn

utils/utils_gilbert.py:21–22  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

19
20
21def sgn(x):
22 return -1 if x < 0 else (1 if x > 0 else 0)
23
24
25def in_bounds(x, y, x_s, y_s, ax, ay, bx, by):

Callers 1

gilbert_xy2d_rFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected