Read from Matrix Market File VI
- Updated2023-02-21
- 12 minute(s) read
Read from Matrix Market File VI
Owning Palette: File I/O VIs
Requires: Multicore Analysis and Sparse Matrix Toolkit
Reads a matrix from a file in the Matrix Market exchange format.
You must manually select the polymorphic instance you want to use. The instance you select and the actual matrix stored in the Matrix Market file must match. Otherwise, LabVIEW returns an error.
Read Sparse from Matrix Market (DBL)

![]() |
Matrix Market file specifies an absolute path to a file from which you want to read the matrix. | ||||||||||||||||||||||||||||||||||
![]() |
matrix info only? specifies whether to read the value of the matrix elements from Matrix Market file. The default is FALSE, which specifies that this VI reads the value of the matrix elements and the matrix information. When matrix info only? is TRUE, this VI reads the value of the matrix information only. | ||||||||||||||||||||||||||||||||||
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||||||||||||||||||||||||
![]() |
Matrix Market file out returns Matrix Market file. | ||||||||||||||||||||||||||||||||||
![]() |
Sparse Matrix returns the matrix read from Matrix Market file. This output returns an empty matrix when matrix info only? is TRUE. | ||||||||||||||||||||||||||||||||||
![]() |
matrix info returns the matrix information read from Matrix Market file.
| ||||||||||||||||||||||||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Read Sparse from Matrix Market (CDB)

![]() |
Matrix Market file specifies an absolute path to a file from which you want to read the matrix. | ||||||||||||||||||||||||||||||||||
![]() |
matrix info only? specifies whether to read the value of the matrix elements from Matrix Market file. The default is FALSE, which specifies that this VI reads the value of the matrix elements and the matrix information. When matrix info only? is TRUE, this VI reads the value of the matrix information only. | ||||||||||||||||||||||||||||||||||
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||||||||||||||||||||||||
![]() |
Matrix Market file out returns Matrix Market file. | ||||||||||||||||||||||||||||||||||
![]() |
Sparse Matrix returns the matrix read from Matrix Market file. This output returns an empty matrix when matrix info only? is TRUE. | ||||||||||||||||||||||||||||||||||
![]() |
matrix info returns the matrix information read from Matrix Market file.
| ||||||||||||||||||||||||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Read Dense from Matrix Market (DBL)

![]() |
Matrix Market file specifies an absolute path to a file from which you want to read the matrix. | ||||||||||||||||||||||||||||||||||
![]() |
matrix info only? specifies whether to read the value of the matrix elements from Matrix Market file. The default is FALSE, which specifies that this VI reads the value of the matrix elements and the matrix information. When matrix info only? is TRUE, this VI reads the value of the matrix information only. | ||||||||||||||||||||||||||||||||||
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||||||||||||||||||||||||
![]() |
Matrix Market file out returns Matrix Market file. | ||||||||||||||||||||||||||||||||||
![]() |
Dense Matrix returns the matrix read from Matrix Market file. This output returns an empty matrix when matrix info only? is TRUE. | ||||||||||||||||||||||||||||||||||
![]() |
matrix info returns the matrix information read from Matrix Market file.
| ||||||||||||||||||||||||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Read Dense from Matrix Market (CDB)

![]() |
Matrix Market file specifies an absolute path to a file from which you want to read the matrix. | ||||||||||||||||||||||||||||||||||
![]() |
matrix info only? specifies whether to read the value of the matrix elements from Matrix Market file. The default is FALSE, which specifies that this VI reads the value of the matrix elements and the matrix information. When matrix info only? is TRUE, this VI reads the value of the matrix information only. | ||||||||||||||||||||||||||||||||||
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||||||||||||||||||||||||
![]() |
Matrix Market file out returns Matrix Market file. | ||||||||||||||||||||||||||||||||||
![]() |
Dense Matrix returns the matrix read from Matrix Market file. This output returns an empty matrix when matrix info only? is TRUE. | ||||||||||||||||||||||||||||||||||
![]() |
matrix info returns the matrix information read from Matrix Market file.
| ||||||||||||||||||||||||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Read from Matrix Market File Details
The following table lists the support characteristics of this VI.
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | No |
Refer to the following table to determine the instance to use.
| Instance to use | Format | Field | Type |
|---|---|---|---|
| Read Sparse from Matrix Market (DBL) | Coordinate | Real | General |
| Integer | Symmetric | ||
| Pattern | Skew-symmetric | ||
| Read Sparse from Matrix Market (CDB) | Coordinate | Real | General |
| Complex | Symmetric | ||
| Integer | Skew-symmetric | ||
| Pattern | Hermitian | ||
| Read Dense from Matrix Market (DBL) | Array | Real | General |
| Integer | Symmetric | ||
| Skew-symmetric | |||
| Read Dense from Matrix Market (CDB) | Array | Real | General |
| Complex | Symmetric | ||
| Integer | Skew-symmetric | ||
| Hermitian |
Example
Refer to the Read Matrix from Matrix Market File VI in the labview\examples\Multicore Analysis and Sparse Matrix\Sparse Matrix directory for an example of using the Read from Matrix Market File VI.









