Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird behavior of LinearAlgebra.mul! for Double64 #194

Open
photor opened this issue Mar 16, 2024 · 0 comments
Open

Weird behavior of LinearAlgebra.mul! for Double64 #194

photor opened this issue Mar 16, 2024 · 0 comments

Comments

@photor
Copy link

photor commented Mar 16, 2024

using DoubleFloats, BenchmarkTools, LinearAlgebra

const n=1000
A=randn(Double64,n,n)
B=randn(Double64,n,n)
C=zeros(Double64,n,n)

@btime mul!($C,$A,$B);

gives

21.144 s (0 allocations: 0 bytes)

while

@btime mul!($C,$A,$B,true,false);

gives

13.402 s (3 allocations: 29.81 KiB)

Shouldn't mul!(C,A,B) be realized as mul!(C,A,B,true,false)? And why is the difference in performance and allocations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant