Re: [Numpy-discussion] proposal: new logspace without the log in the argument

2016-02-19 Thread Andrew Nelson
With respect to geomspace proposals: instead of specifying start and end values and the number of points I'd like to have an option where I can set the start and end points and the ratio. The function would then work out the correct number of points to get closest to the end value. E.g. geomspace(

[Numpy-discussion] inconsistency in np.isclose

2016-01-14 Thread Andrew Nelson
return the same result? -- _________ Dr. Andrew Nelson _ ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Problem while writing array with np.savetxt

2015-09-24 Thread Andrew Nelson
footer = footer.replace('\n', '\n' + comments) TypeError: must be str, not bytes -- _ Dr. Andrew Nelson _ ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Chaining apply_over_axis for multiple axes.

2015-05-25 Thread Andrew Nelson
I have a function that operates over a 1D array, to return an array of a similar size. To use it in a 2D fashion I would have to do something like the following: for row in range(np.size(arr, 0): arr_out[row] = func(arr[row]) for col in range(np.size(arr, 1): arr_out[:, col] = func(arr[:,

Re: [Numpy-discussion] help using np.einsum for stacked matrix multiplication

2014-10-29 Thread Andrew Nelson
On Wed, Oct 29, 2014 at 10:39 AM, Andrew Nelson wrote: > Dear list, > I have a 4D array, A, that has the shape (NX, NY, 2, 2). I wish to > perform matrix multiplication of the 'NY' 2x2 matrices, resulting in the > matrix B. B would have shape (NX, 2, 2). I believe that n

[Numpy-discussion] help using np.einsum for stacked matrix multiplication

2014-10-29 Thread Andrew Nelson
ts I would need to achieve this. Can anyone help, please? cheers, Andrew. -- _________ Dr. Andrew Nelson _ ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.sc

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

2014-10-08 Thread Andrew Nelson
: a[:, 0] -- _ Dr. Andrew Nelson _ ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Random number generation and testing across different OS's.

2013-04-12 Thread Andrew Nelson
across platforms. If I use the same seed on OSX/Windows/Linux, will I get the same stream of random numbers being generated? I need to know if the test I write works across platforms. regards, Andrew. -- _ Dr. Andrew Nelson

[Numpy-discussion] Difference between np.loadtxt depending on whether you supply a file object or a filename

2012-08-20 Thread Andrew Nelson
;>> a=np.loadtxt('fit_theoretical.txt') >>> a.shape (500, 2) This strikes me as unexpected, it's not a documented behaviour. Any ideas? cheers, Andrew. -- _ Dr. Andrew Nelson _ ___

Re: [Numpy-discussion] building numpy 1.6.2 on OSX 10.6 / Python2.7.3

2012-08-08 Thread Andrew Nelson
rqxbibyejew8dzrjwbxcgv4ydzibpwcg2zvh...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > On Wed, Aug 8, 2012 at 6:15 AM, Andrew Nelson wrote: > > Dear Pierre, > > as indicated yesterday OSX system python is in: > > > > /System/Library/Frameworks/Pytho

Re: [Numpy-discussion] building numpy 1.6.2 on OSX 10.6 / Python2.7.3

2012-08-07 Thread Andrew Nelson
, you'll just have to update your PYTHONPATH > > Good luck > > -- > > Pierre GM > > On Tuesday, August 7, 2012 at 08:15 , Andrew Nelson wrote: > > Dear list, > > I am trying to build numpy 1.6.2 from source but am running up against a > few problems. &

[Numpy-discussion] building numpy 1.6.2 on OSX 10.6 / Python2.7.3

2012-08-06 Thread Andrew Nelson
it contains: #define HAVE_CEIL Am I doing something wrong? regards, Andrew -- _ Dr. Andrew Nelson _ ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] swig + numpy + variable length arrays

2012-07-16 Thread Andrew Nelson
per code, and if I try to call my_abeles, then I am asked for 6 parameters. I only want to supply two numpy arrays - coefP and xP. thanks for any help you are able to give. (I spent the whole afternoon trying to get this bloomin thing to work). cheers, Andrew. -- _______

Re: [Numpy-discussion] division operator

2011-04-04 Thread andrew nelson
t > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion _ Dr Andrew Nelson andyf...@gmail.com _ ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Question regarding concatenate/vstack.

2011-03-30 Thread andrew nelson
Dear List, I have a quick question regarding vstack and concatenate. In the docs for vstack it says that: np.concatenate(tup, axis=0) should be equivalent to: np.vstack(tup) However, I tried this out and it doesn't seem to be case, i.e. >>> np.vstack((np.arange(5.), np.arange(5.))) array([[ 0.

Re: [Numpy-discussion] Please help me

2011-03-27 Thread andrew nelson
[ 25. 71. ] > [ 20. 72. ] > > Please help me ... > > -- > DILEEPKUMAR. R > J R F, IIT DELHI > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.or