Re: [Numpy-discussion] Trick for fast

2012-02-03 Thread Søren Gammelmark
What about this? A = einsum(i,ij-, mass, x ** 2) B = einsum(i,ij,ik-jk, mass, x, x) I = A * eye(3) - B /Søren On 3 February 2012 15:10, josef.p...@gmail.com wrote: On Fri, Feb 3, 2012 at 8:44 AM, Alan G Isaac alan.is...@gmail.com wrote: On 2/3/2012 5:16 AM, santhu kumar wrote: x = nX3

[Numpy-discussion] einsum evaluation order

2012-01-24 Thread Søren Gammelmark
operations (e.g. tensordot). How to incorporate issues of storage layout etc, however, I have no idea. In any case I think it might be nice to write explicitly how the expression in einsum is evaluated in the docs. Søren Gammelmark PhD-student Department of Physics and Astronomy Aarhus University

Re: [Numpy-discussion] Installing numpy with MKL

2010-08-05 Thread Søren Gammelmark
It seems to me, that you are using an libiomp5 for Intel Itanium (lib/intel64) or such, but an MKL for EM64T-processors (lib/em64t). In my case I used EM64T in all cases (I'm running AMD Opteron) . I don't think the two types of libraries are compatible, but I might be wrong. /Søren On

Re: [Numpy-discussion] Installing numpy with MKL

2010-08-04 Thread Søren Gammelmark
I wouldn't know for sure, but could this be related to changes to the gcc compiler in Fedora 13 (with respect to implicit DSO linking) or would that only be an issue at build-time? http://fedoraproject.org/w/index.php?title=UnderstandingDSOLinkChange I'm not entirely sure I understand

[Numpy-discussion] Installing numpy with MKL

2010-08-03 Thread Søren Gammelmark
of thing but I usually have few problems compiling a stand-alone Fortran or C/C++ program that uses MKL. I would greatly appreciate it if anyone could help with this. Regards Søren Gammelmark P.s: The operating system is Linux/CentOS 4.4, x86_64 Running from numpy source directory. F2PY Version 2

Re: [Numpy-discussion] Installing numpy with MKL

2010-08-03 Thread Søren Gammelmark
you found a less invasive method since? Now on to SciPy... :-) Thankyou for your help Søren On 03-08-2010 18:33, Dag Sverre Seljebotn wrote: Søren Gammelmark wrote: Hi everyone I realize that this e-mail has been written a lot of times before. I have, however, not been able to make