Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRewrite conversion for ddiMatrix #145
Conversation
|
Correct on lack of boolean. We could map on the way in -- Armadillo uses |
|
I think that even if the boolean matrix can be represented in
As page 176th of the note points out, the result should be
|
|
Perhaps contact Conrad to add a typedef for logical matrices? |
|
It is OK if we can't support every type. Some friendly warnings should be fine. |
When doing tests for ddiMatrix, an extreme case came out that
drag == "N"and0 in x. So I rewrite the conversion for ddiMatrix to support that.The unit tests for sparse matrix conversion are also moved to runit.sparseConversion.R to keep the functionality.
When looking through the documentation of Armadillo, I find that it might not support boolean matrix (please correct me if I am wrong). The multiplication of boolean matrix is different from that of numeric matrix. So the conversion for lsparseMatrix and nsparseMatrix might not make sense and could be left to be done when Armadillo supports the operation of boolean matrices. Next I'll add warning message for lsparseMatrix and nsparseMatrix and maintain the conversion after the new feature for boolean sparse matrix comes up in Armadillo.