[Numpy-discussion] ImportError while building Numpy on Ubuntu 14.04

2014-07-26 Thread Gabriel Altay
ty, arange, array_repr, ndarray File "/home/galtay/github/numpy-env/numpy/numpy/core/__init__.py", line 6, in from . import multiarray ImportError: cannot import name multiarray Any hints? I'm running Continuum Analytics Anaconda Python distribution thanks, -Gabriel

[Numpy-discussion] Wrong Eigenvalue (Approximation?)

2010-05-15 Thread Gabriel Mihalache
up the matrix, I know for sure that there must be one eigenvalue exactly equal to 1. Any help is greatly appreciated! This is all on Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32 Regards, Gabriel ___ NumPy-Discuss

Re: [Numpy-discussion] fft trouble

2009-11-03 Thread Gabriel
Yes!!! it was... I didn't realize. Thank you very much 2009/11/3 Raspaud Martin > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Gabriel wrote: > > Hi it`s my first time. > > > > I have a trouble whit fft. > > For example: > > s = sin(w

[Numpy-discussion] fft trouble

2009-11-03 Thread Gabriel
Hi it`s my first time. I have a trouble whit fft. For example: s = sin(wt) f = abs(fft(s)) In f I have the module the fft(s) which should be equal to 1 for w but it's 1000 for w. All values is multiplied by 1000. Someone know why? Thank's -- Gabriel Antes de imprimir, p

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2009-06-07 Thread Gabriel Beckers
hen and hope for better days in the future. Best, Gabriel ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2009-06-07 Thread Gabriel Beckers
On Sun, 2009-06-07 at 19:00 +0900, David Cournapeau wrote: > hence *most* :) I doubt most numpy users need to do PCA on > high-dimensional data. OK a quick look on the MDP website learns that I am one of the exceptions (as Gaël's email already suggested)

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2009-06-07 Thread Gabriel Beckers
so your advice is well taken. One thing I can think of is PCA and ICA (of *big* matrices of float32 data), using the MDP toolbox mostly. I should find out in how far Atlas is crucial specifically for that. All the best, Gabriel ___ Numpy-

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2009-06-07 Thread Gabriel Beckers
OK, perhaps I drank that beer too soon... Now, numpy.test() hangs at: test_pinv (test_defmatrix.TestProperties) ... So perhaps something is wrong with ATLAS, even though the building went fine, and "make check" and "make ptcheck" reported no errors. Gabriel On Sun, 2009-

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2009-06-07 Thread Gabriel Beckers
my 32-bit machine and the different processor speed): the dash before "alg" should be removed, and "Lapack_LINUX.a" should be "lapack_LINUX.a". Gabriel ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://m

Re: [Numpy-discussion] dpss windows

2009-04-03 Thread Gabriel Beckers
I, for one, would be very grateful if DPSS code could be added to NumPy. Best, Gabriel On Fri, 2009-04-03 at 16:21 +0200, Stéfan van der Walt wrote: > Hi Sturla > > 2009/4/3 Sturla Molden : > > NumPy has support for various window functions (von Hann, hamming, > > blac

[Numpy-discussion] PyArray_EMPTY and Cython

2008-12-02 Thread Gabriel Gellner
segfaults when the PyArray_EMPTY call is made. Thanks, Gabriel ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Gabriel Gellner
ies this, or we need to rename the normal trig functions. I can see not wanting to break API compatibility but I don't find the `different functions` argument compelling. Gabriel ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Gabriel Gellner
he new names and add a > ``DeprecationWarning`` informing that people should start to use the > new names. After two or three NumPy versions, the old function names > can be removed safely. > > What people think? > +1 Gabriel ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] by axis iterator

2008-11-12 Thread Gabriel Gellner
orting R code that uses a lot of apply like logic. I know most numpy functions have the axis argument built in, but when writing my own functions I find this a real time saver. Anyway, if someone can show be a better way I would be overjoyed, or if people like this I can make a ticket

Re: [Numpy-discussion] setting element

2008-11-12 Thread Gabriel Gellner
On Wed, Nov 12, 2008 at 12:34:51PM -0600, Ryan May wrote: > Charles سمير Doutriaux wrote: > > Hello, > > > > I'm wondering if there's aquick way to do the following: > > > > s[:,5]=value > > > > in a "general" function > > def setval(array,index,value,axis=0): > > ## code here > > Assuming

Re: [Numpy-discussion] setting element

2008-11-12 Thread Gabriel Gellner
> > The issue is to put enough ":" before the index value inside the > square bracket of the assignement. > Make some slice objects! def setval(array, index, value, axis=0): key = [slice(None)]*len(array.shape) key[axis] = index array[key] = value Gabriel ___

Re: [Numpy-discussion] random number generation in python compared to gsl

2008-11-05 Thread Gabriel Gellner
algorithm, what you can do is find out how gsl does this and just set the full seed array in numpy.random.RandomState yourself. I have done this for comparison with R's mersenne twister algorithm using my own MT implementation and it works like a charm. Gabriel ___

Re: [Numpy-discussion] [mailinglist] How to do: y[y

2008-10-27 Thread Gabriel Gellner
ease by Threshold" > > > > > > I would like to translate it as: > > y[y > > Hi, > > your solution does not work, becaus the arrays on both > side do not have the same size in generall. > > You can do it in place: > > y[y Nice,

Re: [Numpy-discussion] How to do: y[y

2008-10-27 Thread Gabriel Gellner
ke to translate it as: > y[y You are close, you just need to have the right hand side also use vector indexing (since otherwise you are trying to add something of length y to a subset of y): y[y < Threshold] = y[y < Threshold] + Threshold Gabriel __

Re: [Numpy-discussion] ANN: Python programs for epidemic modelling

2008-10-25 Thread Gabriel Gellner
ng.com/?p=29. The >programs are at > > [2]http://wiki.deductivethinking.com/wiki/Python_Programs_for_Modelling_Infectious_Diseases_book. Thanks for this, it is great! Gabriel ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http

Re: [Numpy-discussion] (Late) summary of PEP-225 discussion at Scipy

2008-10-22 Thread Gabriel Gellner
om/portal/download/files/unprot/fortran/docs/lrm/lrm0184.htm#generic_inter_op I think this is ideal as I am used to it, but at the least I vote for a multiplication operator. Gabriel ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] var bias reason?

2008-10-15 Thread Gabriel Gellner
On Wed, Oct 15, 2008 at 09:45:39AM -0500, Travis E. Oliphant wrote: > Gabriel Gellner wrote: > > Some colleagues noticed that var uses biased formula's by default in numpy, > > searching for the reason only brought up: > > > > http://article.gmane.org/gmane.comp.py

[Numpy-discussion] var bias reason?

2008-10-15 Thread Gabriel Gellner
I can hide the var/std methods of numpy arrays? I have my own library which does things the R way, and in my lab letting people discover this 'bug' using name completion in ipython is a nightmare. Any help? thanks, Gabriel ___ Numpy-discussi

Re: [Numpy-discussion] Converting audio data to array for further processing

2008-08-26 Thread Gabriel J.L. Beckers
, Gabriel On Mon, 2008-08-25 at 17:25 -0600, Dan Colesworthy wrote: > Hello all, > > > > I need an efficient way to convert 24 bit signed audio data to a numpy > array for further processing. The data will be in a .wav file, and > can be recovered via the python wave modu

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Gabriel Gellner
rays are fundamentally a part of numpy, and no one is even > suggesting that they would go away. No one is seriously suggesting > that we should remove recarray, but some of us hesitate to recommend > its use over plain record arrays. > > Does that clarify the discussion for yo

Re: [Numpy-discussion] data exchange format

2008-05-20 Thread Gabriel J.L. Beckers
gt;> f.close() With most real data file size can be smaller because you have the option of enabling compression. But I must admit that I haven't tried reading HDF5 in Matlab or C (and never will); I know it is possible, but I don't know how difficult it is. Cheers, Gabriel On T

Re: [Numpy-discussion] data exchange format

2008-05-20 Thread Gabriel J.L. Beckers
PyTables is an efficient way of doing it (http://www.pytables.org). You essentially write data to a HDF5 file, which is portable and can be read in Matlab or in a C program (using the HDF5 library). Gabriel On Tue, 2008-05-20 at 09:32 -0400, Gary Pajer wrote: > I want to store data in a way t

[Numpy-discussion] accumarray

2008-03-26 Thread Gabriel J.L. Beckers
Does numpy have something like Matlab's accumarray? http://www.mathworks.com/access/helpdesk/help/techdoc/ref/accumarray.html Best, Gabriel ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/

Re: [Numpy-discussion] major bug in fromstring, ascii mode

2008-01-27 Thread Gabriel J.L. Beckers
count=3) Out[4]: array([ 23, 0, 151904160]) ... Pentium Dual Core, Ubuntu Linux 7.10, I have both gcc-3.4 and gcc-4.1 on my system; don't know which one the setup.py uses. Default is 4.1.3 Gabriel On Sun, 2008-01-27 at 01:16 -0700, Charles R Harris wrote: > > > On Jan 26, 2

[Numpy-discussion] matlab to numpy help

2007-12-23 Thread Gabriel J.L. Beckers
:,Uns); m is a positive integer. The problem is that Xijm should be a 1-dimensional array (I think), so what is Uns doing in the second statement? Is this some way to expand Xijm into a second dimension? What would be a numpy equivalent? Gabriel ___