hi,
I work in astrophysics where the most common programming language is
currently IDL.
A common request of people switching from IDL to python is the
implementation of the REBIN function, which either downsizes a 2d
array by averaging or increases its dimension by repeating its
elements. In both c
On Thu, Nov 10, 2011 at 10:45 AM, Peter Prettenhofer
wrote:
>> I don't know if np.dot is supposed to know anything about sparse
>> matrices; if so, then a fancier change may be needed.
>
> Ok, then I'll pass that on to the (sparse) scipy folks.
> Are there any alternative to np.dot you are aware o
Hi Stefan,
thanks a lot for the pull request!
> I don't know if np.dot is supposed to know anything about sparse
> matrices; if so, then a fancier change may be needed.
Ok, then I'll pass that on to the (sparse) scipy folks.
Are there any alternative to np.dot you are aware of? Is
ndarray.__mul_
In such a situation you should probably use a dictionary from the start,
i.e.:
d3['index'] = np.arange(100)
then use d3['index'] everywhere instead of index.
It can be more convenient (notation-wise) to use an object instead, i.e.
either work within a class method (self.index = np.arange(100)),
Hi,
Does anyone know how I can quickly use the name of a ndarray as a string?
for example, I have
In [54]: index=np.arange(100)
then I want to use the name 'index' as a key in a new dictionary:
d3=dict()
d3['index']=index
I can do it like the way above, but I have many ndarray variables that nee