SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

From: <md...@us...> - 2007年09月14日 12:23:11
Revision: 3849
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3849&view=rev
Author: mdboom
Date: 2007年09月14日 05:23:06 -0700 (2007年9月14日)
Log Message:
-----------
Committing this file so I can rename it
Modified Paths:
--------------
 branches/transforms/lib/matplotlib/affine.py
Modified: branches/transforms/lib/matplotlib/affine.py
===================================================================
--- branches/transforms/lib/matplotlib/affine.py	2007年09月13日 18:00:10 UTC (rev 3848)
+++ branches/transforms/lib/matplotlib/affine.py	2007年09月14日 12:23:06 UTC (rev 3849)
@@ -847,12 +847,8 @@
 # assert (tpoints1 == tpoints2).all()
 
 # Here are some timing tests
- points = [(random(), random()) for i in xrange(10000)]
+ points = npy.asarray([(random(), random()) for i in xrange(10000)])
 t = timeit.Timer("trans_sum(points)", "from __main__ import trans_sum, points")
- print "Time to transform 10000 x 10 points as tuples:", t.timeit(10)
-
- points2 = npy.asarray(points)
- t = timeit.Timer("trans_sum(points2)", "from __main__ import trans_sum, points2")
- print "Time to transform 10000 x 10 points as numpy array:", t.timeit(10)
+ print "Time to transform 10000 x 10 points:", t.timeit(10)
 
 __all__ = ['Transform', 'Affine2D']
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /