level 1
补代码
In[77]:= $Assumptions =
v1 \[Element] Vectors[4] && v2 \[Element] Vectors[4]
Out[77]=
v1 \[Element] Vectors[4, Complexes] &&
v2 \[Element] Vectors[4, Complexes]
In[78]:= TensorDimensions[TensorProduct[v1, v2]]
Out[78]= {4, 4}
In[79]:= TensorProduct[v1, v2] + DiagonalMatrix[{1, 2, 3, 4}]
Out[79]= {{1 + v1\[TensorProduct]v2, v1\[TensorProduct]v2,
v1\[TensorProduct]v2, v1\[TensorProduct]v2}, {v1\[TensorProduct]v2,
2 + v1\[TensorProduct]v2, v1\[TensorProduct]v2,
v1\[TensorProduct]v2}, {v1\[TensorProduct]v2, v1\[TensorProduct]v2,
3 + v1\[TensorProduct]v2,
v1\[TensorProduct]v2}, {v1\[TensorProduct]v2, v1\[TensorProduct]v2,
v1\[TensorProduct]v2, 4 + v1\[TensorProduct]v2}}
2023年12月11日 10点12分
