summaryrefslogtreecommitdiff
path: root/Examples/guile/matrix/vector.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/guile/matrix/vector.i')
-rw-r--r--Examples/guile/matrix/vector.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/Examples/guile/matrix/vector.i b/Examples/guile/matrix/vector.i
new file mode 100644
index 0000000..b6c2ef9
--- /dev/null
+++ b/Examples/guile/matrix/vector.i
@@ -0,0 +1,22 @@
+//
+// FILE : vector.i
+
+%{
+#include "vector.h"
+%}
+
+%inline {
+
+extern Vector *createv(double x,double y,double z,double w);
+/* Creates a new vector v(x,y,z,w) */
+
+extern void destroyv(Vector *v);
+/* Destroys the vector v */
+
+extern void printv(Vector *v);
+/* Prints out the vector v */
+
+extern void transform(double **T, Vector *v, Vector *t);
+/* Transforms vector c to vector t by M*v --> t */
+
+}