| status | stable |
| author | Tobias Böhler |
| package | MeVisLab/Standard |
| dll | MLCoordUtils1 |
| definition | mlMatrixArithmetic.def |
| see also | DecomposeMatrix, ComposeMatrix |
| keywords | matrix, arithmetic, mult, div, sum, add, subtract, compose, inverse, determinant, trace |
The module MatrixArithmetic offers standard arithmetic operations on one or two given homogenous 4x4 matrices, scalars and vectors.
The module requires two matrices Matrix A and Matrix B.
Unary operations (inverse, pseudoinverse, transpose, negation) take only one Matrix A, whereas binary operations (add, subtract, multiply) require both matrices.
Scalar and vector operations require corresponding inputs.
| Determinant: Double | Resulting Matrix C: Matrix |
| Inner Products.: Vector3 | Scalar: Double |
| Is Orthogonal: Bool | Trace: Double |
| Is Valid: Bool | Vector D: Vector4 |
| Matrix A: Matrix | Vector R: Vector4 |
| Matrix B: Matrix | |
| Matrix Sum: Double | |
| Operation: Enum |
Sets the first input matrix. Is required for unary operations.
Sets the second input matrix. Is required for binary operations.
Defines the operation.
Values:
| Title | Name | Description |
|---|---|---|
| Identity | Identity | C = A |
| Inverse | Inverse | C = A^-1 |
| Moore Penrose Pseudoinverse | MoorePenrosePseudoinverse | C = (A^T * A)^-1 * A^T |
| Transpose | Transpose | C = A^T |
| Negation | Negation | C = -A |
| Add | Add | C = A + B |
| Multiply | Multiply | C = A * B |
| Subtract | Subtract | C = A - B |
| Multiply With Scalar | MultiplyWithScalar | C = A * s |
| Add Scalar | AddScalar | C = A + s |
| Multiply With Vector | MultiplyWithVector | V = A * D |
| Equation System Solver | Equation System Solver | A * R = D |
Shows the resulting matrix.
Shows the determinant of the resulting matrix.
Shows the output vector in case of using the operation Equation System Solver.