[Cython] aritmetic with arrays in Cython
Matěj Laitl
matej at laitl.cz
Tue Aug 12 18:22:46 CEST 2014
On Tuesday 12 of August 2014 15:18:12 Sturla Molden wrote:
> Another thing to observe is that Eigen depends on the C++ compiler to elide
> temporary arrays.
Either I don't understand you, or you don't understand Eigen. Eigen overloads
operator=() to circumvent need for temporary arrays. It is *not* an
optimisation on the compiler part, the code is explicitly written to do so,
where it is beneficial for performance [1].
Matěj
[1] http://eigen.tuxfamily.org/dox/TopicLazyEvaluation.html
More information about the cython-devel
mailing list