我有两个9x9个矩阵,A和B。
我想建立一个大的矩阵C,其模式如下:
A B B B B B
B A B B B B
B B A B B B
B B B A B B
B B B B A B
B B B B B A
As you can see, the A matrices are on the diagonal, the B are everywhere else. I m trying to create a code so that this pattern continues no matter how great the dimensions are.
E.g. 10 matrices x 10 matrices still has matrix A along the diagonal and B s everywhere else.
最好使用马hor和散射或像混血这样的东西? 我不将这些矩阵表A和B已经包含信息。
感谢大家花时间阅读。