[PROJ] Vector/SIMD acceleration

Andrew Bell andrew.bell.ia at gmail.com
Fri Apr 17 13:00:40 PDT 2020


On Fri, Apr 17, 2020 at 3:36 PM Even Rouault <even.rouault at spatialys.com>
wrote:

> On vendredi 17 avril 2020 13:29:17 CEST Charles Karney wrote:
>
> > I wonder whether it's possible to get the benefits of vectorization
>
> > without massive of changes to the code.
>
>
>
> That's exactly what I had in mind.
>
>
>
> > Perhaps the basic projection
>
> > functions could be templated to allow Eigen arrays of PJ_LP's to be
>
> > passed. Eigen already has overloads for componentwise arithmetic
>
> > operations and handles SIMD vectorization automatically.
>
>
>
> I didn't know Eigen, but from a quick look & try, it seems I've done
> something similar.
>
> At least for types like Vector2d, Vector4d. But Eigen is quite limited in
> the operations it supports. Just +, -, *, /. No comparisons, sqrt, sin,
> cos, etc.
>
> Which my prototype supports (through sleef for sin, cos, etc).
>

https://eigen.tuxfamily.org/dox/group__CoeffwiseMathFunctions.html

-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20200417/b6bf916e/attachment.html>


More information about the PROJ mailing list