Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下练习。
检查以下矩阵是否对称。知道对于所有位置的矩阵当且仅当且仅当 A[i][j]==A[j][i] 时,该矩阵是对称的。A[4][4] = {1, 0, 1, 1, 0, 4, 0, 0, 1, 0, 3, 0, 1, 0, 1, 3};
我确实了解如何使用 C 来证明对称性,但是在 MIPS 中实现它时遇到了麻烦,因为我不明白如何使用 A [i] [j] == A [j] [i] 来翻译只是地址。问题是当 [i] [j] 到 [j] [i] 交换时,我无法识别地址遵循的模式。