Re: [Cython] aritmetic with arrays in Cython

2014-10-24 Thread Ian Henriksen
On Fri, Oct 24, 2014 at 2:36 AM, Stefan Behnel wrote: > Ian Henriksen schrieb am 09.08.2014 um 00:15: > > On Fri, Aug 8, 2014 at 3:09 PM, Ian Henriksen wrote: > >> On Fri, Aug 8, 2014 at 12:02 PM, Julian Taylor wrote: > >> Stefan, thanks for the direction. I think I know how to proceed now. > It'

Re: [Cython] aritmetic with arrays in Cython

2014-10-24 Thread Stefan Behnel
Ian Henriksen schrieb am 09.08.2014 um 00:15: > On Fri, Aug 8, 2014 at 3:09 PM, Ian Henriksen wrote: >> On Fri, Aug 8, 2014 at 12:02 PM, Julian Taylor wrote: >> Stefan, thanks for the direction. I think I know how to proceed now. It'll >> probably take me some time to learn how to do all this, but

Re: [Cython] aritmetic with arrays in Cython

2014-08-12 Thread Matěj Laitl
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 *no

Re: [Cython] aritmetic with arrays in Cython

2014-08-12 Thread Matěj Laitl
On Tuesday 12 of August 2014 15:18:12 Sturla Molden wrote: > But using Eigen will taint the output with Eigen's license, since the Eigen > library is statically linked. There is no such thing as "Eigen library". Eigen is fully implemented in header files. Cython would just generate C++ code that

Re: [Cython] aritmetic with arrays in Cython

2014-08-12 Thread Stefan Behnel
Sturla Molden schrieb am 12.08.2014 um 17:18: > But using Eigen will taint the output with Eigen's license Which is ok for many users, definitely those who only run their own code locally. And the others can eventually use a different backend. > OTOH, Cilkplus is just a compiler extension for C

Re: [Cython] aritmetic with arrays in Cython

2014-08-12 Thread Sturla Molden
But using Eigen will taint the output with Eigen's license, since the Eigen library is statically linked. OTOH, Cilkplus is just a compiler extension for C and C++. AFAIK, it is currently available for Intel C++ and Clang (also by Intel) and GCC 4.9. On MSVC I believe it requires Intel Parallel S

Re: [Cython] aritmetic with arrays in Cython

2014-08-11 Thread Stefan Behnel
Ian Henriksen schrieb am 12.08.2014 um 04:34: > On Sun, Aug 10, 2014 at 12:41 PM, Sturla Molden wrote: >> Ian Henriksen wrote: >>> Maybe I should clarify a little about why eigen is a good place to start. >>> According to >> href="http://eigen.tuxfamily.org/dox/TopicLazyEvaluation.html";> >> http:/

Re: [Cython] aritmetic with arrays in Cython

2014-08-11 Thread Ian Henriksen
On Sun, Aug 10, 2014 at 12:41 PM, Sturla Molden wrote: > Ian Henriksen > wrote: > > > Maybe I should clarify a little about why eigen is a good place to start. > > According to > href="http://eigen.tuxfamily.org/dox/TopicLazyEvaluation.html";> > http://eigen.tuxfamily.org/dox/TopicLazyEvaluatio

Re: [Cython] aritmetic with arrays in Cython

2014-08-10 Thread Sturla Molden
Ian Henriksen wrote: > Maybe I should clarify a little about why eigen is a good place to start. > According to href="http://eigen.tuxfamily.org/dox/TopicLazyEvaluation.html";>http://eigen.tuxfamily.org/dox/TopicLazyEvaluation.html > it > already takes care of things like the elimination of temp

Re: [Cython] aritmetic with arrays in Cython

2014-08-08 Thread Ian Henriksen
On Fri, Aug 8, 2014 at 3:09 PM, Ian Henriksen < insertinterestingnameh...@gmail.com> wrote: > On Fri, Aug 8, 2014 at 12:02 PM, Julian Taylor < > jtaylor.deb...@googlemail.com> wrote: > >> On 08.08.2014 19:36, Stefan Behnel wrote: >> > Hi, >> > >> > please don't top-post. >> > >> > Ian Henriksen sc

Re: [Cython] aritmetic with arrays in Cython

2014-08-08 Thread Ian Henriksen
On Fri, Aug 8, 2014 at 12:02 PM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > On 08.08.2014 19:36, Stefan Behnel wrote: > > Hi, > > > > please don't top-post. > > > > Ian Henriksen schrieb am 08.08.2014 um 18:47: > >> I'd like to work on it. That was why I asked. It's been bothering me

