Closed st-- closed 1 year ago
Would be really helpful in downstream code if I wouldn't have to think whether I've got a Diagonal -> wrap in PDiagMat or not -> wrap in PDMat. How about
Diagonal
PDiagMat
PDMat
PDMat(mat::Diagonal) = PDiagMat(diag(mat))
for example?
Would be really helpful in downstream code if I wouldn't have to think whether I've got a
Diagonal
-> wrap inPDiagMat
or not -> wrap inPDMat
. How aboutfor example?