<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Matrix-Klasse operator[][]]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche gerade meine eigene Matrix Klasse zu schreiben. Ich arbeite intern mit einem Vektor von Vektoren:</p>
<pre><code>vector&lt;vector&lt;float&gt; &gt;_matrix;
</code></pre>
<p>jetzt will ich das das man z.B so auf einzelen Elemente in der Matrix zugreifen kann:</p>
<pre><code>matrix m;
m[0][0]
</code></pre>
<p>Wie kann man sowas implementieren. Ich denke mal mit Operator überladung aber wie genau geht das bei zwei [][] ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/166007/matrix-klasse-operator</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 04:22:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/166007.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Nov 2006 09:13:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Matrix-Klasse operator[][] on Sat, 25 Nov 2006 09:13:08 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche gerade meine eigene Matrix Klasse zu schreiben. Ich arbeite intern mit einem Vektor von Vektoren:</p>
<pre><code>vector&lt;vector&lt;float&gt; &gt;_matrix;
</code></pre>
<p>jetzt will ich das das man z.B so auf einzelen Elemente in der Matrix zugreifen kann:</p>
<pre><code>matrix m;
m[0][0]
</code></pre>
<p>Wie kann man sowas implementieren. Ich denke mal mit Operator überladung aber wie genau geht das bei zwei [][] ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1181082</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1181082</guid><dc:creator><![CDATA[O_O]]></dc:creator><pubDate>Sat, 25 Nov 2006 09:13:08 GMT</pubDate></item><item><title><![CDATA[Reply to Matrix-Klasse operator[][] on Sat, 25 Nov 2006 09:49:08 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">vector&lt;float&gt; &amp; operator[](const int &amp;index){ return _matrix[index]; }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1181094</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1181094</guid><dc:creator><![CDATA[thordk]]></dc:creator><pubDate>Sat, 25 Nov 2006 09:49:08 GMT</pubDate></item><item><title><![CDATA[Reply to Matrix-Klasse operator[][] on Sat, 25 Nov 2006 10:21:07 GMT]]></title><description><![CDATA[<p>Stichwort Proxy-Klasse.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1181111</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1181111</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Sat, 25 Nov 2006 10:21:07 GMT</pubDate></item></channel></rss>