LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sparse matrix operators in mathscript

I am looking for equivalent of sparse and matrix commands for MathScript 15.0.1

 

Commands & references:

 

I am thinking the non-sparse versions (possibly wrong) are:

  • diag
  • eye
  • chol

 

can you:

  • tell me the actual mathscript command for the sparse item
  • point me to a reference document that allows me to map equivalent commands

 

Sparse has been around an exceptionally long time, and a number of the methods are published and open-source.  MathWorks documentation says things like "introduced before R2006a" and developed in collaboration with ... Oak Ridge National Laboratory so it should be well known and public access.

0 Kudos
Message 1 of 5
(3,085 Views)

Hey did you ever figure this out?

0 Kudos
Message 2 of 5
(2,778 Views)

I think that I just had to move on.  Sparse allows matrices that appear superficially to be insanely large, but that are in fact not comprised of that much data, to be handled without all the hullabaloo, with quite a bit of speed and low memory footprint.

 

 

0 Kudos
Message 3 of 5
(2,765 Views)

Since this thread is in the LabVIEW forum (instead of the Mathscript forum), I like to point out that plain LabVIEW has a sparse matrix toolkit. Maybe you can use that to solve your problem.

Message 4 of 5
(2,760 Views)

Thanks to both for getting back to me, I was curious because I found a Matlab script I wanted to translate to Labview (and I don't have Matlab or I would try to use the Matlab node, and can't seem to get it to work without) and it relied on spdiags as one of the commands. I did stumble onto and download the sparse matrix toolkit, but in the meantime was able to code my own version of spdiags, we'll see how it functions when I start playing with my actual arrays...

Message 5 of 5
(2,754 Views)