summaryrefslogtreecommitdiffstats
path: root/scilab_doc
diff options
context:
space:
mode:
authorFarid Belahcene <farid.belahcene@inria.fr>2006-09-01 09:26:40 +0000
committerFarid Belahcene <farid.belahcene@inria.fr>2006-09-01 09:26:40 +0000
commita220d17fb9d88141a0e38033a55768adcb8fc52b (patch)
tree01160e0244d1d17ac71fa64d82bf9c96dde9b0f7 /scilab_doc
parentf81763976443c5e3ab6af2d0b72b0c319e3f0229 (diff)
downloadscilab-a220d17fb9d88141a0e38033a55768adcb8fc52b.zip
scilab-a220d17fb9d88141a0e38033a55768adcb8fc52b.tar.gz
add vectsum.c routine
Diffstat (limited to 'scilab_doc')
-rw-r--r--scilab_doc/toolbox_guide/toolbox_example/src/vectsum.c8
1 files changed, 8 insertions, 0 deletions
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
index 0000000..873635f
--- /dev/null
+++ b/scilab_doc/toolbox_guide/toolbox_example/src/vectsum.c
@@ -0,0 +1,8 @@
1void vectsum(int n, double * a, double * b, double * y)
2{
3 int k;
4 for (k = 0; k < n; ++k)
5 y[k] = a[k] + b[k];
6}
7
8