How should I multiply two matrices in C++?
<p><em>Note: I'm using the standard library for C++, and am storing matrices as multidimensional vectors (see example below).</em></p>

<p>I'm having trouble finding the proper function to multiply two matrices in C++. To clarify what I'm trying to do:</p>

<pre><code>A = | a1 a2 |  B = | b1 |
    | a3 a4 |      | b2 |

Result = | (a1 * b1 + a2 * b2) |
         | (a3 * b1 + a4 * b2) |
</code></pre>

<p>Obviously I could do this using a simple algorithm but I'm trying to find if there's a function to do this.</p>

<p>My specific example in C++:</p>

<pre><code>#include &lt;vector&gt;

std::vector&lt;std::vector&lt;double&gt;&gt; A;
A.push_back({ 0.96, 0.56 });
A.push_back({ 0.01, 0.41 });

std::vector&lt;std::vector&lt;double&gt;&gt; B;
B.push_back({ 1.331749 });
B.push_back({ 1.0440705 });

Result = (A * B);
</code></pre>

<p>Where "<strong>Result</strong>" would be:</p>

<pre><code>| 1.8631586 |
| 0.4413864 |
</code></pre>

<p><strong>How should I go about doing the above?</strong></p>