You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with an optimization where matrix multiplications act on a block vector, so that you have a higher flop/memop ratio.
But you need to keep in mind vectors converge at different speeds, so the matrix multiplication should only happen on the block that's not converged (you can split it like [not converged | converged] and re-shuffle at the end).
where size(x) = size(b) = (1000, 3) (ie 3 right hand sides)
over just using one rhs at the time:
cg!(x1, A, b[:,1])
cg!(x2, A, b[:,2])
cg!(x2, A, b[:,3])
Lets assume the vectors will converge with roughly the same speed.
The first version works atm, but which residual will it use to check for convergence?
I get an error when not allocating
x
when I have multiple RHS.I guess cg(A,b) should also work?
The text was updated successfully, but these errors were encountered: