Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
103
npa = randomVec.Arrays[0]
104
105
def
compare(arr, tol):
106
assert algs.all(algs.abs(arr) < tol)
107
108
# Test operators
109
compare(1 + randomVec - 1 - randomVec, 1E-4)
Callers
2
TestNumpyInterface.py
File · 0.70
IntersectWithContour
Function · 0.50
Calls
2
all
Method · 0.45
abs
Method · 0.45
Tested by
no test coverage detected