mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Fix doc: setConstant does not exist for SparseMatrix.
(grafted from cd679f2c47
)
This commit is contained in:
parent
699c80e404
commit
f074d43f4b
@ -71,11 +71,10 @@ i.e either row major or column major. The default is column major. Most arithmet
|
|||||||
<td> Constant or Random Insertion</td>
|
<td> Constant or Random Insertion</td>
|
||||||
<td>
|
<td>
|
||||||
\code
|
\code
|
||||||
sm1.setZero(); // Set the matrix with zero elements
|
sm1.setZero();
|
||||||
sm1.setConstant(val); //Replace all the nonzero values with val
|
|
||||||
\endcode
|
\endcode
|
||||||
</td>
|
</td>
|
||||||
<td> The matrix sm1 should have been created before ???</td>
|
<td>Remove all non-zero coefficients</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user