Registered Member
|
Is there currently an easy way to assign a DiagonalMatrix to the more general SparseMatrix? I'd like to do something like:
But I get errors like:
This would be helpful for passing DiagonalMatrix variables directly as arguments to functions expecting general SparseMatrices. |
Moderator
|
This now works with the devel branch through operator= (as in your example) or an explicit ctor.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]