goog.math.Matrix |
m
: goog.math.Matrix | Array.<Array.<number>> | goog.math.Size | number
A matrix to copy, a 2D-array to take as a template, a size object for
dimensions, or the number of rows.
|
opt_n
: number=
Number of columns of the matrix (only applicable if
the first argument is also numeric).
|
Returns a new matrix that is the sum of this and the provided matrix.
Arguments:
Returns: !goog.math.Matrix
Resultant sum.
|
code » | |||||
Appends the given matrix to the right side of this matrix.
Arguments:
Returns: !goog.math.Matrix
A new matrix with additional columns on the
right.
|
code » | |||||
Appends the given matrix to the bottom of this matrix.
Arguments:
Returns: !goog.math.Matrix
A new matrix with added columns on the bottom.
|
code » | |||||
Returns whether the given matrix equals this matrix.
Arguments:
Returns: boolean
Whether the given matrix equals this matrix.
|
code » | |||||
Returns the signed minor.
|
code » | |||||
Returns the determinant of this matrix. The determinant of a matrix A is
often denoted as |A| and can only be applied to a square matrix.
Returns: number
The determinant of this matrix.
|
code » | |||||
Returns the determinant of this matrix. The determinant of a matrix A is
often denoted as |A| and can only be applied to a square matrix. Same as
public method but without validation. Implemented using Laplace's formula.
Returns: number
The determinant of this matrix.
|
code » | |||||
Returns the inverse of this matrix if it exists or null if the matrix is
not invertible.
Returns: goog.math.Matrix
A new matrix which is the inverse of this matrix.
|
code » | |||||
Returns the determinant of the submatrix resulting from the deletion of row i
and column j.
|
code » | |||||
Transforms this matrix into reduced row echelon form.
Returns: !goog.math.Matrix
A new matrix reduced row echelon form.
|
code » | |||||
No description.
Returns: !goog.math.Size
The dimensions of the matrix.
|
code » | |||||
Returns a submatrix contained within this matrix.
Arguments:
Returns: !goog.math.Matrix
The submatrix contained within the given bounds.
|
code » | |||||
Returns a new matrix equal to this one, but with row i and column j deleted.
Arguments:
Returns: !goog.math.Matrix
The value at the specified coordinate.
|
code » | |||||
Return the transpose of this matrix. For an m-by-n matrix, the transpose
is the n-by-m matrix which results from turning rows into columns and columns
into rows
Returns: !goog.math.Matrix
A new matrix A^T.
|
code » | |||||
Retrieves the value of a particular coordinate in the matrix or null if the
requested coordinates are out of range.
|
code » | |||||
Returns whether the given coordinates are contained within the bounds of the
matrix.
|
code » | |||||
No description.
Returns: boolean
Whether the horizontal and vertical dimensions of this
matrix are the same.
|
code » | |||||
Matrix multiplication is defined between two matrices only if the number of
columns of the first matrix is the same as the number of rows of the second
matrix. If A is an m-by-n matrix and B is an n-by-p matrix, then their
product AB is an m-by-p matrix
Arguments:
Returns: !goog.math.Matrix
Resultant product.
|
code » | |||||
Performs matrix or scalar multiplication on a matrix and returns the
resultant matrix.
Matrix multiplication is defined between two matrices only if the number of
columns of the first matrix is the same as the number of rows of the second
matrix. If A is an m-by-n matrix and B is an n-by-p matrix, then their
product AB is an m-by-p matrix
Scalar multiplication returns a matrix of the same size as the original,
each value multiplied by the given value.
Arguments:
Returns: !goog.math.Matrix
Resultant product.
|
code » | |||||
Scalar multiplication returns a matrix of the same size as the original,
each value multiplied by the given value.
Arguments:
Returns: !goog.math.Matrix
Resultant product.
|
code » | |||||
![]()
Sets the value at a particular coordinate (if the coordinate is within the
bounds of the matrix).
|
code » | |||||
Returns a new matrix that is the difference of this and the provided matrix.
Arguments:
Returns: !goog.math.Matrix
Resultant difference.
|
code » | |||||
![]()
Swaps two rows.
|
code » | |||||
No description.
|
code » | |||||
Returns a string representation of the matrix. e.g.
[ 12 5 9 1 ] [ 4 16 0 17 ] [ 12 5 1 23 ]
Returns: string
A string representation of this matrix.
|
code » |
Creates a square identity matrix. i.e. for n = 3:
[ 1 0 0 ] [ 0 1 0 ] [ 0 0 1 ]
Arguments:
|
code » | ||||
Creates a new zero padded matix.
|
code » | ||||
![]()
Calls a function for each cell in a matrix.
Arguments:
|
code » | ||||
Tests whether an array is a valid matrix. A valid array is an array of
arrays where all arrays are of the same length and all elements are numbers.
|
code » | ||||
Calls a function for every cell in a matrix and inserts the result into a
new matrix of equal dimensions.
Arguments:
|
code » |