[Numpy-discussion] Unable to building numpy with openblas using bento or distutils

2013-05-28 Thread Dinesh B Vadhia
Maybe this is for the Scipy list but followed the instructions but the command: $ sudo python setup.py install to install Scipy failed because it couldn't find Lapack. However, the export commands were set as: $ export BLAS=/usr/local/lib/libopenblas.a $ export LAPACK=/usr/local/lib/libopenbla

Re: [Numpy-discussion] variables not defined in numpy.random__init.py__ ?

2013-03-26 Thread Dinesh B Vadhia
of Numerical Python Subject: Re: [Numpy-discussion] variables not defined in numpy.random__init.py__ ? On Mon, Mar 25, 2013 at 12:51 PM, Ralf Gommers wrote: On Mon, Mar 25, 2013 at 4:23 PM, Dinesh B Vadhia wrote: Using PyInstaller, the following error occurs: Traceback (m

Re: [Numpy-discussion] Unable to building numpy with openblas usingbento or distutils

2013-03-25 Thread Dinesh B Vadhia
Caveat: Not tested but it did look interesting: http://osdf.github.com/blog/numpyscipy-with-openblas-for-ubuntu-1204-second-try.html. Would be interested to know if it worked out as want to try out OpenBlas in the future.___ NumPy-Discussion mailing lis

[Numpy-discussion] variables not defined in numpy.random __init.py__ ?

2013-03-25 Thread Dinesh B Vadhia
Using PyInstaller, the following error occurs: Traceback (most recent call last): File "", line 9, in File "//usr/lib/python2.7/dist-packages/PIL/Image.py", line 355, in init __import__(f, globals(), locals(), []) File "//usr/lib/python2.7/dist-packages/PIL/IptcImagePlugin.py", line 23,

Re: [Numpy-discussion] Yes, this one again "ImportError: No module named multiarray"

2013-03-13 Thread Dinesh B Vadhia
r: No module named multiarray" > On Tue, Mar 12, 2013 at 7:05 AM, Dinesh B Vadhia > wrote: >> Does that mean numpy won't work with freeze/create_executable type of >> tools >> or is there a workaround? > > I've used numpy with py2exe and py2app out of

Re: [Numpy-discussion] (@Pat Marion) Re: Yes, this one again "ImportError: No module named multiarray"

2013-03-13 Thread Dinesh B Vadhia
Many thanks Pat - the numpy discussion list is brill. Go ahead and see if the CPython developers would be interested as it is a problem that appears all the time on boards/lists. Best ... Dinesh From: Pat Marion Sent: Tuesday, March 12, 2013 7:23 AM To: Aron Ahmadia Cc: Discussion of Numerica

Re: [Numpy-discussion] Yes, this one again "ImportError: No module named multiarray"

2013-03-12 Thread Dinesh B Vadhia
multiarray" is indicating problems with your freeze setup. Most of these tools don't support locally imported extension modules. Does this help you get oriented on your problem? A On Tue, Mar 12, 2013 at 1:01 PM, Dinesh B Vadhia wrote: I've been using Numpy/Scipy for &g

[Numpy-discussion] Yes, this one again "ImportError: No module named multiarray"

2013-03-12 Thread Dinesh B Vadhia
I've been using Numpy/Scipy for >5 years so know a little on how to get around them. Recently, I've needed to either freeze or create executables with tools such as PyInstaller, Cython, Py2exe and others on both Windows (XP 32-bit, 7 64-bit) and Ubuntu (12.04) Linux (64-bit). The test program

Re: [Numpy-discussion] Want to eliminate direct for-loop

2012-02-11 Thread Dinesh B Vadhia
at 10:56 PM, Dinesh B Vadhia wrote: Could the following be written without the direct for-loop? import numpy # numpy vector r of any data type and length, eg. r = numpy.ones(25, dtype='int') # s is a list of values (of any data type), eg. s = [47, 27, 67] # c is

[Numpy-discussion] Want to eliminate direct for-loop

2012-02-11 Thread Dinesh B Vadhia
Could the following be written without the direct for-loop? import numpy # numpy vector r of any data type and length, eg. r = numpy.ones(25, dtype='int') # s is a list of values (of any data type), eg. s = [47, 27, 67] # c is a list of (variable length) lists where the sub-list elements are inde

[Numpy-discussion] Fw: sparse vectors / matrices / tensors

2011-09-20 Thread Dinesh B Vadhia
Yannick Sounds great. Would cross-post on the Scipy list as that is where the scipy.sparse developers hang out. Dinesh From: Yannick Versley Sent: Tuesday, September 20, 2011 8:33 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] sparse vectors / matrices / tensors Th

