CIBC:Documentation:SCIRun:Reference:Teem:ConvertNrrdToMatrix
From SCIRun Documentation Wiki
Contents |
ConvertNrrdToMatrix
Information
- Package: Teem
- Catagory: Converters
- Author(s): Darby Van Uitert
- Status: Supported in latest version
- Version: 3.0
Description
Summary
Convert a combination of Nrrds to a SCIRun Matrix of type Column, Dense or Sparse.
Detailed Description
Convert a combination of Nrrds to a SCIRun Matrix of type Column, Dense or Sparse.
To create a ColumnMatrix, the first port, or the Data port, should be the only one connected. For a column matrix, the Nrrd should be a 1D Nrrd.
To create a Dense Matrix, a 2D Nrrd should be passed into the Data port.
To create a SparseRow Matrix, the module needs Data, Rows, and Columns.
The Data Nrrd should be a 1D Nrrd containing the non-zero entries. Its size will be referred to as NNZ (number of non-zeros).
The Rows Nrrd is the row accumulation buffer containing R+1 entries where R is the number of rows and Rows[N+1]-Rows[N] is the number of non-zero entries in row N.
The Columns Nrrd should be a 1D Nrrd with size NNZ as well. The Columns Nrrd contains the column number for each non-zero data entry. It should be sorted by row/col order and correspond with the spaces in the Rows Nrrd.
The number of columns can be specified in the UI by clicking the Columns (for Sparse Row Matrix) radiobutton and entering the number of columns. If the Auto radiobutton is selected, the module will attempt to determine the number of columns based on the largest entry of the Columns Nrrd.
Frequently Asked Questions
Known Bugs
Recent Changes
Go back to Documentation:SCIRun:Reference:Teem
