Support "struct of arrays" based complex numbers
leofang opened this issue · 2 comments
leofang commented
Follow-up of #50.
In #58, kDLComplex
was added to support "array of structs" based complex numbers, which is the compact memory layout used in C/C++/Python/etc. However, as pointed out in #50 there is a need to support the "struct of arrays" layout as well (a struct containing two pointers for real and imag). This issue is to track such a need.
leofang commented
Hi @tqchen, I may have missed something -- is there any PR that addressed the SoA need?
tqchen commented
Sorry, I thought it was refering to the AoS approach when skiming through, feel free to reopen