Re: [Numpy-discussion] Timeline for 1.4.0 and installer for Windows64bit ?

2009-07-31 Thread Dinesh B Vadhia
A suggestion: How about releasing Numpy for the AMD64 version first (without Scipy) and then follow up with a later release with Scipy support? This would satisfy Numpy-only users which can't be a bad thing rather than having a version that is not usable (I believe) by either Numpy or Scipy

Re: [Numpy-discussion] Import Numpy on Windows Vista x64 AMD

2009-06-27 Thread Dinesh B Vadhia
AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Import Numpy on Windows Vista x64 AMD On Sun, Jun 28, 2009 at 2:05 AM, Dinesh B Vadhia wrote: > Okay. Maybe a bit harsh, but wouldn't it be better not to have the release > as available if it cannot be imported? It ca

Re: [Numpy-discussion] Import Numpy on Windows Vista x64 AMD

2009-06-27 Thread Dinesh B Vadhia
, Jun 27, 2009 at 6:42 AM, Dinesh B Vadhia wrote: > Ticket# 1084 > (http://projects.scipy.org/numpy/timeline?from=2009-06-09T03%3A01%3A59-0500&precision=second) > says that the numpy import on Windows Vista x64 AMD systems works now. I mistakenly closed it as fixed, but it is jus

[Numpy-discussion] Import Numpy on Windows Vista x64 AMD

2009-06-26 Thread Dinesh B Vadhia
Ticket# 1084 (http://projects.scipy.org/numpy/timeline?from=2009-06-09T03%3A01%3A59-0500&precision=second) says that the numpy import on Windows Vista x64 AMD systems works now. Is this for Numpy 1.3 or 1.4 and if 1.3 has anyone tried it successfully? Thanks. Dinesh _

Re: [Numpy-discussion] Installation problem with Numpy 1.3 onWindows AMD64

2009-05-30 Thread Dinesh B Vadhia
cussion of Numerical Python Subject: Re: [Numpy-discussion] Installation problem with Numpy 1.3 onWindows AMD64 On Sat, May 30, 2009 at 8:02 AM, Dinesh B Vadhia wrote: > Hi! I just upgraded to Python 2.6.2 (from 2.5) on Windows AMD64 in order to > use Numpy 1.3 for AMD64 and got the

[Numpy-discussion] Installation problem with Numpy 1.3 on Windows AMD64

2009-05-29 Thread Dinesh B Vadhia
Hi! I just upgraded to Python 2.6.2 (from 2.5) on Windows AMD64 in order to use Numpy 1.3 for AMD64 and got the following error: - pythonw.exe has stopped working Numpy was installed both per-machine and per-user but the error persists. Python 2.6.2 works without Numpy. Any ideas? Dinesh

Re: [Numpy-discussion] How to tell whether I am using 32 bitor64bit numpy?

2009-03-28 Thread Dinesh B Vadhia
tell whether I am using 32 bitor64bit numpy? 2009/3/29 Dinesh B Vadhia : > David > > 1) 32-bit Numpy/Scipy with 32-bit Python on 64-bit Windows does work. But, > it doesn't take advantage of memory > 2gb. Indeed. But running numpy 32 bits in python 64 bits is not possible -

Re: [Numpy-discussion] How to tell whether I am using 32 bitor 64bit numpy?

2009-03-28 Thread Dinesh B Vadhia
ython Subject: Re: [Numpy-discussion] How to tell whether I am using 32 bitor 64bit numpy? Dinesh B Vadhia wrote: > Uhmmm! I installed 64-bit Python (2.5x) on a Windows 64-bit Vista > machine (yes, strange but true) hoping that the 32-bit Numpy & Scipy > libraries would work but

Re: [Numpy-discussion] How to tell whether I am using 32 bit or 64bit numpy?

2009-03-28 Thread Dinesh B Vadhia
Uhmmm! I installed 64-bit Python (2.5x) on a Windows 64-bit Vista machine (yes, strange but true) hoping that the 32-bit Numpy & Scipy libraries would work but they didn't. From: Charles R Harris Sent: Saturday, March 28, 2009 4:28 AM To: Discussion of Numerical Python Subject: Re: [Numpy

[Numpy-discussion] Sorting large numbers of co-ordinate pairs

