gather() in tall array inverse is incorrect

조회 수: 4 (최근 30일)
chen zhe
chen zhe 2024년 6월 27일
편집: Stephen23 2024년 6월 27일
Hi,
I am testing simple code with tall array inverse and gather(). The following results are different, anyone knows how to fix gather? As I am using tall array for AA and bb.
AA = ones(13,9);
bb = ones(13,1);
AA_t = tall(ones(13,9));
bb_t = tall(ones(13,1));
gather(AA_t\bb_t);
Unrecognized function or variable 'AA_t'.
AA \ bb;
  댓글 수: 3
chen zhe
chen zhe 2024년 6월 27일
So the problem still here: why gather()cannot evaluate the same results as non-tall array case? Is there a solution to make consistent results: A/b and gather(A_t/b_t)? They all have the rank deficient issue
Stephen23
Stephen23 2024년 6월 27일
편집: Stephen23 2024년 6월 27일
"why gather()cannot evaluate the same results as non-tall array case?"
For efficient handling of the different data types they use different algorithms. No surprises there.
"Is there a solution to make consistent results: A/b and gather(A_t/b_t)? They all have the rank deficient issue"
There are infinitely many solutions. Why should we expect any one solution to be preferred?

댓글을 달려면 로그인하십시오.

답변 (1개)

Aditya
Aditya 2024년 6월 27일
Hi Chen,
please modify this line and see whether the issue persists or not!
gather(AA_t)\gather(bb_t);
  댓글 수: 1
chen zhe
chen zhe 2024년 6월 27일
It works. But this is not what we want, as it uses two gather(). When we process tall arrays, we try to use gather() as less as possible due to time consuming.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Tall Arrays에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by