[Cython] aritmetic with arrays in Cython
Sturla Molden
sturla.molden at gmail.com
Sun Aug 10 20:41:31 CEST 2014
Ian Henriksen
<insertinterestingnamehere at gmail.com> wrote:
> Maybe I should clarify a little about why eigen is a good place to start.
> According to <a
> href="http://eigen.tuxfamily.org/dox/TopicLazyEvaluation.html">http://eigen.tuxfamily.org/dox/TopicLazyEvaluation.html</a>
> it
> already takes care of things like the elimination of temporary variables
> and common subexpression reduction at compile time. This should make it
> possible to compile array expressions in Cython without having to
> re-implement those sorts of optimizations. Ideally we would just have to
> map memory view operations to corresponding equivalents from eigen. It's
> not yet clear to me how to do things with arbitrary-dimensional arrays or
> broadcasting, but, given some more time, a solution may present itself.
> -Ian
cilkplus is what you want, not Eigen.
But if you are serious about number crunching, learn Fortran 95.
Sturla
More information about the cython-devel
mailing list