필터 지우기
필터 지우기

Optimize for 'double'

조회 수: 4 (최근 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 CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by