2009-03-13 Thread Dinesh B Vadhia
I have a large number (> 1bn) of (32-bit) integer co-ordinates (i, j) in a file. The i are ordered and the j unordered eg. ... 6940, 22886 6940, 38277 6940, 43788 7007, 0 7007, 2362 7007, 34 etc. ... I want to create (j, i) with j ordered and i unordered and store in a file ie. ... 38277, 567 38

[Numpy-discussion] take a numpy

2008-09-24 Thread Dinesh B Vadhia
I'm using numpy take() to pickout elements from a (1xM) array A indicated by the index numbers in indices ie. B = A.take(indices = list_indexes) It work perfectly but as A is large the performance isn't great and was wondering if there are faster methods available or ways to improve the use of

[Numpy-discussion] Fw: array indices and dictionary

2008-09-21 Thread Dinesh B Vadhia
] J = A.shape[1] for i in xrange(0, I, 1): for j in xrange(0, J, 1): if a[i,j] > 0: dict[i].append(j) I want to find a faster/efficient way to do this without using the 2 for loops. Thanks! Dinesh From: Dinesh B Vadhia Sent: Sunday, September 21, 2008 10:28 AM

[Numpy-discussion] array indices and dictionary

2008-09-21 Thread Dinesh B Vadhia
Hi! Say, I've got a numpy array/matrix of the form: A = [[1 6 1 2 3] [4 5 4 7 0] [2 0 8 0 2] [0 0 0 3 7] [0 7 0 3 5] [8 0 3 0 6] [8 0 0 2 2] [3 1 0 4 0] [5 0 8 0 0] [2 1 0 5 6]] I want to create a dictionary of row indexes (as the keys) mapped to lists of the column indexes of non-zer

[Numpy-discussion] Array and vector initialization good practice

2008-06-17 Thread Dinesh B Vadhia
Say, there are two initialized numpy arrays: A = numpy.blah B = numpy.blah.blah With, C = A*d + B*e which doesn't have to be initialized beforehand (as A and B are and so are d and e) Now, place this in a function ie. def havingFun(d, e) C = A*d + B*e return C The main program calls h

Re: [Numpy-discussion] Does Unreasonable Matrix Behavior affectScipy Sparse

2008-04-25 Thread Dinesh B Vadhia
B Vadhia apparently wrote: > where A is sparse using scipy.sparse. ... I'm now using > the latest svn and b = Ax 1. Please post a small example. 2. Do you have the *very* latest SVN (post r5084)? Cheers, Alan Isaac ___ Numpy-discussion m

[Numpy-discussion] Does Unreasonable Matrix Behavior affect Scipy Sparse

2008-04-25 Thread Dinesh B Vadhia
I had b = Ax working where A is sparse using scipy.sparse. I'm now using the latest svn and b = Ax is not working and returns garbage results. Nothing has changed except the latest svn. Any thoughts? Dinesh ___ Numpy-discussion mailing list Numpy-d

[Numpy-discussion] dimensions too large error

2008-03-14 Thread Dinesh B Vadhia
For the following code: I = 18000 J = 33000 filename = 'ij.txt' A = scipy.asmatrix(numpy.empty((I,J), dtype=numpy.int)) for line in open(filename, 'r'): etc. The following message appears: Traceback (most recent call last): File "C:\...\py", line 362, in A= scipy.asmatri

[Numpy-discussion] Array assignment problem

2008-03-11 Thread Dinesh B Vadhia
Hello! I'm reading a text file with two numbers in str format on each line. The numbers are converted into integers. Each integer is then assigned to a 2-dimensional array ij (see code below). The problem is that neither of the array assignments work ie. both ij[index, 0] = r and ij[index, 1

[Numpy-discussion] Pickling and initializing

2008-03-03 Thread Dinesh B Vadhia
When you pickle a numpy/scipy matrix does it have to be initialized by another program? For example: Program One: A = scipy.asmatrix(scipy.empty((i, i)), dtype=int)# initialize matrix A pickle.dump(A) Program Two: pickle.load(A) .. in Program Two, do we need the stat

[Numpy-discussion] import issue with new Python

2008-02-15 Thread Dinesh B Vadhia
I upgraded to Python 2.5.2c1 today, and got the following error for: > import numpy > import scipy Traceback (most recent call last): File "C:\ ... .py", line 19, in import scipy ImportError: No module named scipy I'm using Numpy 1.0.4 and Scipy 0.6. Any ideas? Dinesh _