Re: [Numpy-discussion] Extracting individual columns in Numpy

2014-10-08 Thread suchith
Ok...I got it. Sorry for stupid question. On Thursday 09 October 2014 11:12 AM, suchith wrote: > How to extract individual columns from a numpy array? > For example, consider this script > > import numpy as np > a = np.array([[1,2,3],[4,5,6],[7,8,9]]) > a[0][:] > a[:][0] > > Now both a[:][0] and a

Re: [Numpy-discussion] Extracting individual columns in Numpy

2014-10-08 Thread Andrew Nelson
>import numpy as np a = np.array([[1,2,3],[4,5,6],[7,8,9]]) a[0][:] a[:][0] Now both a[:][0] and a[0][:] are outputting the same result, i.e np.array([1,2,3]). If I want to extract the array [[1],[4],[7]] then what should I do? Is it possible to add this feature? The feature is already there: a[:

Re: [Numpy-discussion] Extracting individual columns in Numpy

2014-10-08 Thread Nathaniel Smith
On Thu, Oct 9, 2014 at 6:42 AM, suchith wrote: > How to extract individual columns from a numpy array? > For example, consider this script > > import numpy as np > a = np.array([[1,2,3],[4,5,6],[7,8,9]]) > a[0][:] > a[:][0] > > Now both a[:][0] and a[0][:] are outputting the same result, i.e > np.

[Numpy-discussion] Extracting individual columns in Numpy

2014-10-08 Thread suchith
How to extract individual columns from a numpy array? For example, consider this script import numpy as np a = np.array([[1,2,3],[4,5,6],[7,8,9]]) a[0][:] a[:][0] Now both a[:][0] and a[0][:] are outputting the same result, i.e np.array([1,2,3]). If I want to extract the array [[1],[4],[7]] the

Re: [Numpy-discussion] Copyright status of NumPy binaries on Windows/OS X

2014-10-08 Thread Travis Oliphant
Ah, yes, I hadn't realized that OpenBLAS could not be compiled with Visual Studio. Thanks for that explanation. Also, I had heard that 32bit mingw on Windows could still produce 64-bit binaries. It looks like there are OpenBLAS binaries available for Windows 32 and Windows 64 (two flavors

Re: [Numpy-discussion] Copyright status of NumPy binaries on Windows/OS X

2014-10-08 Thread Sturla Molden
Travis Oliphant wrote: > Microsoft has actually released their Visual Studio 2008 compiler stack so > that OpenBLAS and ATLAS could be compiled on Windows for these platforms as > well. I would be very interested to see conda packages for these > libraries which should be pretty straightforward

Re: [Numpy-discussion] Copyright status of NumPy binaries on Windows/OS X

2014-10-08 Thread Travis Oliphant
Only on Windows does free Anaconda link against the MKL. But, you are correct, that the MKL-linked binaries can only be re-distributed if the person or entity doing the re-distribution has a valid MKL license from Intel. Microsoft has actually released their Visual Studio 2008 compiler stack

Re: [Numpy-discussion] Copyright status of NumPy binaries on Windows/OS X

2014-10-08 Thread Carl Kleffner
Hi Travis, the Anaconda binaries (free packages as well as the non-free addons) link against Intel MKL - not against ATLAS. Are this binaries really free redistributable as stated? The lack of numpy/scipy 64bit windows binaries with opensource blas/lapack with was one of the main reasons to start