constructors for Matrix and SparseMatrixCSC from UniformScaling#24372
constructors for Matrix and SparseMatrixCSC from UniformScaling#24372Sacha0 merged 4 commits intoJuliaLang:masterfrom
Conversation
aaf3582 to
8fd2325
Compare
|
Ref. JuliaLang/LinearAlgebra.jl#454, suggesting special-casing |
|
As mentioned in JuliaLang/LinearAlgebra.jl#454, I don't think it is necessary to return |
|
Cleaned up the existing commits and added a couple commits providing the convenience forms suggested by This pull request should be in shape. Absent objections or requests for time, I am inclined to move forward with this approach (merge) in the next day or two. Thoughts? Thanks! |
|
Thanks all! |
This pull request provides constructors for
MatrixandSparseMatrixCSCfromUniformScalings, for exampleMatrix(I, dims)andSparseMatrixCSC(I, dims). In other words, this pull request explores the intersection of #11557 (particularly #11557 (comment)) and JuliaLang/LinearAlgebra.jl#454. So far this approach feels nice, supporting the direction in #11557 (comment). Best!