We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19056c6 commit fb32dddCopy full SHA for fb32ddd
1 file changed
src/Algebra.jl
@@ -40,7 +40,7 @@ end
40
# PartitionedArrays extras
41
42
function LinearAlgebra.axpy!(α,x::PVector,y::PVector)
43
- @check partition(axes(x,1)) === partition(axes(y,1))
+ @check ( partition(axes(x,1)) === partition(axes(y,1)) || ( matching_own_indices(axes(x,1),axes(y,1)) && matching_ghost_indices(axes(x,1),axes(y,1)) )
44
map(partition(x),partition(y)) do x,y
45
LinearAlgebra.axpy!(α,x,y)
46
end
0 commit comments