Get Number of Nonzeros VI
- Updated2023-02-21
- 4 minute(s) read
Get Number of Nonzeros VI
Owning Palette: Matrix VIs
Requires: Multicore Analysis and Sparse Matrix Toolkit
Returns the number of nonzeros and 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.
Get Sparse Matrix NNZ (DBL)
![]() |
Sparse Matrix specifies the input sparse matrix. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
number of nonzeros returns the number of nonzeros in Sparse Matrix. |
![]() |
max number of nonzeros returns the maximum number of nonzeros in Sparse Matrix. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Get Sparse Matrix NNZ (SGL)
![]() |
Sparse Matrix specifies the input sparse matrix. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
number of nonzeros returns the number of nonzeros in Sparse Matrix. |
![]() |
max number of nonzeros returns the maximum number of nonzeros in Sparse Matrix. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Get Sparse Matrix NNZ (CDB)
![]() |
Sparse Matrix specifies the input sparse matrix. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
number of nonzeros returns the number of nonzeros in Sparse Matrix. |
![]() |
max number of nonzeros returns the maximum number of nonzeros in Sparse Matrix. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Get Sparse Matrix NNZ (CSG)
![]() |
Sparse Matrix specifies the input sparse matrix. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
number of nonzeros returns the number of nonzeros in Sparse Matrix. |
![]() |
max number of nonzeros returns the maximum number of nonzeros in Sparse Matrix. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Get 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 | Yes |
Example
Refer to the Sparse Matrix Attributes and Subsets VI in the labview\examples\Multicore Analysis and Sparse Matrix\Sparse Matrix directory for an example of using the Get Number of Nonzeros VI.