MCPcopy Create free account
hub / github.com/Kitware/VTK / compare

Function compare

Common/Core/Testing/Python/TestNumpyInterface.py:105–106  ·  view source on GitHub ↗
(arr, tol)

Source from the content-addressed store, hash-verified

103npa = randomVec.Arrays[0]
104
105def compare(arr, tol):
106 assert algs.all(algs.abs(arr) < tol)
107
108# Test operators
109compare(1 + randomVec - 1 - randomVec, 1E-4)

Callers 2

IntersectWithContourFunction · 0.50

Calls 2

allMethod · 0.45
absMethod · 0.45

Tested by

no test coverage detected