Wrong results with cumsum on logical tall array?
3 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I use Matlab 2017b since a few weeks and try to handle big data with tall Arrays. Today i had to find out that cumsum doesn't work properly on (logical) tall Arrays. Still didn't tested it on other tall Arrays than logical. The first pictures shows a Logical Array as tall and as usual logical plotted.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170453/image.jpeg)
The next picture Shows the cumsum.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170454/image.jpeg)
As you can see the cumsum on common Logical Array works as expected. The tall doesn't.
I saw this first on a machine with parallel computing Toolbox installed, but it also appears without the Toolbox. How to explain this phenomenon?
Best regards
0 件のコメント
採用された回答
Edric Ellis
2017 年 11 月 30 日
編集済み: Edric Ellis
2017 年 11 月 30 日
Thanks for reporting this - this is indeed a bug in the tall implementation of cumsum for logical arrays. You can work around this by using
cumsum(double(tallLogicalArray));
This is described in the following bug report: https://www.mathworks.com/support/bugreports/1635821.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Tall Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!