dlpack icon indicating copy to clipboard operation
dlpack copied to clipboard

Support "struct of arrays" based complex numbers

Open leofang opened this issue 4 years ago • 3 comments

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 avatar Feb 08 '21 20:02 leofang

Hi @tqchen, I may have missed something -- is there any PR that addressed the SoA need?

leofang avatar Jan 05 '23 17:01 leofang

Sorry, I thought it was refering to the AoS approach when skiming through, feel free to reopen

tqchen avatar Jan 05 '23 17:01 tqchen