Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Talking about the calculation ability of matlab
Talking about the calculation ability of matlab
Integer operation is fast, and floating-point operation is much more demanding. FLOPS, the number of floating-point operations per second, has always been an important parameter to measure the computing power of CPU scientific programs.

No matter how big this number is, what 64, 6.4; You can do experiments if you want to confirm.

Generate two large arrays, such as

A = unit (1, 100000)*64

B = ONES (1, 100000) * 6.4% Matlab is double by default.

A=int8(A)% converts a into an integer.

then

A.* A;

B.* B;

Look at the difference in calculation time.