Re: [Cython] aritmetic with arrays in Cython

2014-08-08 Thread Julian Taylor
On 08.08.2014 19:36, Stefan Behnel wrote: > Hi, > > please don't top-post. > > Ian Henriksen schrieb am 08.08.2014 um 18:47: >> I'd like to work on it. That was why I asked. It's been bothering me for >> some time that we don't have this feature yet. This will take me some time >> though since I'

Re: [Cython] aritmetic with arrays in Cython

2014-08-08 Thread Stefan Behnel
Hi, please don't top-post. Ian Henriksen schrieb am 08.08.2014 um 18:47: > I'd like to work on it. That was why I asked. It's been bothering me for > some time that we don't have this feature yet. This will take me some time > though since I'm not at all familiar with Cython's internals. I've use

Re: [Cython] aritmetic with arrays in Cython

2014-08-08 Thread Ian Henriksen
I'd like to work on it. That was why I asked. It's been bothering me for some time that we don't have this feature yet. This will take me some time though since I'm not at all familiar with Cython's internals. I've used it in relatively small settings for speeding up array operations and wrapping e

Re: [Cython] aritmetic with arrays in Cython

2014-08-08 Thread Stefan Behnel
Matěj Laitl schrieb am 08.08.2014 um 11:07: > On Friday 08 of August 2014 07:05:08 Stefan Behnel wrote: >> Eigen can apparently do these things already: >> >> http://eigen.tuxfamily.org/dox/TopicLazyEvaluation.html >> >> It might not be all that much work to integrate this with Cython to enable >>

Re: [Cython] aritmetic with arrays in Cython

2014-08-08 Thread Matěj Laitl
On Friday 08 of August 2014 07:05:08 Stefan Behnel wrote: > Ian Henriksen schrieb am 08.08.2014 um 00:58: > > On Thu, Aug 7, 2014 at 1:58 AM, Matěj Laitl wrote: > >> you may also check out https://github.com/strohel/Ceygen if it would suit > >> your needs. > > Interesting project. Thanks for shari

Re: [Cython] aritmetic with arrays in Cython

2014-08-07 Thread Stefan Behnel
Ian Henriksen schrieb am 08.08.2014 um 00:58: > On Thu, Aug 7, 2014 at 1:58 AM, Matěj Laitl wrote: >> you may also check out https://github.com/strohel/Ceygen if it would suit >> your needs. Interesting project. Thanks for sharing. > Ideally, I'm still trying to find a way to be able to do > som

Re: [Cython] aritmetic with arrays in Cython

2014-08-07 Thread Ian Henriksen
Nice module! That seems to implement most of the basic functionality I've seen lacking. Ideally, I'm still trying to find a way to be able to do something syntactically like this: cpdef whateverfunction(double[:] a, float[:] b): return a + a * b + .5 It would be ideal if that sort of thing we

Re: [Cython] aritmetic with arrays in Cython

2014-08-07 Thread Matěj Laitl
On Monday 04 of August 2014 13:11:13 Ian Henriksen wrote: > Hi all, > I noticed that some time ago there was a pull request ( > https://github.com/cython/cython/pull/144) open that was trying to > implement basic arithmetic operations with arrays. This seems to have also > been proposed in CEP 518

Re: [Cython] aritmetic with arrays in Cython

2014-08-06 Thread Ian Henriksen
Message: 3 Date: Tue, 05 Aug 2014 21:38:38 +0200 From: Julian Taylor To: Core developer mailing list of the Cython compiler Subject: Re: [Cython] aritmetic with arrays in Cython Message-ID: <53e132be.3070...@googlemail.com> Content-Type: text/plain; charset="windows-1252"

Re: [Cython] aritmetic with arrays in Cython

2014-08-05 Thread Julian Taylor
On 04.08.2014 21:11, Ian Henriksen wrote: > Hi all, > I noticed that some time ago there was a pull request > (https://github.com/cython/cython/pull/144) open that was trying to > implement basic arithmetic operations with arrays. This seems to have > also been proposed in CEP 518 > (https://github

[Cython] aritmetic with arrays in Cython

2014-08-05 Thread Ian Henriksen
Hi all, I noticed that some time ago there was a pull request ( https://github.com/cython/cython/pull/144) open that was trying to implement basic arithmetic operations with arrays. This seems to have also been proposed in CEP 518 ( https://github.com/cython/cython/wiki/enhancements-simd). What is