Method | Description | |
---|---|---|
Add ( Matrix a, Matrix b ) : Matrix |
Add two matrixes together, producing a third.
|
|
Copy ( Matrix source, Matrix target ) : void |
Copy the source matrix to the target matrix. Both matrixes must have the same dimensions.
|
|
DeleteCol ( Matrix matrix, int deleted ) : Matrix |
Delete a single column from a matrix. A new matrix, with the delete is returned.
|
|
DeleteRow ( Matrix matrix, int deleted ) : Matrix |
Delete a row from a matrix. A new matrix, with the row deleted, is returned.
|
|
Divide ( Matrix a, double b ) : Matrix |
Divide every cell in the matrix by the specified number.
|
|
DotProduct ( Matrix a, Matrix b ) : double |
Compute the dot product for two matrixes. Note: both matrixes must be vectors.
|
|
Identity ( int size ) : Matrix |
Create an identiry matrix, of the specified size. An identity matrix is always square.
|
|
Multiply ( Matrix a, Matrix b ) : Matrix |
Multiply two matrixes.
|
|
Multiply ( Matrix a, double b ) : Matrix |
Multiply every cell in the matrix by the specified value.
|
|
Subtract ( Matrix a, Matrix b ) : Matrix |
Subtract one matrix from another. The two matrixes must have the same number of rows and columns.
|
|
Transpose ( Matrix input ) : Matrix |
Transpose the specified matrix.
|
|
VectorLength ( Matrix input ) : double |
Calculate the vector length of the matrix.
|
Method | Description | |
---|---|---|
MatrixMath ( ) : System |
Private constructor. All methods are static.
|
public static Add ( Matrix a, Matrix b ) : Matrix | ||
a | Matrix | The first matrix to add. |
b | Matrix | The second matrix to add. |
return | Matrix |
public static Copy ( Matrix source, Matrix target ) : void | ||
source | Matrix | The source matrix. |
target | Matrix | The target matrix. |
return | void |
public static DeleteCol ( Matrix matrix, int deleted ) : Matrix | ||
matrix | Matrix | The matrix to delete from. |
deleted | int | The column to delete. |
return | Matrix |
public static DeleteRow ( Matrix matrix, int deleted ) : Matrix | ||
matrix | Matrix | The matrix to delete from. |
deleted | int | The row to delete. |
return | Matrix |
public static Divide ( Matrix a, double b ) : Matrix | ||
a | Matrix | The matrix to divide. |
b | double | The number to divide by. |
return | Matrix |
public static DotProduct ( Matrix a, Matrix b ) : double | ||
a | Matrix | The first matrix, must be a vector. |
b | Matrix | The second matrix, must be a vector. |
return | double |
public static Multiply ( Matrix a, Matrix b ) : Matrix | ||
a | Matrix | The first matrix. |
b | Matrix | The second matrix. |
return | Matrix |
public static Multiply ( Matrix a, double b ) : Matrix | ||
a | Matrix | Multiply every cell in a matrix by the specified value. |
b | double | The value to multiply by. |
return | Matrix |
public static Subtract ( Matrix a, Matrix b ) : Matrix | ||
a | Matrix | The first matrix. |
b | Matrix | The second matrix. |
return | Matrix |
public static Transpose ( Matrix input ) : Matrix | ||
input | Matrix | The matrix to transpose. |
return | Matrix |
public static VectorLength ( Matrix input ) : double | ||
input | Matrix | The vector to calculate for. |
return | double |