Метод | Описание | |
---|---|---|
AbsoluteValue ( ) : Matrix |
Returns a matrix that is this matrix with the absolute value function applied to each element
|
|
AddTo ( Matrix passedMatrix ) : Matrix |
Returns the sum of this matrix and the passed matrix
|
|
AddToAt ( int row, int col, Matrix matrix ) : void |
Adds the passed matrix to the larger matrix starting at the specified row,col entry.
|
|
As1DArray ( EnumerationOrder order = EnumerationOrder.ByRow ) : double[] | ||
CanBeAddedTo ( Matrix passedMatrix ) : bool |
Checks to see if this matrix and the passed matrix can be added together. In order to be able to add two matrices, they must have the same Distances.
|
|
CanBeMultipliedBy ( Matrix passedMatrix ) : bool |
Checks to see if this matrix can be multiplied by the passed matrix IN THAT ORDER. In order to multiply two matrices, the number of columns in the first matrix must equal the number of rows in the second matrix.
|
|
Columns ( ) : List |
||
ConvertRotationMatrixToQuaternion ( ) : Matrix |
Converts the given rotation Matrix into a Quaternion, which also represents orientation but in a more mathematically unique way since only two quaternions represent the same orientation, and they have the following relation to each other: q = -q
|
|
Decompose ( int &permutationArray, int &toggle ) : Matrix |
Performs Doolittle decomposition with partial pivoting and returns a combined LU matrix
|
|
Determinant ( ) : double |
Computes the determinant of a matrix
|
|
Equals ( object obj ) : bool |
Does the same thing as == if the passed-in object is an identical matrix
|
|
EulerAngles ( ) : List |
Returns the euler angles (for rotations in x, y,z order) assuming the upper left 3x3 submatrix is a rotation matrix.
|
|
ExtractLower ( ) : Matrix |
Returns Matrix with only the values in the lower triangle (below main diagonal) intact. Puts 1.0's on diagonal and 0.0's in upper triangle
|
|
ExtractUpper ( ) : Matrix |
Returns Matrix with only the values in the main diagonal and upper triangle (above main diagonal) intact. Has 0.0's in lower triangle
|
|
GenerateCofactorMatrix ( ) : Matrix |
Creates the cofactor matrix corresponding to this matrix
|
|
GetCofactor ( int rowIndex, int columnIndex ) : double |
Returns the cofactor for the specified element of a square matrix
|
|
GetColumn ( int passedColumnIndex ) : double[] |
Returns the specified column of the matrix
|
|
GetElement ( int rowIndex, int columnIndex ) : double |
Returns the element at row "rowIndex" and column "columnIndex"
|
|
GetHashCode ( ) : int | ||
GetPseudoInverse ( double a ) : ].double[ | ||
GetRow ( int passedrowIndex ) : double[] |
Returns the specified row of the matrix
|
|
GetSubMatrix ( int indexOfRowToLeaveOut, int indexOfColumnToLeaveOut ) : Matrix |
Returns a matrix with the specified row and column removed
|
|
IdentityMatrix ( int passedNumberOfRowsAndColumns ) : Matrix |
Returns an Identity Matrix of the specified size. That is, a square matrix with 1's on the diagonal and 0's everywhere else.
|
|
InsertMatrixAt ( Matrix passedMatrix, int destinationRow, int destinationColumn ) : Matrix |
Inserts the passed Matrix into this Matrix starting at the specified index
|
|
Invert ( ) : Matrix |
Returns the inverse of this matrix
|
|
IsAllZeros ( ) : bool |
Returns true if every element in this matrix is zero, false otherwise
|
|
IsInvertible ( ) : bool |
Returns true if this matrix has an inverse, false otherwise
|
|
IsSquare ( ) : bool |
Checks to see if this matrix is square
|
|
LUDecomp ( double a, double &lower, double &upper ) : void | ||
LUSolve ( double l, double u, double b ) : double[] | ||
Matrix ( Matrix passedMatrix ) : System |
Makes a copy of the passed matrix
|
|
Matrix ( double array ) : System |
Creates a matrix with a single column from the array.
|
|
Matrix ( double array, int numRows, int numCols, EnumerationOrder order = EnumerationOrder.ByColumn ) : System |
Construct a matrix from a 1 Dimensional array either building row by row, or column by column.
|
|
Matrix ( int numRowsAndColumns ) : System |
Creates a square matrix with the passed number of rows and columns
|
|
Matrix ( int numRows, int numCols ) : System |
Creates a matrix of the desired number of rows and columns, with all entries initialized to zero.
|
|
MultiplyBy ( Matrix passedMatrix ) : Matrix |
Returns the product matrix of this matrix multiplied by the passed matrix, in that order.
|
|
NullSpace ( ) : List |
||
PointAsProjectiveColumnVector ( Point point ) : Matrix | ||
ProjectiveMatrixToRotationMatrix ( Matrix matrix ) : Matrix | ||
PseudoInvSolve ( double p, double b ) : double[] | ||
RemoveColumn ( int columnIndexToDelete ) : Matrix |
Returns a matrix with the specified column removed
|
|
RemoveColumns ( int passedIndicesOfColumnsToRemove ) : Matrix |
Returns a new matrix with all of the specified columns removed
|
|
RemoveRow ( int rowIndexToDelete ) : Matrix |
Returns a matrix with the specified row removed
|
|
RemoveRows ( int passedIndicesOfRowsToRemove ) : Matrix |
Returns a new matrix with all of the specified rows removed
|
|
RotationMatrixAboutOrigin ( |
Returns a matrix that can be multiplied by another matrix to represent a rotation of that matrix about the passed axis line by the specified angle
|
|
RotationMatrixAboutX ( System.Angle rotationAngle ) : Matrix |
Returns a matrix that can be multiplied by another matrix to represent a rotation of that matrix about the X axis by the specified angle
|
|
RotationMatrixAboutY ( System.Angle rotationAngle ) : Matrix |
Returns a matrix that can be multiplied by another matrix to represent a rotation of that matrix about the Y axis by the specified angle
|
|
RotationMatrixAboutZ ( System.Angle rotationAngle ) : Matrix |
Returns a matrix that can be multiplied by another matrix to represent a rotation of that matrix about the Z axis by the specified angle
|
|
Rows ( ) : List |
||
SetColumn ( int passedColumnIndex, double passedColumn ) : void |
Replaces the specified column of the matrix with the passed column
|
|
SetElement ( int rowIndex, int columnIndex, double element ) : void |
|
|
SetRow ( int passedrowIndex, double passedRow ) : void |
Replaces the specified row of the matrix with the passed row
|
|
ShiftPoint ( Point point, Matrix matrix ) : Point | ||
SolveMatrix ( double augmentedMatrix ) : double[] |
Turns an augmented matrix into Reduced Row Echelon form, by modifying the matrix in place. Then returns the last column.
|
|
SystemSolve ( Matrix columnMatrix ) : Matrix |
Solves for the column matrix x, where Ax = b.
|
|
ToString ( ) : string | ||
Transpose ( ) : Matrix |
Returns the transpose of a given matrix. The transpose is found by swapping the rows and columns (i.e. reflecting all the elements across the main diagonal)
|
|
operator ( ) : Matrix |
Returns the sum of 2 matrices of equal size
|
|
operator ( ) : bool |
Not a perfect equality operator, is only accurate up to difference of 0.00000001 in any two elements
|
|
this ( int i ) : double |
For setting and accessing column vectors
|
|
this ( int i, int j ) : double |
Метод | Описание | |
---|---|---|
Matrix ( ) : System |
Private constructor for the benefit of data frameworks like Entity Framework and Json.NET
|
|
Matrix ( Matrix |
Makes a copy of the passed matrix
|
|
_enumerateByColumn ( ) : double[] | ||
_enumerateByRow ( ) : double[] | ||
_pointFromProjectiveColumnVector ( Matrix projectiveVector ) : Point | ||
_vectorOfDoublesToVectorOfInches ( Vector |
public AddTo ( Matrix passedMatrix ) : Matrix | ||
passedMatrix | Matrix | |
Результат | Matrix |
public AddToAt ( int row, int col, Matrix matrix ) : void | ||
row | int | |
col | int | |
matrix | Matrix | |
Результат | void |
public As1DArray ( EnumerationOrder order = EnumerationOrder.ByRow ) : double[] | ||
order | EnumerationOrder | |
Результат | double[] |
public CanBeAddedTo ( Matrix passedMatrix ) : bool | ||
passedMatrix | Matrix | |
Результат | bool |
public CanBeMultipliedBy ( Matrix passedMatrix ) : bool | ||
passedMatrix | Matrix | |
Результат | bool |
public ConvertRotationMatrixToQuaternion ( ) : Matrix | ||
Результат | Matrix |
public Decompose ( int &permutationArray, int &toggle ) : Matrix | ||
permutationArray | int | Keeps track of how the matrices have been rearranged during the calculation |
toggle | int | is +1 or -1 (even or odd) |
Результат | Matrix |
public GenerateCofactorMatrix ( ) : Matrix | ||
Результат | Matrix |
public GetCofactor ( int rowIndex, int columnIndex ) : double | ||
rowIndex | int | |
columnIndex | int | |
Результат | double |
public GetColumn ( int passedColumnIndex ) : double[] | ||
passedColumnIndex | int | |
Результат | double[] |
public GetElement ( int rowIndex, int columnIndex ) : double | ||
rowIndex | int | The row number of the desired element |
columnIndex | int | The column number of the desired element |
Результат | double |
public static GetPseudoInverse ( double a ) : ].double[ | ||
a | double | |
Результат | ].double[ |
public GetRow ( int passedrowIndex ) : double[] | ||
passedrowIndex | int | |
Результат | double[] |
public GetSubMatrix ( int indexOfRowToLeaveOut, int indexOfColumnToLeaveOut ) : Matrix | ||
indexOfRowToLeaveOut | int | |
indexOfColumnToLeaveOut | int | |
Результат | Matrix |
public static IdentityMatrix ( int passedNumberOfRowsAndColumns ) : Matrix | ||
passedNumberOfRowsAndColumns | int | |
Результат | Matrix |
public InsertMatrixAt ( Matrix passedMatrix, int destinationRow, int destinationColumn ) : Matrix | ||
passedMatrix | Matrix | |
destinationRow | int | |
destinationColumn | int | |
Результат | Matrix |
public static LUDecomp ( double a, double &lower, double &upper ) : void | ||
a | double | |
lower | double | |
upper | double | |
Результат | void |
public static LUSolve ( double l, double u, double b ) : double[] | ||
l | double | |
u | double | |
b | double | |
Результат | double[] |
public Matrix ( Matrix passedMatrix ) : System | ||
passedMatrix | Matrix | |
Результат | System |
public Matrix ( double array, int numRows, int numCols, EnumerationOrder order = EnumerationOrder.ByColumn ) : System | ||
array | double | |
numRows | int | |
numCols | int | |
order | EnumerationOrder | |
Результат | System |
public Matrix ( int numRowsAndColumns ) : System | ||
numRowsAndColumns | int | |
Результат | System |
public Matrix ( int numRows, int numCols ) : System | ||
numRows | int | |
numCols | int | |
Результат | System |
public MultiplyBy ( Matrix passedMatrix ) : Matrix | ||
passedMatrix | Matrix | |
Результат | Matrix |
public static PointAsProjectiveColumnVector ( Point point ) : Matrix | ||
point | Point | |
Результат | Matrix |
public static ProjectiveMatrixToRotationMatrix ( Matrix matrix ) : Matrix | ||
matrix | Matrix | |
Результат | Matrix |
public static PseudoInvSolve ( double p, double b ) : double[] | ||
p | double | |
b | double | |
Результат | double[] |
public RemoveColumn ( int columnIndexToDelete ) : Matrix | ||
columnIndexToDelete | int | |
Результат | Matrix |
public RemoveColumns ( int passedIndicesOfColumnsToRemove ) : Matrix | ||
passedIndicesOfColumnsToRemove | int | |
Результат | Matrix |
public RemoveRow ( int rowIndexToDelete ) : Matrix | ||
rowIndexToDelete | int | |
Результат | Matrix |
public RemoveRows ( int passedIndicesOfRowsToRemove ) : Matrix | ||
passedIndicesOfRowsToRemove | int | |
Результат | Matrix |
public static RotationMatrixAboutOrigin ( |
||
passedRotation | ||
Результат | Matrix |
public static RotationMatrixAboutX ( System.Angle rotationAngle ) : Matrix | ||
rotationAngle | System.Angle | |
Результат | Matrix |
public static RotationMatrixAboutY ( System.Angle rotationAngle ) : Matrix | ||
rotationAngle | System.Angle | |
Результат | Matrix |
public static RotationMatrixAboutZ ( System.Angle rotationAngle ) : Matrix | ||
rotationAngle | System.Angle | |
Результат | Matrix |
public SetColumn ( int passedColumnIndex, double passedColumn ) : void | ||
passedColumnIndex | int | |
passedColumn | double | |
Результат | void |
public SetElement ( int rowIndex, int columnIndex, double element ) : void | ||
rowIndex | int | The number of the row where the element will be added |
columnIndex | int | The number of the column where the element will be added |
element | double | |
Результат | void |
public SetRow ( int passedrowIndex, double passedRow ) : void | ||
passedrowIndex | int | |
passedRow | double | |
Результат | void |
public static ShiftPoint ( Point point, Matrix matrix ) : Point | ||
point | Point | |
matrix | Matrix | |
Результат | Point |
public static SolveMatrix ( double augmentedMatrix ) : double[] | ||
augmentedMatrix | double | |
Результат | double[] |
public SystemSolve ( Matrix columnMatrix ) : Matrix | ||
columnMatrix | Matrix | |
Результат | Matrix |