<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for The Samovar</title>
	<atom:link href="http://thesamovar.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://thesamovar.wordpress.com</link>
	<description>A cup of tea and a political rant</description>
	<lastBuildDate>Fri, 20 Nov 2009 23:41:51 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on You do knot see that very often by Incongruous</title>
		<link>http://thesamovar.wordpress.com/2007/05/09/you-do-knot-see-that-very-often/#comment-13760</link>
		<dc:creator>Incongruous</dc:creator>
		<pubDate>Fri, 20 Nov 2009 23:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://thesamovar.wordpress.com/2007/05/09/you-do-knot-see-that-very-often/#comment-13760</guid>
		<description>You are getting close to the answers.  But to fully understand, you will need to think like a knot.  See Tyler Trefoil...</description>
		<content:encoded><![CDATA[<p>You are getting close to the answers.  But to fully understand, you will need to think like a knot.  See Tyler Trefoil&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fast fractals with Python and numpy by Dan &#124; thesamovar</title>
		<link>http://thesamovar.wordpress.com/2009/03/22/fast-fractals-with-python-and-numpy/#comment-13759</link>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		<pubDate>Fri, 20 Nov 2009 15:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=409#comment-13759</guid>
		<description>Hey benny, I did some timings on this with IPython. For arrays of length 10000 I got that my method takes around 40 microseconds per loop, whereas yours takes 50 microseconds. For arrays of length 1000000 mine takes around 8ms and yours around 20ms - so it&#039;s a significant saving especially for larger arrays.

Also, your analysis is not quite right. First of all, your code z[:]=z[:]*z[:]+c[:] in fact does exactly the same as z[:]=z*z+c. This translates into something like:

temp1 = empty_like(z)
multiply(z, z, temp1)
temp2 = empty_like(z)
add(temp1, c, temp2)
z[:] = temp2

In other words, your version creates two intermediate temporary variables, and does one extra loop and one extra copy. It also requires three Python function calls instead of just two in my case.</description>
		<content:encoded><![CDATA[<p>Hey benny, I did some timings on this with IPython. For arrays of length 10000 I got that my method takes around 40 microseconds per loop, whereas yours takes 50 microseconds. For arrays of length 1000000 mine takes around 8ms and yours around 20ms &#8211; so it&#8217;s a significant saving especially for larger arrays.</p>
<p>Also, your analysis is not quite right. First of all, your code z[:]=z[:]*z[:]+c[:] in fact does exactly the same as z[:]=z*z+c. This translates into something like:</p>
<p>temp1 = empty_like(z)<br />
multiply(z, z, temp1)<br />
temp2 = empty_like(z)<br />
add(temp1, c, temp2)<br />
z[:] = temp2</p>
<p>In other words, your version creates two intermediate temporary variables, and does one extra loop and one extra copy. It also requires three Python function calls instead of just two in my case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fast fractals with Python and numpy by benny</title>
		<link>http://thesamovar.wordpress.com/2009/03/22/fast-fractals-with-python-and-numpy/#comment-13758</link>
		<dc:creator>benny</dc:creator>
		<pubDate>Fri, 20 Nov 2009 12:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=409#comment-13758</guid>
		<description>I&#039;m wondering about

# less memory
58	        multiply(z, z, z)
59	        add(z, c, z)

Is this really better than 

z[:] = z[:]*z[:] + c[:] 

As I would expect multiply does a loop and add does a loop, while the vectorized assign does a loop to compute a temporary array, then a loop to assign to the result.</description>
		<content:encoded><![CDATA[<p>I&#8217;m wondering about</p>
<p># less memory<br />
58	        multiply(z, z, z)<br />
59	        add(z, c, z)</p>
<p>Is this really better than </p>
<p>z[:] = z[:]*z[:] + c[:] </p>
<p>As I would expect multiply does a loop and add does a loop, while the vectorized assign does a loop to compute a temporary array, then a loop to assign to the result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on L&#8217;Astrance by Mark33</title>
		<link>http://thesamovar.wordpress.com/2008/10/26/lastrance/#comment-13750</link>
		<dc:creator>Mark33</dc:creator>
		<pubDate>Fri, 23 Oct 2009 07:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=345#comment-13750</guid>
		<description>That was a great reminder thanks so much! ,</description>
		<content:encoded><![CDATA[<p>That was a great reminder thanks so much! ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on L&#8217;Astrance by His_wife72</title>
		<link>http://thesamovar.wordpress.com/2008/10/26/lastrance/#comment-13748</link>
		<dc:creator>His_wife72</dc:creator>
		<pubDate>Thu, 22 Oct 2009 07:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=345#comment-13748</guid>
		<description>Um, how about a big no, hell no to this one? ,</description>
		<content:encoded><![CDATA[<p>Um, how about a big no, hell no to this one? ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Make Google search in English (or any other language you like) by Kurt</title>
		<link>http://thesamovar.wordpress.com/2007/09/24/make-google-search-in-english-or-any-other-language-you-like/#comment-13747</link>
		<dc:creator>Kurt</dc:creator>
		<pubDate>Tue, 20 Oct 2009 18:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://thesamovar.wordpress.com/2007/09/24/make-google-search-in-english-or-any-other-language-you-like/#comment-13747</guid>
		<description>And every time I restart Firefox it is back to Spanish in my case.</description>
		<content:encoded><![CDATA[<p>And every time I restart Firefox it is back to Spanish in my case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Aubergine pasta sauce by Dan &#124; thesamovar</title>
		<link>http://thesamovar.wordpress.com/2007/04/17/aubergine-pasta-sauce/#comment-13746</link>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		<pubDate>Wed, 14 Oct 2009 01:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://thesamovar.wordpress.com/2007/04/17/aubergine-pasta-sauce/#comment-13746</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Aubergine pasta sauce by greenheath</title>
		<link>http://thesamovar.wordpress.com/2007/04/17/aubergine-pasta-sauce/#comment-13745</link>
		<dc:creator>greenheath</dc:creator>
		<pubDate>Tue, 13 Oct 2009 20:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://thesamovar.wordpress.com/2007/04/17/aubergine-pasta-sauce/#comment-13745</guid>
		<description>Thanks for the delicious recipe. It was indeed exceedingly yummy.</description>
		<content:encoded><![CDATA[<p>Thanks for the delicious recipe. It was indeed exceedingly yummy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Make Google search in English (or any other language you like) by Anonymous</title>
		<link>http://thesamovar.wordpress.com/2007/09/24/make-google-search-in-english-or-any-other-language-you-like/#comment-13736</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 20 Sep 2009 20:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://thesamovar.wordpress.com/2007/09/24/make-google-search-in-english-or-any-other-language-you-like/#comment-13736</guid>
		<description>Search in English</description>
		<content:encoded><![CDATA[<p>Search in English</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fairness and equality by Dan &#124; thesamovar</title>
		<link>http://thesamovar.wordpress.com/2009/06/26/fairness-and-equality/#comment-13732</link>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		<pubDate>Mon, 14 Sep 2009 21:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=420#comment-13732</guid>
		<description>I agree that a system that creates equality by making everyone poor is a bad thing. If the choice were really equality and a poor life for everyone, or inequality and wealth for everyone, then sure I&#039;d go for inequality. I don&#039;t think that it&#039;s really like that though. In fact, I think a free and equal society would experience faster economic growth than an unequal one.

Best wishes to you too - an interesting discussion.</description>
		<content:encoded><![CDATA[<p>I agree that a system that creates equality by making everyone poor is a bad thing. If the choice were really equality and a poor life for everyone, or inequality and wealth for everyone, then sure I&#8217;d go for inequality. I don&#8217;t think that it&#8217;s really like that though. In fact, I think a free and equal society would experience faster economic growth than an unequal one.</p>
<p>Best wishes to you too &#8211; an interesting discussion.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
