Add missing declaration for std::complex

Fixes missing type information for std::complex in scripting languages.
Closes #732.

Update Javascript and Octave complextest, although they don't actually
get run as they don't work
This commit is contained in:
William S Fulton 2017-10-02 09:03:27 +01:00
commit e01cfd70c7
11 changed files with 87 additions and 15 deletions

View file

@ -15,10 +15,15 @@ if (complextest.Conjf(a) != a.conjugate())
error("bad complex mapping")
endif
if (complextest.Conj2(a) != a.conjugate())
error("bad complex mapping")
endif
if (complextest.Conjf2(a) != a.conjugate())
error("bad complex mapping")
endif
v = (complex(1,2), complex(2,3), complex(4,3), 1);
try
complextest.Copy_h(v);
catch
end_try_catch
complextest.Copy_h(v);