MatrixManipulationExtension extension
- on
Methods
-
appendColumns(
dynamic newColumns) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Appends new columns to the matrix with the values provided innewColumns. -
appendRows(
dynamic newRows) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Appends new rows to the matrix with the values provided innewRows. -
apply(
dynamic func(dynamic)) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Applies the given functionfuncto each element in the matrix and returns a new matrix with the results. -
applyToRows(
List func(List)) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Applies the given functionfuncto each row in the matrix and returns a new matrix with the results. -
augment(
dynamic augmentee) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Augments the matrix with the given column vector or matrix. This method is an alias ofappendColumns. -
broadcast(
Matrix b) → List< Matrix> -
Available on Matrix, provided by the MatrixManipulationExtension extension
Broadcasts the current matrix with matrixb. -
concatenate(
List< Matrix> matrices, {int axis = 0, bool resize = false}) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Concatenates the given list of matrices with the current matrix along the specified axis. -
copy(
) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Returns a copy of the matrix. -
copyFrom(
Matrix other, {bool resize = false, bool retainSize = false}) → void -
Available on Matrix, provided by the MatrixManipulationExtension extension
Copies the elements from another matrix into this matrix. -
elementAt(
int row, int col) → dynamic -
Available on Matrix, provided by the MatrixManipulationExtension extension
Retrieves the element of the matrix at the specified row and column indices. -
flatten(
) → List -
Available on Matrix, provided by the MatrixManipulationExtension extension
Flattens the matrix into a single row. -
flip(
{int axis = 0}) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Flips the matrix along the specified axis. -
insertColumn(
int columnIndex, List newValues) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Inserts a new column at the specified position in the matrix with the values provided in new Values. -
insertRow(
int rowIndex, List newValues) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Inserts a new row at the specified position in the matrix with the values provided in new Values. -
isCompatibleForBroadcastWith(
Matrix b) → bool -
Available on Matrix, provided by the MatrixManipulationExtension extension
Determines whether the current matrix and matrixbare compatible for broadcasting. -
removeColumn(
int columnIndex) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Removes the column at the specified index from the matrix. -
removeColumns(
List< int> columnIndices) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Removes the columns at the specified indices from the matrix. -
removeRow(
int rowIndex) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Removes the row at the specified index from the matrix. -
removeRows(
List< int> rowIndices) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Removes the rows at the specified indices from the matrix. -
replace(
List< int> rowIndices, List<int> colIndices, dynamic value) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Replaces the elements in the specified rows and columns with the given value. -
replicateMatrix(
int numRows, int numCols) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Replicates the current matrix to create a new matrix with the desired dimensions. -
reshape(
int newRowCount, int newColumnCount) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Reshapes the matrix to have the specified number of rows and columns. -
reshapeList(
List< int> newShape) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Reshapes the matrix to have the specified shape provided in the form of a list. -
roll(
dynamic shift, {dynamic axis}) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Rolls the elements in the matrix along the specified axis or axes. -
setColumn(
int columnIndex, List newValues) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Sets the specified column in the matrix with the new values provided in new Values. -
setRow(
int rowIndex, List newValues) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Sets the specified row in the matrix with the new values provided in new Values. -
setSubMatrix(
int startRow, int startCol, Matrix subMatrix) → void -
Available on Matrix, provided by the MatrixManipulationExtension extension
Sets the values of the subMatrix at the specified position. -
slice(
int startRow, int endRow, [int? startCol, int? endCol]) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Returns a subMatrix that is a portion of the original matrix. -
sort(
{List< int> ? columnIndices, bool ascending = true}) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Sorts the matrix in ascending or descending order. -
split(
int axis, int splits) → List< Matrix> -
Available on Matrix, provided by the MatrixManipulationExtension extension
Splits the matrix into smaller matrices along the specified axis. -
subMatrix(
{List< int> ? rowIndices, List<int> ? columnIndices, String rowRange = '', String colRange = '', int? rowStart, int? rowEnd, int? colStart, int? colEnd}) → Matrix -
Available on Matrix, provided by the MatrixManipulationExtension extension
Extracts a subMatrix from the given matrix using the specified row and column indices or ranges. -
swapColumns(
int col1, int col2) → void -
Available on Matrix, provided by the MatrixManipulationExtension extension
Swaps the position of two columns in the current matrix. -
swapRows(
int row1, int row2) → void -
Available on Matrix, provided by the MatrixManipulationExtension extension
Swaps the position of two rows in the current matrix.