Skip to content

Documentation of FiveArg() #236

@ruairidhs

Description

@ruairidhs

If we set the trait FiveArg(), is it also necessary to implement the three argument mul!? Something like:

LinearMaps.MulStyle(A::MyMap) = FiveArg()

function LinearMaps._unsafe_mul!(y, A::MyMap, x::AbstractVector, α, β)
    ...
end

LinearMaps._unsafe_mul!(y, A::MyMap, x::AbstractVector) = LinearMaps._unsafe_mul!(y, A, x, 1, 0)

If so, it would be useful to note this in the "Custom Maps" section of the documentation.
If you don't need to do this then I have some other issue... :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions