provide example of fill during matrix construction

This commit is contained in:
conrad
2023-02-08 14:24:00 +10:00
parent 12c1d9d539
commit c8ee53de8d
+3 -2
View File
@@ -3056,13 +3056,14 @@ Examples:
<ul>
<pre>
mat A(5, 6);
A.fill(123.0);
A.fill(123.0); // or: mat A(5, 6, fill::value(123.0));
</pre>
</ul>
</li>
<br>
<li>
<b>Note:</b> to explicitly set all elements to zero during object construction, use the following more compact form:
<b>Note:</b> to set all elements to zero during matrix construction, use the following more compact form:
<ul>
<pre>
mat A(5, 6, fill::zeros);