CIBC:Documentation:SCIRun:Reference:SCIRun:EvaluateLinAlgGeneral
Contents |
EvaluateLinAlgGeneral
Information
- Package: SCIRun
- Catagory: Math
- Author(s): Michael Callahan
- Status: Supported in latest version
- Version: 3.0
Description
Summary
Do some linear algebra on input matrices.
Detailed Description
The EvaluateLinAlgGeneral module allows the user to input C++ code linear algebra expressions and then have them dynamically compiled and executed.
The input variables are all of MatrixHandle type and are represented by the variables i1, i2, i3, i4, and i5 correlating with which input ports they are connected to. The output variables are MatrixHandle references and are labeled o1, o2, o3, o4, and o5.
The supported matrix operations can be found in src/Core/Datatypes/MatrixOperations.h, and are basically addition and multiplication.
For example, the default "o1 = i1 * i2;" function would multiply the first two input matrices and put the result on the first output port. "o2 = i1 * 3;" would multiply all of the values in the first input port and put the resulting matrix on the second output port. If you used both lines it would do both.
SCIRun 3.x and earlier
The various SCIRun Matrix headers are also included in addition to MatrixOperations.h. So for example "o1 = scinew DenseMatrix(10, 20);" could be used to return a blank 10x20 dense matrix on the first output port. It is also possible to write loops over the various matrix elements, etc.
Frequently Asked Questions
Known Bugs
Recent Changes
Go back to Documentation:SCIRun:Reference:SCIRun