Class Matrix
Assembly: ABB.Robotics.Math.dll
Syntax
Constructors
Matrix(Matrix)
Creates a new Matrix that is a copy of the given Matrix
Declaration
public Matrix(Matrix mat)
Parameters
Type |
Name |
Description |
Matrix |
mat |
|
Matrix(Int32, Int32)
Creates a new Matrix with the given number of rows and columns
Declaration
public Matrix(int numRows, int numCols)
Parameters
Matrix(Int32, Int32, Double[])
Declaration
public Matrix(int numRows, int numCols, double[] elements)
Parameters
Properties
Item[Int32, Int32]
Declaration
public double this[int row, int col] { get; set; }
Parameters
Property Value
NumCols
Returns the number of columns in the matrix
Declaration
public int NumCols { get; }
Property Value
NumRows
Returns the number of rows in the matrix
Declaration
public int NumRows { get; }
Property Value
Methods
AlmostEquals(Matrix)
Checks that a matrices only differs by an epsilon-sized amount.
Declaration
public bool AlmostEquals(Matrix rhs)
Parameters
Type |
Name |
Description |
Matrix |
rhs |
The matrix to compare to.
|
Returns
Type |
Description |
Boolean |
true if almost equals, false otherwise.
|
Multiply(Matrix)
Matrix-Matrix multiplication method.
Declaration
public Matrix Multiply(Matrix rhs)
Parameters
Type |
Name |
Description |
Matrix |
rhs |
|
Returns
ToString()
Returns a string that represents this Matrix
Declaration
public override string ToString()
Returns
Overrides
Returns a string that represents this Matrix
Declaration
public string ToString(IFormatProvider formatProvider)
Parameters
Returns
Transpose()
Returns the transpose of this Matrix.
Declaration
public Matrix Transpose()
Returns
Operators
Addition(Matrix, Matrix)
Element-wise addition operator.
Declaration
public static Matrix operator +(Matrix lhs, Matrix rhs)
Parameters
Returns
Multiply(Matrix, Matrix)
Matrix-Matrix multiplication operator.
Declaration
public static Matrix operator *(Matrix lhs, Matrix rhs)
Parameters
Returns
Subtraction(Matrix, Matrix)
Element-wise subtraction operator.
Declaration
public static Matrix operator -(Matrix lhs, Matrix rhs)
Parameters
Returns