Below is the method which I want it to return the product matrix.
public Matrix multiply(Matrix A) {
////code
}
Since it’s multiplication on the right, I think I should do A.multiply(B) to return matrix AB, with B on the right. Can anyone tell me an easy algorithm to achieve this?