add vectsum.c routine
Farid Belahcene [Fri, 1 Sep 2006 09:26:40 +0000 (09:26 +0000)]
scilab_doc/toolbox_guide/toolbox_example/src/vectsum.c [new file with mode: 0644]

diff --git a/scilab_doc/toolbox_guide/toolbox_example/src/vectsum.c b/scilab_doc/toolbox_guide/toolbox_example/src/vectsum.c
new file mode 100644 (file)
index 0000000..873635f
--- /dev/null
@@ -0,0 +1,8 @@
+void vectsum(int n, double * a, double * b, double * y)
+{
+        int k;
+        for (k = 0; k < n; ++k) 
+        y[k] = a[k] + b[k];
+}
+
+