![](/s/cache/48/a2/48a2fd7f3cb773ffe37f321c732fdf2f.png)
0
Beantwortet
multiplication / addition performance
is there a speed-up when we do the vector-matrix multiplication addition by using your toolbox?
Antwort
![](/s/cache/33/eb/33ebcfe83a5428c0b237b4db844978aa.png)
+1
Antwort
Beantwortet
Your question is not clear. "Speed-up" compared to what?
If we would compare it to VPA then we see ~53 times speed-up:
>> A = vpa(rand(1000));
>> x = vpa(rand(1000,1));
>> tic; y = A*x; toc;
Elapsed time is 1.143934 seconds.
>> A = rand(1000,'mp');
>> x = rand(1000,1,'mp');
>> tic; y = A*x; toc;
Elapsed time is 0.021398 seconds.
![](/s/cache/49/60/4960588ce290b64d6eab19e3391b3fb5.png)
From my point of view is very important to compare multi-precision arrays creation, too!!!
>> tic; A = vpa(rand(1000));toc
Elapsed time is 16.637381 seconds.
>> tic; A = rand(1000,'mp');toc Elapsed time is 0.026866 seconds.
So in this case, you can see ~ 619x speed up!!!
I think, the MCT is really excellent tool ... :)
![](/s/cache/33/eb/33ebcfe83a5428c0b237b4db844978aa.png)
Just as a note, we have more examples of VPA vs. MCT in our user's manual:
Customer support service by UserEcho
Your question is not clear. "Speed-up" compared to what?
If we would compare it to VPA then we see ~53 times speed-up: