<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>k-Wave User Forum &#187; Topic: Can I use the C++ version to simulate 2D cases?</title>
		<link>http://www.k-wave.org/forum/topic/can-i-use-the-c-version-to-simulate-2d-cases</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:26:40 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/can-i-use-the-c-version-to-simulate-2d-cases" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Can I use the C++ version to simulate 2D cases?"</title>
			<link>http://www.k-wave.org/forum/topic/can-i-use-the-c-version-to-simulate-2d-cases#post-5242</link>
			<pubDate>Wed, 16 Sep 2015 21:01:06 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5242@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;HI weiyanglin,&#60;/p&#62;
&#60;p&#62;Unfortunately we don't have a 2D C++ code. However, you could use the 3D C++ code with one of the dimension sizes set to 1. If you try and use the C++ code via MATLAB (i.e., using &#60;code&#62;kspaceFirstOrder3DC&#60;/code&#62;), the code will complain about the various matrices not being in 3D. However, if you follow the &#60;a href=&#34;http://www.k-wave.org/documentation/example_cpp_io_in_parts.php&#34;&#62;Saving Input Files In Parts Example&#60;/a&#62;, it should work (perhaps with minor changes to some sub-functions).&#60;/p&#62;
&#60;p&#62;We haven't benchmarked the code in this case, but I imagine it will still be faster than the MATLAB code. Let me know if you try this and get stuck on something.&#60;/p&#62;
&#60;p&#62;If it's warranted by the performance, I will have a look into creating a &#60;code&#62;kspaceFirstOrder2DC&#60;/code&#62; function to automate this for the next release.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>weiyanglin on "Can I use the C++ version to simulate 2D cases?"</title>
			<link>http://www.k-wave.org/forum/topic/can-i-use-the-c-version-to-simulate-2d-cases#post-5240</link>
			<pubDate>Tue, 15 Sep 2015 19:05:29 +0000</pubDate>
			<dc:creator>weiyanglin</dc:creator>
			<guid isPermaLink="false">5240@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I am doing grid convergence study, but k-wave did not give converged solution for some cases yet. With the last grid k-wave took 2 weeks to finish. I will definitely need an optimized C++ version.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
