after a while trying to find the legal manner to file numpy bug reports,
since it's a simple one, I thought maybe a first step is to describe the bug
here. Then maybe someone will direct me to the right channel.
So, numpy appears not to correctly compute bitwise_and.red uce and
bitwise_or.redu ce : instead of reducing over the complete axis, these methods
only take the extremities into account. Illustration : from numpy import * bitwise_or.redu ce(array([8,256,32,8]))
8 import numpy numpy.__version __
'0.9.8'
Platform : Win XP SP2, Python 2.4.2
HTH, bb 2 1278
Boris Borcic wrote: after a while trying to find the legal manner to file numpy bug reports, since it's a simple one, I thought maybe a first step is to describe the bug here. Then maybe someone will direct me to the right channel.
Register an account on our Trac, and then you can create new tickets. We require
registration because we were getting bombarded with spam tickets. http://projects.scipy.org/scipy/numpy
Also, the appropriate mailing list would be numpy-discussion: http://www.scipy.org/Mailing_Lists
So, numpy appears not to correctly compute bitwise_and.red uce and bitwise_or.redu ce : instead of reducing over the complete axis, these methods only take the extremities into account. Illustration :
>>> from numpy import * >>> bitwise_or.redu ce(array([8,256,32,8]))
8
Indeed. Please create a ticket. In the meantime, the .accumulate() method works
correctly; you can use the last item to get the correct result for .reduce().
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
"Boris Borcic" <bb*****@gmail. com> wrote in message
news:44******** **@news.bluewin .ch... after a while trying to find the legal manner to file numpy bug reports, since it's a simple one, I thought maybe a first step is to describe the
bug here. Then maybe someone will direct me to the right channel.
So, numpy appears not to correctly compute bitwise_and.red uce and bitwise_or.redu ce : instead of reducing over the complete axis, these
methods only take the extremities into account. Illustration :
>>> from numpy import * >>> bitwise_or.redu ce(array([8,256,32,8])) 8 >>> import numpy >>> numpy.__version __ '0.9.8' >>>
Platform : Win XP SP2, Python 2.4.2
Most bug reports start on the numpy list,
I believe. (See above.)
Cheers,
Alan Isaac This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Gary Wessle |
last post by:
Hi
I am trying to install NumPy in my debian/testing linux
2.6.15-1-686.
with no numpy for debian/testing, I am left alone, since the
experimental version available by debian will result in a dependency
nightmares,
so after unpacking the downloaded file "numpy-0.9.6.tar.gz"
|
by: Iljya |
last post by:
Hello,
I need to pickle the type numpy.float32 but encounter an error when I
try to do so. I am able to pickle the array itself, it is specifically
the type that I cannot pickle.
I am using:
Numpy version: 0.9.4
Python version: 2.4.3
Windows XP
|
by: robert |
last post by:
just a note - some speed comparisons :
0.60627370238398726
0.42836673376223189
0.36965815487747022
0.016557970357098384
0.15692469294117473
0.01951756438393204
|
by: robert |
last post by:
in Gnuplot (Gnuplot.utils) the input array will be converted to a Numeric float array as shown below. When I insert a numpy array into Gnuplot like that below, numbers 7.44 are cast to 7.0
Why is this and what should I do ? Is this bug in numpy or in Numeric?
>>m #numpy array
array(,
,
,
...,
,
|
by: Chris Smith |
last post by:
Howdy,
I'm a college student and for one of we are writing programs to
numerically compute the parameters of antenna arrays. I decided to use
Python to code up my programs. Up to now I haven't had a problem,
however we have a problem set where we are creating a large matrix and
finding it's inverse to solve the problem. To invert the matrix I've
tried using numpy.numarray.linear_algebra.inverse and...
| |
by: robert |
last post by:
Turning algs for old NumPy modules into numpy code I suffer from this:
Upon further processing of returns of numpy calculations, lots of data in an apps object tree will become elementary numpy types.
First there is some inefficiency in calculations. And then you get data inflation and questionable dependencies - e.g. with pickle,ZODB,mpi's ... :
0.0...
|
by: Duncan Smith |
last post by:
Hello,
Since moving to numpy I've had a few problems with my existing
code. It basically revolves around the numpy scalar types. e.g.
------------------------------------------------
array(,
])
Traceback (most recent call last):
File "<pyshell#30>", line 1, in -toplevel-
|
by: Marc Oldenhof |
last post by:
Hello all,
I'm pretty new to Python, but use it a lot lately. I'm getting a crazy
error trying to do operations on a string list after importing numpy.
Minimal example:
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) on win32
Type "help", "copyright", "credits" or "license" for more information.
|
by: Sean Davis |
last post by:
I have a set of numpy arrays which I would like to save to a gzip
file. Here is an example without gzip:
b=numpy.ones(1000000,dtype=numpy.uint8)
a=numpy.zeros(1000000,dtype=numpy.uint8)
fd = file('test.dat','wb')
a.tofile(fd)
b.tofile(fd)
fd.close()
|
by: Travis Oliphant |
last post by:
I wanted to point anybody interested to a blog post that describes a
useful pattern for having a NumPy array that points to the memory
created by a different memory manager than the standard one used by
NumPy. The pattern shows how to create a NumPy array that points to
previously allocated memory and then shows how to construct an object
that allows the correct deallocator to be called when the NumPy array is
freed.
This may be...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |