Skip to content

Multiplication of ComplexF64 and Float64 blocked matrices does not dispatch to BLAS #491

@krcools

Description

@krcools

The following leads to extremely long execution times:

using BlockArrays
A = BlockedArray(rand(ComplexF64, 5000, 5000), [2000,2000,1000], [2000,2000,1000])
B = BlockedArray(rand(Float64, 5000, 2000), [2000,2000,1000], [2000])
C = complex(B)

@time A * B
@time A * C

The latter finishes in 1.7 seconds, whereas the first (mixed realness) takes more than 100 times longer.

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