Jump to content

Why should I care about the Matrix type...?


gb119

Recommended Posts

Having skipped several generations of LabVIEW (from 8.6.1 to 2012) I was just looking around at the new toys to play with and cam across the matrix data type. Is there a good summary out there somewhere that would explain why having a new data type is so much better than simply using a 2D array of numbers - I see that there is a toolkit that links to the Intel Math Kernel library that uses the data type, but if I'm not using that is there any good reason to convert code to use the matrix type (e.g. more efficient data storage, faster indexing...?). I didn't find the online help particularly illuminating on the subject, but perhaps was looking in the wrong place...

Link to comment

My favorite thing about the matrix functions is actually the Matrix Size function which works for all 2D arrays. Other than that, they are nice when you want matrix multiplication as opposed to element by element. Added bonus is that matrix multiplication uses an algorithm like Strassen's which is O(n^log2(7)) as opposed to the simple O(n^3) version most of us would write. Now it would be nice if we could have integer typed matrices....

Link to comment

Generally there is little difference between the matrix data type and a 2D array. However, there are a handful of mathematical operations that act differently. Just multiplying 2D arrays of numbers the way labview does is different than matrix multiply.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.