跳转到内容

This page is also in English.

Read it in English

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

tensor_product 函数

两个列表或矩阵的张量积。

怎么写

tensor_product(a, b)

a
列表或矩阵。接受一个列表或一个矩阵,写作行组成的列表。
b
列表或矩阵。接受一个列表或一个矩阵,写作行组成的列表。

示例

  • tensor_product⁡([1,2],[3,4])=(3468)\displaystyle \operatorname{tensor\_product}(\left[ 1, 2 \right], \left[ 3, 4 \right]) = \begin{pmatrix} 3 & 4 \\ 6 & 8 \end{pmatrix}
    tensor_product([1, 2], [3, 4])

    在求解器中,tensor_product([1, 2], [3, 4]) 的结果是 [[3, 4], [6, 8]]。

    在求解器中打开