I am new to Eigen and looking to learn ArrayFire for GPU acceleration. I would like to implement ArrayFire within my existing Eigen code rather than having to re-code all of my functions.
Is there a way to convert from an ArrayFire matrix to an Eigen matrix, and vice-versa?
Thanks!
Untested since I'm just looking at the ArrayFire documentation.
It's important that a plain matrix or 2D array is used on Eigen's side (not an
Eigen::Ref
or other type of sub-matrix block) since neither the constructor nor any of the copy functions accept a column stride.