STAY IN TOUCH

and receive our newsletter to get the latest news and tips.


Matrix

A 2D matrix of numbers
function (Matrix) → add(b : Matrix) returns Matrix
Returns a matrix resulting from adding this matrix to b. The size of both matrices must match.
function (Matrix) → at(index : Number) returns Number
Gets the value at a given index. Elements are ordered line by line starting top left.
function (Matrix) → clear(value : Number)
Sets all the element of the matrix to the value.
function (Matrix) → clone returns Matrix
Creates a deep copy of the matrix.
function (Matrix) → column count returns Number
Gets the number of columns
function (Matrix) → copy from(row : Number, column : Number, other : Matrix)
Copies the content from other starting at position row and column
function (Matrix) → count returns Number
Gets the total number of elements
function (Matrix) → is invalid returns Boolean
Returns true if the current instance is useless
function (Matrix) → item(row : Number, column : Number) returns Number
Gets the value at a given location. Returns invalid if outside of the array dimensions
function (Matrix) → max returns Number
Computes the maximum of the values
function (Matrix) → min returns Number
Computes the minimum of the values
function (Matrix) → multiply(b : Matrix) returns Matrix
Returns a matrix resulting from multiply each element in the matrices. The size of both matrices must match.
function (Matrix) → negate returns Matrix
Returns the matrix negated.
function (Matrix) → post to wall
Displays the value of the array on the wall
function (Matrix) → random returns Number
Gets a random element. Returns invalid if the matrix is empty.
function (Matrix) → row count returns Number
Gets the number of rows
function (Matrix) → scale(factor : Number) returns Matrix
Returns a copy of the matrix scaled by factor.
function (Matrix) → set at(index : Number, value : Number)
Sets the value at a given index. Elements are ordered line by line starting top left.
function (Matrix) → set item(row : Number, column : Number, value : Number)
Sets the value at a particular position. The matrix will be expanded if the position falls outside the boundaries.
function (Matrix) → subtract(b : Matrix) returns Matrix
Returns a matrix resulting from subtracting b from this matrix. The size of both matrices must match.
function (Matrix) → to string returns String
Gets the string representation of the matrix
function (Matrix) → transpose returns Matrix
Returns the transposed matrix.

edit this topic jvboqxbcsh