What's the most succinct, fastest, most numerically stable, most R-idiomatic way to do left and right matrix division in R? I understand left division inv(A)*B
is usually done with solve(a,b)
, but how about B*inv(A)
? Is the best way really to compute t(solve(t(A),t(B)))
?
It is B %*% solve(A)
, because solve(A)
finds the inverse of A
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With