have a Mac Pro running Mac OS X 10.6.
If there is a better forum to ask this question, please let me know.
Thanks for any advice.
-- Lou Pecora, my views are my own.___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org
.
-=- Olivier
Thank you.
-- Lou Pecora, my views are my own.
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
--
Wow. I will have to digest that, but thank you.
-- Lou Pecora, my views are my own.
___
NumPy-Discussion mailing
. It was just a test and it
worked.
You could also change the underlying C or Fortran code, but you then have to
recompile everything in numpy. I wasn't that brave.
-- Lou Pecora, my views are my own.
___
NumPy-Discussion mailing list
NumPy-Discussion
. The installation
contains
a LOT of python stuff (including all the packages mentioned here) and you use
it
just like any other installation except you need to point to the sage folder.
There are examples in the documentation.
-- Lou Pecora, my views are my own
if there are other changes that I should be aware of.
Does anyone know the origin of the change above or other differences in the
handling of numerics between the two versions?
Thanks for any insight.
-- Lou Pecora, my views are my own.
___
NumPy
the
reason I asked about numpy. I know I should change this.
But your explanation sounds like it is indeed in Py 2.6 where they tightened
things up. I'll just leave the check for exceptions in place and use it more
often now.
-- Lou Pecora, my views are my own
at 8:02 AM, Lou Pecora lou_boog2...@yahoo.com wrote:
I ran across what seems to be a change in how numerics are handled in Python 2.6
or Numpy 1.3.0 or both, I'm not sure. I've recently switched from using Python
2.4 and Numpy 1.0.3 to using the Python 2.6 and Numpy 1.3.0 that comes with
SAGE
extensions that pass arrays in a much
easier way. I was into writing bare C extensions from the ground up like you
when someone put me onto ctypes. MUCH easier and cleaner and, as a result,
easier to debug. I recommend it.
-- Lou Pecora, my views are my own
/. If you are serious about getting a solution,
then it is worth spending some time learning about linear systems.
-- Lou Pecora, my views are my own.
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo
- Original Message
From: Christopher Barker chris.bar...@noaa.gov
To: Discussion of Numerical Python numpy-discussion@scipy.org
Sent: Thu, November 12, 2009 12:37:37 PM
Subject: Re: [Numpy-discussion] finding close together points.
Lou Pecora wrote:
a KD tree for 2D nearest neighbor
trees in speed, but is SO much easier to program.
-- Lou Pecora, my views are my own.
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
? :-)
-- Lou Pecora, my views are my own.
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
3.0. The problem with
each step is that all the libraries we rely on have to be ugraded to that step
or we might lose the functionality of that library. For me that's a killer. I
have to take a good look at all of them before the upgrade or a big project
will take a fatal hit.
-- Lou Pecora
representations, I would
presume that
Numpy's PZERO (positive zero) and NZERO (negative zero)
are treated as
nothing. Conversion to integer for these should be zero.
Yet another +1.
-- Lou Pecora, my views are my own.
___
Numpy
?
-- Lou Pecora, my views are my own.
--- On Tue, 3/3/09, Jonathan Taylor jonathan.tay...@utoronto.ca wrote:
From: Jonathan Taylor jonathan.tay...@utoronto.ca
Subject: Re: [Numpy-discussion] Faster way to generate a rotation matrix?
To: Discussion of Numerical Python numpy-discussion@scipy.org
Whoops. I see you have profiled your code. Sorry to re-suggest that.
But I agree with those who suggest a C speed up using ctypes or cthyon.
However, thanks for posting your question. It caused a LOT of very useful
responses that I didn't know about. Thanks to all who replied.
-- Lou
of that matrix are the
square of the singular values of A. This worked for me, but my original matrix
was square. Maybe that helped. Don't know. It's worth a try.
-- Lou Pecora, my views are my own.
--- On Mon, 2/2/09, mtrum...@berkeley.edu mtrum...@berkeley.edu wrote:
From: mtrum
and later read the list from the
file and then convert the list that is read in back to an array:
[ls_str]=fp.readline()
ls_in= eval(ls_str)
arr_in=array(ls_in) # arr_in is same as arr
Seems to work well. Any comments?
-- Lou Pecora, my views are my own.
--- On Tue, 12/9/08, Lou Pecora
straight-forward? I really
like the simple, pythonic approach of the repr - eval pairing.
Thanks for any advice. (yes, I am googling, too)
-- Lou Pecora, my views are my own.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http
later when I read them in. I'd like that
information to be preserved.
Thanks.
-- Lou Pecora, my views are my own.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
, not a text one.
--
Robert Kern
Thanks, Robert. I may have to go that route, assuming that the save and load
pair preserve shape, i.e. I don't have to know the shape when I read back in.
-- Lou Pecora, my views are my own.
___
Numpy
), 989 (1997).
-- Lou Pecora, my views are my own.
--- On Thu, 7/10/08, Dan Lussier [EMAIL PROTECTED] wrote:
From: Dan Lussier [EMAIL PROTECTED]
Subject: [Numpy-discussion] huge array calculation speed
To: numpy-discussion@scipy.org
Date: Thursday, July 10, 2008, 12:38 PM
Hello,
I am
). But locking people into a standard,
even an informal one is, as someone else said, acting
a bit too much like accountants. Stop, please!
-- Lou Pecora, my views are my own.
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
Travis, Does that mean it's not worth starting a
ticket? Sounds like nothing can be done, *except* to
put this in the documentation and the FAQ. It has
bitten several people.
--- Travis E. Oliphant [EMAIL PROTECTED]
wrote:
Stéfan van der Walt wrote:
Lou Pecora wrote:
Thanks, Matthieu
of iterations.
-- Lou Pecora, my views are my own.
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
___
Numpy-discussion mailing list
think this is what people do)? Any help appreciated.
I'm using a Mac Book Pro (Intel chip), system 10.4.11,
Python 2.4.4.
-- Lou Pecora, my views are my own.
Be a better friend, newshound, and
know
--- David Cournapeau [EMAIL PROTECTED]
wrote:
On Wed, 2008-02-13 at 08:20 -0800, Lou Pecora wrote:
Yes, a good question. Two reasons I started off
with
the static library. One is that Gnu instructions
claimed the dynamic library did not always build
properly on the Mac OS X
) = 9.900249722395765284e-01
x, y: 2.00e-01 9.900249722395765284e-01
-- Lou Pecora, my views are my own.
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http
to matter.
Later today I will try to build the dynamic version of
GSL and see what that yields. If I get it I will link
to that as you suggest.
Thanks, again. Your suggestions have moved me along
nicely.
-- Lou Pecora, my views are my own
up the stuff I need. But at least
I have workable approach.
Thanks for your help. Comments welcome.
-- Lou Pecora, my views are my own.
Never miss a thing. Make Yahoo your home page.
http
, Albert. I'll report back to this thread when
I give it a try.
-- Lou Pecora, my views are my own.
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http
--- Jon Wright [EMAIL PROTECTED] wrote:
Lou Pecora wrote:
... This appears to be the way
static and shared libraries work, especially on
Mac OS
X, maybe elsewhere.
Have you tried linking against a GSL static library?
I don't have a mac,
but most linkers only pull in the routines
the Python interface. So you are right, I do not want to wrap GSL.
It sounds like I can just add something like -lnameofGSLdylib (where I put
in the real name of the GSL library after the -l) in my gcc command to make my
shared lib. Is that right?
Thanks for your help.
-- Lou Pecora, my
CTypes. This appears to be the way
static and shared libraries work, especially on Mac OS
X, maybe elsewhere.
I'd really like to be wrong about this and I will
follow up on some of the suggested reading you all
gave me.
Thanks, again.
-- Lou Pecora, my views are my own
extensions on the host
platform. There are many
examples on the web on how to use distutils to build
C extensions
(http://docs.python.org/ext/building.html).
[cut]
-- Lou Pecora, my views are my own
far. Thanks.
-- Lou Pecora, my views are my own.
-
Never miss a thing. Make Yahoo your homepage.___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo
the test using python setup.py test. Now I
have to find some examples on using it and learn to
compile shared libraries (.so type I guess).
-- Lou Pecora, my views are my own.
Looking for last minute
Hmmm... last time I tried ctypes it seemed pretty
Windows oriented and I got nowhere. But enough people
have said how easy it is that I'll give it another
try.
Believe me, I'd be happy to be wrong and find a nice
easy way to pass NumPy arrays and such. Thanks.
-- Lou Pecora
--- Gael
doing wrong? Thanks for any clues.
-- Lou Pecora, my views are my own.
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
call, too.
Anyway, IT WORKED! How 'bout that? One simple
example down and now on to more complex things.
Thanks, again.
-- Lou Pecora, my views are my own.
Looking for last minute shopping
and recreate the class in Python.
This can be avoided, but you'll have to use more
powerful tools. I would
advice SWIG (see my blog for some examples with C++
and SWIG).
Matthieu
Ah, yes, I will also recommend Travis' book.
-- Lou Pecora, my views are my own
the
code however for
review. Thank you.
--
Vince Fulco
-- Lou Pecora, my views are my own.
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com
--- Christopher Barker [EMAIL PROTECTED] wrote:
Lou Pecora wrote:
I
would recommend using the C API
I would recommend against this -- there is a lot of
code to write in
extensions to make sure you do reference counting,
etc, and it is hard
to get right.
Well, fair enough to some
of handling a
memory problem IMHO. Let us Mac people not be too
smug.
-- Lou Pecora
--- Alexandre Fayolle [EMAIL PROTECTED]
wrote:
On Tue, Jan 29, 2008 at 02:58:15PM +0100, Oriol
Vendrell wrote:
Hi all,
I've noticed something that looks like an odd
behaviour in array.argsort
Hmmm... Interesting. I am using Python 2.4.4. It
would be nice to have other Mac people with same/other
Python and numpy versions try the argsort bug code.
-- Lou Pecora
--- Francesc Altet [EMAIL PROTECTED] wrote:
A Tuesday 29 January 2008, Lou Pecora escrigué:
This still occurs in numpy
reference to `import_array'
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
-- Lou Pecora, my views are my own.
Looking for last minute shopping deals?
Find them
.
-- Lou Pecora, my views are my own.
Be a better sports nut! Let your teams follow you
with Yahoo Mobile. Try it now.
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
Works fine on my computer (Mac OS X 10.4), Python
2.4. Runs in a second or so.
-- Lou Pecora
---Peter wrote:
Hi all,
The following code calling numpy v1.0.4 fails to
terminate on my machine, which was not the case with
v1.0.3.1
from numpy import arange, float64
from numpy.linalg
(double).resolution instead of
ceil((stop-start)/step)
perhaps be useful?
Joris
-- Lou Pecora, my views are my own.
Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings
vectors
-- Lou Pecora, my views are my own.
---
Great spirits have always encountered violent opposition from mediocre minds.
-Albert Einstein
Moody friends. Drama queens. Your life? Nope
Hi, Jim,
Just wondering why you would use item() rather than
index in brackets, i.e. a[i] ? The latter works
well in numpy. But maybe I'm missing something.
-- Lou Pecora
--- Jim Kleckner [EMAIL PROTECTED] wrote:
I'm fighting conversion from Numeric to numpy.
One change that doesn't
would be
willing to write
about and contribute.
-- Lou Pecora, my views are my own.
---
Great spirits have always encountered violent opposition from mediocre minds.
-Albert Einstein
on this on the SciPy cookbook,
but I bet it would reach more people in a journal.
I also suggest that articles on using packages like
matplotlib/pylab for scientific purposes also be
included.
-- Lou Pecora, my views are my own.
---
Great spirits have always encountered violent opposition from
?). It's certainly not competition
for ipython1,
though, it's mostly to show an example of making
threads easy to use.
Anne
Please put the parallel map code on the Wiki. I found
your first (obvious-parallel) example very helpful.
-- Lou Pecora, my views are my own.
---
Great
Now, I didn't know that. That's cool because I have a
new dual core Intel Mac Pro. I see I have some
learning to do with multithreading. Thanks.
--- Anne Archibald [EMAIL PROTECTED] wrote:
On 17/04/07, Lou Pecora [EMAIL PROTECTED]
wrote:
You should probably look over your code and see
Ii get what you are saying, but I'm not even at the
Stupidly Easy Parallel level, yet. Eventually.
Thanks.
--- Anne Archibald [EMAIL PROTECTED] wrote:
On 17/04/07, Lou Pecora [EMAIL PROTECTED]
wrote:
Now, I didn't know that. That's cool because I
have a
new dual core Intel Mac Pro. I
Very nice. Thanks. Examples are welcome since they
are usually the best to get up to speed with
programming concepts.
--- Anne Archibald [EMAIL PROTECTED] wrote:
On 17/04/07, Lou Pecora [EMAIL PROTECTED]
wrote:
I get what you are saying, but I'm not even at the
Stupidly Easy Parallel
.
--- Simon Berube [EMAIL PROTECTED] wrote:
Awww, this is quite right. I kept using the a[0][:]
notation and I
assume I am simply pulling out single arrays from
the array list.
Thank you very much for the prompt reply. (And sorry
for wasting your
time :P)
-- Lou Pecora, my views are my own
That may be it. I'll get a newer version.
--- Robert Kern [EMAIL PROTECTED] wrote:
Lou Pecora wrote:
After import numpy as N
In [10]: print N.__version__
1.1.2881
does that look right as a recent version?
No, that's very old. The version number had briefly
gotten bumped
--- Lou Pecora [EMAIL PROTECTED] wrote:
That may be it. I'll get a newer version.
No Luck.
I downloaded numpy-1.0-py2.4-macosx10.4.dmg from the
MacOSX package site, but the installer kept telling me
there was nothing to install. I removed the previous
NumPy and numpy.pth from the site
to
work, giving me version 0.5.3dev for SciPy.
Matplotlib installed fine from tarball and the setup
stuff.
I hope that's of use to someone out there. Each time
I upgrade something it's an adventure. Thanks for the
feedback.
-- Lou Pecora
My views are my own
Ah, that does ring a bell. Sigh. I need to upgrade
my memory banks. Sure is tough keeping these packages
in sync. Thanks. I'll check it out.
--- Robert Kern [EMAIL PROTECTED] wrote:
Lou Pecora wrote:
/usr/local/bin/g77 -g -Wall -undefined
dynamic_lookup...blah,
blah.../scipy
on same page in
the book). What am I missing?
-- Lou Pecora
My views are my own.
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
Numpy
After import numpy as N
In [10]: print N.__version__
1.1.2881
does that look right as a recent version?
I still get
In [2]: N.append?
Object `N.append` not found.
-- Lou Pecora
My views are my own.
__
Do You Yahoo!?
Tired of spam
65 matches
Mail list logo