Multiplication between tensor and vectors

조회 수: 6 (최근 30일)
giordano de marzo
giordano de marzo 2019년 5월 11일
답변: Matthew Paluszak 2020년 5월 29일
I've a big tensor M_{abc}, let's say 500*200*500, and 3 vectors X, Y and Z whose dimensions are 500, 200 and 500. I've to perform the following operations
  • X_a=M_{abc}Y_bZ_c
  • Y_b=M_{abc}X_aZ_c
  • Z_c=M_{abc}X_aY_b
  • X=X/mean(X)
  • Y=Y/mean(Y)
  • Z=Z/mean(Z)
where the repeated indices are to be summed (M_{abc}Y_bZ_c=\sum_{b, c} M_{abc}Y_bZ_c). In the two dimensional case (matrix and two vectors) I would simply use matrix multiplications, considering that I've to repeat the procedure something between 5 and 50 times, till the 3 vectors converge stopping to vary under a new application of the algorithm, which is the best way to perform this procedure (hopefully without for loops)?

답변 (1개)

Matthew Paluszak
Matthew Paluszak 2020년 5월 29일
I don’t know the answer, but I also would like to know!

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by