xtensor-stack / Xtensor.jl

Julia package for xtensor-julia
http://quantstack.net/xtensor
BSD 3-Clause "New" or "Revised" License
41 stars 6 forks source link

Add complex test #53

Closed SylvainCorlay closed 7 years ago

SylvainCorlay commented 7 years ago

As per https://github.com/JuliaInterop/CxxWrap.jl/pull/69, the jlcxx::mapped_julia_type<std::complex<T>> should be exactly std::complex<T>. This is not the case in upstream CxxWrap because doing so creates a runtime issue on windows for an unknown reason.

For this reason, we specialize the inner types for std::complex<T> so that the correct type is used.

SylvainCorlay commented 7 years ago

@nbecker this includes a workaround for handling arrays of complex numbers.

SylvainCorlay commented 7 years ago

cc @barche.