Open anyzelman opened 10 months ago
Crossref issue #233 -- the matrix factory presently defines a diag function, but found that an iterator-only approach in conjunction with buildMatrixUnique cannot effect parallel I/O. One solution for that is to instead rely on the functionality proposed under this issue, such that input values for the diagonal can be ingested into a Vector, which is then in turn promoted to a diagonal matrix.
These are ideally provided as an algorithm (though may performance-wise require to be a primitive instead):