Skip to content

Conversation

GiggleLiu
Copy link
Contributor

Before this patch, a zero shaped matmul will crash julia.

A possible using case of zero-shaped matmul is the block diagonal matrices/tensors that used in physics simulation. During compression, one can easily generate a zero-shaped array.

@codecov
Copy link

codecov bot commented Mar 20, 2021

Codecov Report

Merging #75 (c5b05f8) into master (cedfff2) will increase coverage by 1.89%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
+ Coverage   83.56%   85.46%   +1.89%     
==========================================
  Files          11       11              
  Lines         566      578      +12     
==========================================
+ Hits          473      494      +21     
+ Misses         93       84       -9     
Impacted Files Coverage Δ
src/matmul.jl 89.43% <100.00%> (+4.05%) ⬆️
src/block_sizes.jl 94.91% <0.00%> (-1.70%) ⬇️
src/utils.jl 90.62% <0.00%> (+3.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cedfff2...c5b05f8. Read the comment docs.

@GiggleLiu GiggleLiu changed the title fix zero shaped matmul [WIP] fix zero shaped matmul Mar 20, 2021
@GiggleLiu GiggleLiu changed the title [WIP] fix zero shaped matmul fix zero shaped matmul Mar 20, 2021
@chriselrod
Copy link
Collaborator

chriselrod commented Mar 20, 2021

Yeah, seems worth having the check here. Thanks for the PR!

@chriselrod chriselrod merged commit 581fae0 into JuliaLinearAlgebra:master Mar 20, 2021
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

Successfully merging this pull request may close these issues.

2 participants