Open asfimport opened 7 years ago
Julien Le Dem / @julienledem:
I see several possibilities:
Wes McKinney / @wesm:
As a practical matter, complex64 and complex128 probably need to be compatible with std::complex
, which is implemented as a C struct with the values next to each other in memory – this is used in TensorFlow for example:
in C++, this boils down to
template<typename _Tp>
struct complex
{
<SNIP>
private:
_Tp _M_real;
_Tp _M_imag;
};
Wes McKinney / @wesm: This might be simpler to handle as an ExtensionType in C++ to start
Mailing list discussion about this from 2021: https://www.mail-archive.com/dev@arrow.apache.org/msg23352.html
lists.apache.org URL: https://lists.apache.org/thread/bngbnnhyq7lkyx8cg7l2qs1msd0ngg82
Numerical computing libraries like NumPy and TensorFlow feature complex64 and complex128 numbers
Reporter: Wes McKinney / @wesm
PRs and other links:
Note: This issue was originally created as ARROW-638. Please see the migration documentation for further details.