diff --git a/.gitignore b/.gitignore index a3304d22..2c123b52 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,5 @@ Doxygen/history.txt Doxygen/dsp.dxy __pycache__/ *.pyd +.DS_Store +.swiftpm/ diff --git a/PythonWrapper/examples/testdsp5.py b/PythonWrapper/examples/testdsp5.py index ae908ce3..24e09a84 100755 --- a/PythonWrapper/examples/testdsp5.py +++ b/PythonWrapper/examples/testdsp5.py @@ -91,7 +91,10 @@ scaled=a * w.T ref=np.sum(scaled,axis=0)/np.sum(w) 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) assert_allclose(ref,result,1e-6)