<?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/"
		>
<channel>
	<title>Comments on: Inverse Mapping (update)</title>
	<atom:link href="http://blogs.mathworks.com/loren/2006/06/28/inverse-mapping-update/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/loren/2006/06/28/inverse-mapping-update/</link>
	<description>Loren Shure works on design of the MATLAB language at MathWorks. She writes here about once a week on MATLAB programming and related topics.</description>
	<lastBuildDate>Thu, 09 Feb 2012 04:19:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Konstantin Lindström</title>
		<link>http://blogs.mathworks.com/loren/2006/06/28/inverse-mapping-update/#comment-31968</link>
		<dc:creator>Konstantin Lindström</dc:creator>
		<pubDate>Mon, 17 Jan 2011 09:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=43#comment-31968</guid>
		<description>Clarification:
My point was that loopFR and vecIM assume integers, but histc works even for non-integers.</description>
		<content:encoded><![CDATA[<p>Clarification:<br />
My point was that loopFR and vecIM assume integers, but histc works even for non-integers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2006/06/28/inverse-mapping-update/#comment-31882</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Mon, 29 Nov 2010 12:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=43#comment-31882</guid>
		<description>Konstantin-

Thanks for adding your thoughts.  You are correct that the best solution depends on what your circumstances are, and that for the Minit to work, I am assuming they are indices.

--Loren</description>
		<content:encoded><![CDATA[<p>Konstantin-</p>
<p>Thanks for adding your thoughts.  You are correct that the best solution depends on what your circumstances are, and that for the Minit to work, I am assuming they are indices.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Konstantin Lindström</title>
		<link>http://blogs.mathworks.com/loren/2006/06/28/inverse-mapping-update/#comment-31877</link>
		<dc:creator>Konstantin Lindström</dc:creator>
		<pubDate>Fri, 26 Nov 2010 10:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=43#comment-31877</guid>
		<description>Hi Loren,

It should be noted that the vecIM solution creates an array imap that is as large (in length) as the biggest element in a. This will slow down the computation by memory hogging.

The best solution is (as always in Matlab) dependent on your particular application and size of matrices.

With the same a and Minit that you created, try the following:
% Same size of matrices but scaled values
a=a*1000000;
Minit=Minit*1000000;

and rerun your timing experiment.

Due to better hardware since 2006 i also added a larger value of N
N = [1 10 100 1000 10000 100000 1000000];

I also want to point out that you left out the important requirement that the values in a and Minit need to be integers for the loopFR and vecIM to work since they rely on indexing.

Try
% Non integer values
a=a+.1;
Minit=Minit+.1;


Regards
/K</description>
		<content:encoded><![CDATA[<p>Hi Loren,</p>
<p>It should be noted that the vecIM solution creates an array imap that is as large (in length) as the biggest element in a. This will slow down the computation by memory hogging.</p>
<p>The best solution is (as always in Matlab) dependent on your particular application and size of matrices.</p>
<p>With the same a and Minit that you created, try the following:<br />
% Same size of matrices but scaled values<br />
a=a*1000000;<br />
Minit=Minit*1000000;</p>
<p>and rerun your timing experiment.</p>
<p>Due to better hardware since 2006 i also added a larger value of N<br />
N = [1 10 100 1000 10000 100000 1000000];</p>
<p>I also want to point out that you left out the important requirement that the values in a and Minit need to be integers for the loopFR and vecIM to work since they rely on indexing.</p>
<p>Try<br />
% Non integer values<br />
a=a+.1;<br />
Minit=Minit+.1;</p>
<p>Regards<br />
/K</p>
]]></content:encoded>
	</item>
</channel>
</rss>

