projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
test-suite
/
octave
/
complextest_runme.m
1
complextest
2
3
a = complex(-1,2);
4
5
if (complextest.Conj(a) != a.conjugate())
6
error("bad complex mapping")
7
endif
8
9
if (complextest.Conjf(a) != a.conjugate())
10
error("bad complex mapping")
11
endif
12
13
14
v = (complex(1,2), complex(2,3), complex(4,3), 1);
15
16
try
17
complextest.Copy_h(v);
18
catch
19
end_try_catch