Fix C# std::complex pass by value typemaps
This commit is contained in:
parent
e01cfd70c7
commit
a55981b883
7 changed files with 45 additions and 20 deletions
|
|
@ -17,8 +17,11 @@ if complextest.Conjf2(a) != a.conjugate():
|
|||
|
||||
v = (complex(1, 2), complex(2, 3), complex(4, 3), 1)
|
||||
|
||||
if len(complextest.Copy_h(v)) != 2:
|
||||
raise RuntimeError("Copy_h failed")
|
||||
if len(complextest.CopyHalf(v)) != 2:
|
||||
raise RuntimeError("CopyHalf failed")
|
||||
|
||||
if len(complextest.CopyHalfRef(v)) != 2:
|
||||
raise RuntimeError("CopyHalfRef failed")
|
||||
|
||||
p = complextest.ComplexPair()
|
||||
p.z1 = complex(0, 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue