apply_matrix_to_slices#

apply_matrix_to_slices(target, matrix, slices)[ソース]#

Apply a matrix to slices of a target tensor.

パラメータ:
  • target (ndarray) – The tensor containing the slices on which to apply the matrix.

  • matrix (ndarray) – The matrix to apply to slices of the target tensor.

  • slices (Sequence[int | slice | ellipsis | Tuple[int | slice | ellipsis, ...]]) – The slices of the target tensor on which to apply the matrix.

戻り値:

The tensor resulting from applying the matrix to the slices of the target tensor.

戻り値の型:

ndarray