LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

single precision matrix multiplication

Hi,

another approach:

This creates one more memory buffer, but works without case structure Smiley Wink


Message Edited by GerdW on 04-08-2008 05:22 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 17
(2,010 Views)

Well, we don't need 2D for the vector. 😄



Message Edited by altenbach on 04-08-2008 08:36 AM
0 Kudos
Message 12 of 17
(2,005 Views)
Hello Altenbach,

thank you very much for the algorithm. I have tried it and obviously it works, but unfortunately it seems not to be useful in real-time. I have verified the performance and it is about 5-times slower than the standard matrix multiplication in double precision (see attached file) Smiley Sad 

Best regards,

Lukas
0 Kudos
Message 13 of 17
(2,000 Views)
Thank you GerdW, but it is still much slower than LV built-in matrix multiplication function. I am afraid that there exist the only one solution. Program it in C, compile in to DLL an link it into LabVIEW (for now, I can't do it...)

Lukas
0 Kudos
Message 14 of 17
(1,991 Views)

Most modern processors do double precision arithmetic about as fast as single precision (both are single-cycle or multiple operation per cycle operations).  Your only advantage in using single precision is probably in memory handling.  Modern processors can also do a lot of the matrix math in single operations (SSE2 and above capable processors can do this in double precision, MMX is integer, SSE is single precision).

Take home message - you probably will not get much speed out of this exercise.

One final note. Although I am an NI employee, I do not work with the math/analysis team so have no knowledge of the internal structure of the matrix operation primitives/VIs.  I develop applications in LabVIEW.

Message 15 of 17
(1,970 Views)
I have to try it, because this multiplication must run faster. I can't see any other solution (except buing a new processor for my PXI)
0 Kudos
Message 16 of 17
(1,963 Views)
Lukas,

What is your LabVIEW version and OS?  I may have a solution for you.

-Jim
0 Kudos
Message 17 of 17
(1,953 Views)