MatrixOperationExtension extension

on

Methods

abs() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Calculates the element-wise absolute value of the matrix.
addRow(int sourceIndex, int targetIndex, dynamic scaleFactor) → void

Available on Matrix, provided by the MatrixOperationExtension extension

Adds a multiple of one row to another row.
adjoint() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Computes the adjoint (also known as adjugate or adjunct) of a square matrix. The adjoint is obtained by transposing the cofactor matrix.
bidiagonalize() Bidiagonalization

Available on Matrix, provided by the MatrixOperationExtension extension

Computes the bidiagonalization of the matrix using Householder reflections.
cofactors() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Computes the matrix of cofactors for a square matrix. Each element in the cofactor matrix is the determinant of the subMatrix formed by removing the corresponding row and column from the original matrix, multiplied by the alternating sign pattern.
columnSpace() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Returns the column space of the matrix.
conditionNumber() → dynamic

Available on Matrix, provided by the MatrixOperationExtension extension

Calculates the condition number of the matrix using the Frobenius norm.
conjugate() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Computes the matrix of cofactors for a square matrix. Each element in the cofactor matrix is the determinant of the subMatrix formed by removing the corresponding row and column from the original matrix, multiplied by the alternating sign pattern.
conjugateTranspose() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Returns the conjugate transpose (also known as the Hermitian transpose) of the matrix. The conjugate transpose is obtained by first computing the conjugate of the matrix and then transposing it.
containsIn(List<Matrix> matrices) bool

Available on Matrix, provided by the MatrixOperationExtension extension

Checks if the current matrix is contained in or is a subMatrix of any matrix in matrices.
cumsum({bool continuous = false, int? axis}) → dynamic

Available on Matrix, provided by the MatrixOperationExtension extension

Performs cumulative sum operations similar to numpy's cumsum but with more flexibility.
determinant({DeterminantMethod method = DeterminantMethod.LU}) → dynamic

Available on Matrix, provided by the MatrixOperationExtension extension

Computes the determinant of the matrix.
distance(Matrix other, {DistanceType distance = DistanceType.frobenius}) → dynamic

Available on Matrix, provided by the MatrixOperationExtension extension

Computes the distance between this matrix and another provided matrix based on the specified distance type.
dot(Matrix other) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Calculates the dot product of two matrices.
eigen({int maxIterations = 1000, num tolerance = 1e-10}) Eigen

Available on Matrix, provided by the MatrixOperationExtension extension

eigen1({int maxIterations = 1000, num tolerance = 1e-10}) Eigen

Available on Matrix, provided by the MatrixOperationExtension extension

Computes the eigenvalues and eigenvectors of the matrix using the QR algorithm.
eigenvalues({int maxIterations = 1000, num tolerance = 1e-10}) List

Available on Matrix, provided by the MatrixOperationExtension extension

Computes the eigenvalues of the matrix using the QR algorithm.
eigenvectors({int maxIterations = 1000, double tolerance = 1e-10}) List<Matrix>

Available on Matrix, provided by the MatrixOperationExtension extension

Computes the eigenvectors of the matrix using the QR algorithm.
elementDivide(Matrix other) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Divides the corresponding elements of this matrix by the elements of the given matrix.
elementMultiply(Matrix other) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Returns a new matrix with the exponential of each element of the matrix.
elementWise(Matrix other, dynamic f(dynamic, dynamic)) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

applies the given binary function element-wise on this matrix and the given matrix.
hessenberg({num tol = 1e-15}) HessenbergResult

Available on Matrix, provided by the MatrixOperationExtension extension

inverse({double conditionThreshold = 1e-3}) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Calculates the inverse of a square matrix, falling back to SVD-based inversion or generalized pseudo-inversion if necessary.
norm([Norm normType = Norm.frobenius]) → dynamic

Available on Matrix, provided by the MatrixOperationExtension extension

Calculates the norm of the matrix based on the specified norm type.
normalize([Norm? normType]) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Normalizes the matrix by dividing each element by the maximum element value.
notIn(List<Matrix> matrices) bool

Available on Matrix, provided by the MatrixOperationExtension extension

Checks if the current matrix is not contained in and is not a subMatrix of any matrix in matrices.
nullity() int

Available on Matrix, provided by the MatrixOperationExtension extension

Returns the nullity of the matrix.
nullSpace() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Returns the null space (also known as kernel) of the matrix.
pow(num exponent) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Returns a new matrix with each element raised to the power of exponent.
product() → dynamic

Available on Matrix, provided by the MatrixOperationExtension extension

Returns the product of all elements in the matrix.
pseudoInverse() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Computes the pseudo-inverse of a matrix using Singular Value Decomposition (SVD).
reciprocal() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Calculates the element-wise reciprocal of the matrix.
rescale({Rescale rescaleBy = Rescale.column}) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Rescales each column of the matrix to the range 0-1.
rotate(int p, int q, double c, double s) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

round([int decimals = 0]) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Rounds each element in the matrix to the specified number of decimal places.
rowSpace() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Returns the row space of the matrix.
scale(dynamic scaleFactor) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Scales a matrix by a given factor.
scaleRow(int rowIndex, dynamic scaleFactor) → void

Available on Matrix, provided by the MatrixOperationExtension extension

Scales the elements of the specified row by a given factor.
sum({bool absolute = false, int? axis}) → dynamic

Available on Matrix, provided by the MatrixOperationExtension extension

Calculates the sum of the elements in the matrix along the specified axis.
trace() → dynamic

Available on Matrix, provided by the MatrixOperationExtension extension

Calculates the trace of a square matrix.
transpose() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Transposes the matrix by swapping rows and columns.
tridiagonalize() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Creates a tridiagonal matrix using the main diagonal, sub-diagonal, and super-diagonal elements of the current matrix.

Operators

operator *(dynamic other) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Multiplies this matrix with another matrix or a scalar value.
operator +(dynamic other) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Adds the given matrix to this matrix element-wise.
operator -(dynamic other) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Subtracts the given matrix from this matrix element-wise.
operator /(dynamic other) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Divides this matrix by a scalar value.
operator ^(int exponent) Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Raises this matrix to the power of the given exponent using exponentiation by squaring.
operator unary-() Matrix

Available on Matrix, provided by the MatrixOperationExtension extension

Negates this matrix element-wise.