SCI Home Software Documentation Installation User's Guide Developer's Guide

CIBC:Documentation:SCIRun:Reference:Teem:ConvertMatrixToNrrd

From SCIRun Documentation Wiki

Jump to: navigation, search

Contents

ConvertMatrixToNrrd

Information

Package: Teem
Catagory: Converters
Author(s): Darby Van Uitert
Status: Supported in latest version
Version: 3.0

Description

Summary

Convert a SCIRun Matrix to a single Nrrd in the case of a Dense or Column Matrix or convert a Sparse Row Matrix to three Nrrds (Data, Rows, and Columns).

Detailed Description

Convert a SCIRun Matrix to a single Nrrd in the case of a Dense or Column Matrix or convert a Sparse Row Matrix to three Nrrds (Data, Rows, and Columns).

If the input Matrix is a Column Matrix, the module will produe a 1D Nrrd of doubles containing the data.

If the input Matrix is a Dense matrix, the module will produce a 2D Nrrd of Doubles.

If the input Matrix is a Sparse Row Matrix, the module will produce three Nrrds. The first output port contains the Data as a 1D Nrrd representing the non-zero entries in the Sparse Row Matrix. The second output will contain the Rows Nrrd which 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 last output will be the Columns Nrrd containing the column number for each non-zero data entry.



Frequently Asked Questions


Known Bugs


Recent Changes


Go back to Documentation:SCIRun:Reference:Teem

Personal tools