how to store big triangular matrix

I need to store and operate(so time of referencing operations is very important) with thriangular matrix. How to do it effectively? I think that using of sparse matrix is not efficient because we need to store indexes. May be it is better to store as 1-d cell array of 1-d "normal" arrays? Or some other way? Please help. And sorry for my poor English

1 件のコメント

Chris Turnes
Chris Turnes 2014 年 8 月 8 日
How large are your matrices? Can you fit the whole matrix in memory, and if not, can you fit only the non-zero coefficients in memory? Given the density of the matrix, you are correct that storing it as a sparse array will not be efficient. However, using a full matrix may still be your best option because of the efficiency of MATLAB's operations with triangular matrices.

サインインしてコメントする。

 採用された回答

Jan
Jan 2014 年 8 月 10 日

0 投票

It depends on what you are doing with the matrices. When you only want to store the matrices, but do not perform any operations, a cell vector seems to be sufficient. When you need column or row operations only, this might be efficient also.
But e.g. for a matrix multiplication this would be a severe disadvantage and a full matrix is much better.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

製品

質問済み:

2014 年 8 月 8 日

回答済み:

Jan
2014 年 8 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by