SQUARE_MATRIX_MULRIPLE_RECURSIVE(A,B){ n=A.rows; let C be a new n*n matrix; if(n==1){ c11=a11*b11 }else { partition A,B,and C as in equations //采用下标的方式直接访问 C11=SQUARE_MATRIX_MULRIPLE_RECURSIVE(A11,B11)+SQUARE_MATRIX_MULRIPLE_RECURSIVE(A12,B21); C12=SQUARE_MATRIX_MULRIPLE_RECURSIVE(A11,B12)+SQUARE_MATRIX_MULRIPLE_RECURSIVE(A12,B22); C21=SQUARE_MATRIX_MULRIPLE_RECURSIVE(A21,B11)+SQUARE_MATRIX_MULRIPLE_RECURSIVE(A22,B21); C22=SQUARE_MATRIX_MULRIPLE_RECURSIVE(A21,B12)+SQUARE_MATRIX_MULRIPLE_RECURSIVE(A22,B22); } return C }