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(
return the same result?
--
_________
Dr. Andrew Nelson
_
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion
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
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[:,
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
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
:
a[:, 0]
--
_
Dr. Andrew Nelson
_
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
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
;>> 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
_
___
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
, 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.
&
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
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.
--
_______
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
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.
[ 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
16 matches
Mail list logo