# outer¶

tenpy.linalg.np_conserved.outer(a, b)[source]

Forms the outer tensor product, equivalent to tensordot(a, b, axes=0).

Labels are inherited from a and b. In case of a collision (same label in both a and b), they are both dropped.

Parameters

b (a,) – The arrays for which to form the product.

Returns

c

Array of rank a.rank + b.rank such that (for Ra = a.rank; Rb = b.rank):

c[i_1, ..., i_Ra, j_1, ... j_R] = a[i_1, ..., i_Ra] * b[j_1, ..., j_rank_b]


Return type

Array