Small change to a PythonWrapper test.

pull/64/head
Christophe Favergeon 3 years ago
parent 302897a523
commit b9b58d044e

2
.gitignore vendored

@ -28,3 +28,5 @@ Doxygen/history.txt
Doxygen/dsp.dxy Doxygen/dsp.dxy
__pycache__/ __pycache__/
*.pyd *.pyd
.DS_Store
.swiftpm/

@ -91,7 +91,10 @@ scaled=a * w.T
ref=np.sum(scaled,axis=0)/np.sum(w) ref=np.sum(scaled,axis=0)/np.sum(w)
print(ref) print(ref)
result=dsp.arm_barycenter_f32(np.array(a).reshape(12*3),w.reshape(12),12,3) points = np.array(a).reshape(12*3)
weights = w.reshape(12)
result=dsp.arm_barycenter_f32(points,weights,12,3)
print(result) print(result)
assert_allclose(ref,result,1e-6) assert_allclose(ref,result,1e-6)

Loading…
Cancel
Save