Matrix.Determinant()
Method used to compute a matrix determinant.
SignatureMatrix.Determinant() : Real
Matrix.Dump()
Method used to return the matrix representation in the form of a string.
SignatureMatrix.Dump() : String
Matrix.Get()
Method used to return the item x or y of the matrix.
Matrix.GetColumn()
Method used to return a column of a given matrix according to an index.
Arguments
Name | Input/Output | Required? | Type | Comment |
Index | In | Yes | Integer | Index of the returned column.
|
Examplelet M (Matrix)
let V (Vector)
M = [0, 1, 5; 2, 1, 4; 3, 2, 0]
V = M.GetLine(2) // now V = [2, 1, 4]
V = M.GetColumn(3) // now V = [5, 4, 0]
Matrix.GetLine()
Method used to return a line of a given matrix according to an index.
Arguments
Name | Input/Output | Required? | Type | Comment |
Index | In | Yes | Integer | Index of the returned line.
|
Examplelet M (Matrix)
let V (Vector)
M = [0, 1, 5; 2, 1, 4; 3, 2, 0]
V = M.GetLine(2) // now V = [2, 1, 4]
V = M.GetColumn(3) // now V = [5, 4, 0]
Matrix.Invert()
Method used to invert the matrix.
SignatureMatrix.Invert() : Matrix
Matrix.Set()
Method used to modify the value of the x or y item of the matrix.
Matrix.SetColumn()
Method used to set a column of a given matrix according to an index and a vector.
Arguments
Name | Input/Output | Required? | Type | Comment |
Index | In | Yes | Integer | Position of the column in the matrix.
|
ValueVector | In | Yes | Vector | Value used for the column of the matrix. |
Examplelet M (Matrix)
let V (Vector)
M = [0, 1, 5; 2, 1, 4; 3, 2, 0]
V = [2, 2, 2]
M.SetLine(2, V) // now M = [0, 1, 5; 2, 2, 2; 3, 2, 0]
V = [3; 3; 3]
M.SetColumn(3, V) // now M = [0, 1, 3; 2, 2, 3; 3, 2, 3]
Matrix.SetLine()
Method used to set a line of a given matrix according to an index and a vector.
Arguments
Name | Input/Output | Required? | Type | Comment |
Index | In | Yes | Integer | Position of the line in the matrix. |
ValueVector | In | Yes | Vector | Value used for the line of the matrix.
|
Examplelet M (Matrix)
let V (Vector)
M = [0, 1, 5; 2, 1, 4; 3, 2, 0]
V = [2, 2, 2]
M.SetLine(2, V) // now M = [0, 1, 5; 2, 2, 2; 3, 2, 0]
V = [3; 3; 3]
M.SetColumn(3, V) // now M = [0, 1, 3; 2, 2, 3; 3, 2, 3]
Matrix.ToString()
-
SignatureMatrix.ToString() : String
Matrix.Transpose()
Method used to transpose a matrix.
SignatureMatrix.Transpose() : Matrix
Vector.Direction()
Vector.Norm()
Method used to compute the vector norm.
SignatureVector.Norm() : Real
|