Wednesday, December 25, 2019

Explorations of Tensors


A=ArrayReshape[Array[#1^2 &,8],{2,2,2}];
B=ArrayReshape[{"\[WhiteKing]","\[WhiteQueen]",

"\[WhiteRook]","\[WhiteBishop]"},{2,2}];
{MatrixForm[A],MatrixForm[B]}
{MatrixForm[Dot[A,B]],

MatrixForm[Dot[B,A]],MatrixForm[A*B]}

No comments:

Post a Comment