Skip to content

mul! of sparse and diagonal for non-commutative eltypes? #589

Closed
JuliaLang/julia
#30163
@dkarrasch

Description

@dkarrasch

Here (and in the corresponding rmul!/lmul!)

https://github.com/JuliaLang/julia/blob/58c0ed57dc796a9bb0759ce49781d97b8474eee3/stdlib/SparseArrays/src/linalg.jl#L1165-L1192

we assume that multiplication of the eltypes of D and A is commutative, whereas we do care about the order of multiplication here:

https://github.com/JuliaLang/julia/blob/58c0ed57dc796a9bb0759ce49781d97b8474eee3/stdlib/SparseArrays/src/linalg.jl#L1194-L1218

I don't have a use/test case for matrix multiplication with non-commutative eltypes, so somebody should tell if there is an issue here (with an easy fix). @Jutho ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    sparseSparse arrays

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions