Issue with older code in which arrays are misrepresented as sparse
古いコメントを表示
Starting with Matlab 2010 and continuing through the current version (2013), some older code than ran cleanly on all prior versions fails to run because some 2 dimensional arrays are returned from subroutines in sparse representation, even though the code does not ask for that. I have several questions: 1. Has anybody else seen this before? 2. Does anybody know what causes it? 3. Is there a fix? I've started to go through my code and specify that all of these matrices are full, but that is cumbersome and seems like a brute force approach.
Thanks for any feedback!
採用された回答
その他の回答 (2 件)
Sean de Wolski
2013 年 8 月 2 日
編集済み: Sean de Wolski
2013 年 8 月 2 日
0 投票
- No. Are the data identical and code paths the same?
- What functions are doing this? (I might recommend contacting support!)
- if issparse(X); X = full(X); end
2 件のコメント
Mark Slifstein
2013 年 8 月 2 日
Sean de Wolski
2013 年 8 月 2 日
Contact support with an example piece of code that reproduces the issue in an old v. new release with the exact same data.
Jan
2013 年 8 月 2 日
0 投票
It is hard to guess the cause without seeing any detail of the code. Could you post a relevant part of the code which reproduces the problem?
Why and where does Matlab fail, when some inputs are sparse?
カテゴリ
ヘルプ センター および File Exchange で Sparse Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!