dmlc / dlpack

common in-memory tensor structure

Home Page:https://dmlc.github.io/dlpack/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support "struct of arrays" based complex numbers

leofang opened this issue · 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.

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

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