diff options
author | Baozeng Ding <sploving1@163.com> | 2009-06-29 15:27:06 +0000 |
---|---|---|
committer | Baozeng Ding <sploving1@163.com> | 2009-06-29 15:27:06 +0000 |
commit | 86a125e910f5be3750ecf02dff73c3940e746e47 (patch) | |
tree | a3c5dcbde53b8843f8ec0b7ce8ede35512b24909 /Examples/scilab/variables | |
parent | 5d23e5310a1406de0dc189d0c86a2d74f8adc825 (diff) | |
download | swig-86a125e910f5be3750ecf02dff73c3940e746e47.tar.gz |
add complex matrix support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/scilab/variables')
-rw-r--r-- | Examples/scilab/variables/example.c | 3 | ||||
-rw-r--r-- | Examples/scilab/variables/example.i | 2 | ||||
-rw-r--r-- | Examples/scilab/variables/runme.sci | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/Examples/scilab/variables/example.c b/Examples/scilab/variables/example.c index 88e959cdf..0818bff81 100644 --- a/Examples/scilab/variables/example.c +++ b/Examples/scilab/variables/example.c @@ -23,6 +23,9 @@ char cvar = 0; float fvar = 0; double dvar = 0; char *strvar=0; +double *Foo1; +double *Foo2; + /* A debugging function to print out their values */ diff --git a/Examples/scilab/variables/example.i b/Examples/scilab/variables/example.i index a7c198f40..9f9bb52cd 100644 --- a/Examples/scilab/variables/example.i +++ b/Examples/scilab/variables/example.i @@ -17,6 +17,8 @@ extern float fvar; extern double dvar; extern char *strvar; + extern double *Foo1; + extern double *Foo2; %} diff --git a/Examples/scilab/variables/runme.sci b/Examples/scilab/variables/runme.sci index cf42539f0..95d4ae6c9 100644 --- a/Examples/scilab/variables/runme.sci +++ b/Examples/scilab/variables/runme.sci @@ -18,6 +18,8 @@ cvar_set ("S"); fvar_set (3.14159); dvar_set (2.1828); strvar_set("Hello World"); +Foo1_set([1,2,3;4,5,6]); +Foo2_set([1+2*%i,2+3*%i;3+4*%i,7+8*%i]); // Now print out the values of the variables @@ -35,6 +37,8 @@ printf("fvar = %f\n", fvar_get()); printf("dvar = %f\n", dvar_get()); printf("cvar = %s\n", cvar_get()); printf("strvar = %s\n", strvar_get()); +Foo1_get(); +Foo2_get(); printf("\nVariables (values printed from C)\n"); |