Set Max Number of Nonzeros VI
- Updated2023-02-21
- 4 minute(s) read
Set Max Number of Nonzeros VI
Owning Palette: Matrix VIs
Requires: Multicore Analysis and Sparse Matrix Toolkit
Sets the maximum number of nonzeros in a sparse matrix.
Wire data to the Sparse Matrix input to determine the polymorphic instance to use or manually select the instance.
Set Sparse Matrix Max NZ (DBL)

![]() |
Sparse Matrix in specifies the input sparse matrix. |
![]() |
max number of nonzeros specifies the maximum number of nonzeros to set in Sparse Matrix in. If max number of nonzeros is smaller than the number of elements in Sparse Matrix in, LabVIEW does not change the maximum number of nonzeros. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
Sparse Matrix out returns Sparse Matrix in with the maximum number of nonzeros you specify in max number of nonzeros. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Set Sparse Matrix Max NZ (SGL)

![]() |
Sparse Matrix in specifies the input sparse matrix. |
![]() |
max number of nonzeros specifies the maximum number of nonzeros to set in Sparse Matrix in. If max number of nonzeros is smaller than the number of elements in Sparse Matrix in, LabVIEW does not change the maximum number of nonzeros. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
Sparse Matrix out returns Sparse Matrix in with the maximum number of nonzeros you specify in max number of nonzeros. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Set Sparse Matrix Max NZ (CDB)

![]() |
Sparse Matrix in specifies the input sparse matrix. |
![]() |
max number of nonzeros specifies the maximum number of nonzeros to set in Sparse Matrix in. If max number of nonzeros is smaller than the number of elements in Sparse Matrix in, LabVIEW does not change the maximum number of nonzeros. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
Sparse Matrix out returns Sparse Matrix in with the maximum number of nonzeros you specify in max number of nonzeros. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Set Sparse Matrix Max NZ (CSG)

![]() |
Sparse Matrix in specifies the input sparse matrix. |
![]() |
max number of nonzeros specifies the maximum number of nonzeros to set in Sparse Matrix in. If max number of nonzeros is smaller than the number of elements in Sparse Matrix in, LabVIEW does not change the maximum number of nonzeros. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
Sparse Matrix out returns Sparse Matrix in with the maximum number of nonzeros you specify in max number of nonzeros. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Set Max Number of Nonzeros Details
The following table lists the support characteristics of this VI.
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | No |




