Skip to content

In BLAS overrides, remove restriction to StridedMatrix #25247

@dlfivefifty

Description

@dlfivefifty

Definitions such as gemv! (https://github.com/JuliaLang/julia/blob/master/base/linalg/blas.jl#L553) restrict to StridedVecOrMat. This prevents user-defined types from calling these functions.

I think this restriction is unnecessary as a user AbstractMatrix which overrides the (as-of-yet not explicitly defined) strided matrix "interface" of unsafe_convert(::Type{Ptr{T}},A), and stride should be able to call gemv!.

To overcome this restriction, I end up having to copy and paste Base's code to make my own gemv!:

https://github.com/JuliaMatrices/BlockBandedMatrices.jl/blob/master/src/lapack.jl#L19

This is not too burdensome but seems unnecessary.

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