Outer product of tall arrays

1 view (last 30 days)
Z
Z on 24 Sep 2022
Edited: Z on 25 Sep 2022
I have two column vectors x and y which I cast as tall arrays. I want to take their outer product x*y', however I cannot transpose a tall array. What other way is there to perform the computation x*y'?
  10 Comments
John D'Errico
John D'Errico on 25 Sep 2022
Suppose the column vectors are small enough, that you can trivially store them in memory.
So say that x and y are only 1e7 elements in length. Then x*y' would use only 8e14 bytes of memory to store.
This is still a huge array, 800 terabytes.
Z
Z on 25 Sep 2022
@John D'Errico I see. Thank you for your responses!

Sign in to comment.

Answers (0)

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!