# y .= x .* s .+ y .* t
function axpby!(
s::Y1,
x::PartitionedVector{T},
t::Y2,
y::PartitionedVector{T},
::VB, # Val{true} | Val{False}
::VB, # Val{true} | Val{False}
) where {T <: Number, Y1 <: Number, Y2 <: Number, B, VB<:Val{B}}
N = x.epv.N
for i in 1:N
yi = y[i].vec
xi = x[i].vec
axpby!(s, xi, t, yi)
end
return y
end
But it breaks the new tests about allocation-free methods (from 0 to 16 bytes allocated).
To avoid duplication one can write:
But it breaks the new tests about allocation-free methods (from 0 to 16 bytes allocated).