LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D array memory allocation issue


@eddy1990 wrote:

The data will be needed in a following Sub VI where I plan to take the inverse of the large 2d array.

 


That's going to be expensive and slow (assuming you mean "invert the matrix*", not just take 1/x of the elements).

 

*However, since your matrix contains NaN, the inverted matrix will be all NaN, so you need to clean it up first!

 

Can you give some background on what you are trying to achieve?

0 Kudos
Message 11 of 13
(903 Views)

Hi

 

The 2D array will contain only numeric values and NaN and Inf will be removed. I am working on solving linear equations of the form AX = B (nodal analysis). My A matrix is a 2D array of size 6900*6900. My B matrix is an array of size 6900*1. So I intend to perform inv(A)*B.

 

Since I want the whole 2D array, I was planning to use the New Data Value Reference. Will it improve the algorithm?

 

Thanks

0 Kudos
Message 12 of 13
(895 Views)

A DVR will probably not improve anything here. Just don't wire any indicators to these gigantic arrays.

 

LabVIEW has direct tools to solve linear equations, so use these.

Message 13 of 13
(873 Views)