フィルターのクリア

Optimize for 'double'

3 ビュー (過去 30 日間)
Yingke
Yingke 2012 年 6 月 11 日
Dear All
I am wondering is there any special optimization in MATLAB for double arrays? I have the feeling that UINT is a little slower than double array, although the reduced memory space is considerable. I need to make a trade off between speed and space now.
Thanks!
  1 件のコメント
Yingke
Yingke 2012 年 6 月 11 日
For example: the range of A is 0-2^32. The operation on A is essential, + - * /.
Shall I choose Uint32 or DOUBLE?

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

採用された回答

Walter Roberson
Walter Roberson 2012 年 6 月 11 日
These days it is common for CPUs to have faster floating point instructions than integer instructions.
For larger double arrays, I believe the optimized LAPACK or similar libraries may be invoked; I am not sure if those are invoked for other data types.

その他の回答 (1 件)

deniel munthe
deniel munthe 2012 年 6 月 11 日
you can do in order to normalize the data into smaller data and data processing will be faster.
  1 件のコメント
Yingke
Yingke 2012 年 6 月 11 日
Thank you for your quick reply.
However, my data consist of empirical frequency, and normalization will introduce extra error.

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

カテゴリ

Help Center および File ExchangeDirect Search についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by