
import rust_ext
import numpy as np

a = np.array([1.0, 2.0])
rust_ext.mult(3, a)
print(a)

@@ -1,16 +1,38 @@
+#!/usr/bin/env python%0A
 %0Aimport rust_ext
@@ -52,17 +52,17 @@
  as np%0A%0A
-a
+x
  = np.ar
@@ -81,33 +81,70 @@
 0%5D)%0A
-rust_ext.mult(3, a
+y = np.array(%5B2.0, 3.0%5D)%0Aresult = rust_ext.axpy(3, x, y
 )%0Aprint(
 a)%0A
@@ -140,11 +140,16 @@
 )%0Aprint(
-a
+result
 )%0A

Use axpy on sample Python script