ReadonlycolumnsReadonlyrowsNumber of rows of the matrix.
ReadonlysizeTotal number of elements in the matrix.
Adds a new column to the matrix (in place).
Column index. Default: this.columns.
Column to add.
Adds a new column to the matrix (in place).
Column to add.
Adds the values of a vector to each column.
Array or vector.
Adds a new row to the matrix (in place).
Row index. Default: this.rows.
Row to add.
Adds a new row to the matrix (in place).
Row to add.
Adds the values of a vector to each row.
Array or vector.
Center the matrix in-place. By default, the mean value of the matrix is subtracted from every value.
Optionaloptions: ICenterOptionsCenter the matrix in-place. By default, the mean values in the give dimension are subtracted from the values.
center by 'row' or 'column'.
Optionaloptions: ICenterByOptionsAlias for AbstractMatrix.diag.
Divides the values of each column by those of a vector.
Array or vector.
Divides the values of each row by those of a vector.
Array or vector.
Computes the dot (scalar) product between the matrix and another.
Multiplies the values of a vector with each column.
Array or vector.
Multiplies the values of a vector with each row.
Array or vector.
Alias for AbstractMatrix.neg.
Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of rows of the original matrix, and columns times the number of columns of the original matrix.
Optionaloptions: IRepeatOptionsScale the matrix in-place. By default, values are divided by their standard deviation.
Optionaloptions: IScaleOptionsScale the matrix in-place. By default, values are divided by the standard deviation in the given dimension.
scale by 'row' or 'column'.
Optionaloptions: IScaleByOptionsReturns a new column-by-column scaled matrix.
Optionaloptions: IScaleOptionsReturns a new row-by-row scaled matrix.
Optionaloptions: IScaleOptionsReturn a new matrix based on a selection of rows and columns. Order of the indices matters and the same index can be used more than once.
The row indices to select.
The column indices to select.
Sets a column at the given index.
Column index.
Array or vector to set.
Sets a row at the given index.
Row index.
Array or vector to set.
Set a part of the matrix to the given sub-matrix.
The source matrix from which to extract values.
The index of the first row to set.
The index of the first column to set.
Returns the standard deviation of all elements of the matrix.
Optionaloptions: IVarianceOptionsReturns the standard deviation by the given dimension.
standard deviation by 'row' or 'column'.
Optionaloptions: IVarianceByOptionsSubtracts the values of a vector from each column.
Array or vector.
Returns a subset of the matrix based on an array of column indices.
Array containing the column indices.
OptionalstartRow: numberFirst row index. Default: 0.
OptionalendRow: numberLast row index. Default: this.rows - 1.
Returns a subset of the matrix based on an array of row indices.
Array containing the row indices.
OptionalstartColumn: numberFirst column index. Default: 0.
OptionalendColumn: numberLast column index. Default: this.columns - 1.
Subtracts the values of a vector from each row.
Array or vector.
Alias for AbstractMatrix.kroneckerProduct.
Optionaloptions: IToStringOptionsReturns the variance of all elements of the matrix.
Optionaloptions: IVarianceOptionsReturns the variance by the given dimension.
variance by 'row' or 'column'.
Optionaloptions: IVarianceByOptionsStaticabsStaticacosStaticacoshStaticaddStaticandStaticasinStaticasinhStaticatanStaticatanhStaticcbrtStaticceilStaticcheckStaticclz32StaticcolumnStaticcopyStaticcosStaticcoshStaticdiagCreates a diagonal matrix based on the given array.
Array containing the data for the diagonal.
Optionalrows: numberNumber of rows. Default: data.length.
Optionalcolumns: numberNumber of columns. Default: rows.
StaticdiagonalAlias for AbstractMatrix.diag.
Optionalrows: numberOptionalcolumns: numberStaticdivStaticdivideStaticexpStaticexpm1StaticeyeCreates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.
Number of rows.
Optionalcolumns: numberNumber of columns. Default: rows.
Optionalvalue: numberValue to fill the diagonal with. Default: 1.
StaticfloorStaticfrom1DArrayConstructs a matrix with the chosen dimensions from a 1D array.
Number of rows.
Number of columns.
A 1D array containing data for the matrix.
The new matrix.
StaticfroundStaticidentityAlias for AbstractMatrix.eye.
Optionalcolumns: numberOptionalvalue: numberStaticisReturns whether value is a Matrix.
The value to check.
StaticleftStaticlogStaticlog10Staticlog1pStaticlog2StaticmaxStaticminStaticmodStaticmodulusStaticmulStaticmultiplyStaticnotStaticonesCreates a matrix with the given dimensions. Values will be set to one.
Number of rows.
Number of columns.
The new matrix.
StaticorStaticpowStaticrandCreates a matrix with the given dimensions. Values will be randomly set.
Number of rows.
Number of columns.
Optionaloptions: IRandomOptionsOptions object.
The new matrix.
StaticrandCreates a matrix with the given dimensions. Values will be random integers.
Number of rows.
Number of columns.
Optionaloptions: IRandomIntOptionsStaticrandomOptionaloptions: IRandomOptionsStaticrightStaticroundStaticrowStaticsignStaticsignStaticsinStaticsinhStaticsqrtStaticsubStaticsubtractStatictanStatictanhStatictruncStaticxorStaticzeroStaticzerosCreates a matrix with the given dimensions. Values will be set to zero. This is equivalent to calling the Matrix constructor.
is private. Don't override it.
Number of rows.
Number of columns.
The new matrix.
Number of columns of the matrix.