tensorly.tenalg
.multi_mode_dot
- multi_mode_dot(tensor, matrix_or_vec_list, modes=None, skip=None, transpose=False)[source]
n-mode product of a tensor and several matrices or vectors over several modes
- Parameters:
- tensorndarray
- matrix_or_vec_listlist of matrices or vectors of length
tensor.ndim
- skipNone or int, optional, default is None
If not None, index of a matrix to skip. Note that in any case, modes, if provided, should have a length of
tensor.ndim
- modesNone or int list, optional, default is None
- transposebool, optional, default is False
If True, the matrices or vectors in in the list are transposed. For complex tensors, the conjugate transpose is used.
- Returns:
- ndarray
tensor times each matrix or vector in the list at mode mode
See also
Notes
If no modes are specified, just assumes there is one matrix or vector per mode and returns:
\(\text{tensor }\times_0 \text{ matrix or vec list[0] }\times_1 \cdots \times_n \text{ matrix or vec list[n] }\)