Class AbstractMatrixAbstract Constructors PropertiesReadonlycolumns columns : number
Methods[iterator] "[iterator]" () : Generator < [ row: number , column: number , value: number ] , void , void , > Returns Generator < [ row: number , column: number , value: number ] , void , void > acosh acosh () : this Returns this add add ( value : ScalarOrMatrix ) : this Returns this add Column Vector addColumnVector ( vector : ArrayLike < number > | AbstractMatrix ) : this Returns this add Row Vector addRowVector ( vector : ArrayLike < number > | AbstractMatrix ) : this Returns this and and ( value : ScalarOrMatrix ) : this Returns this apply apply ( callback : ( row : number , column : number ) => void ) : this Parameters callback : ( row : number , column : number ) => void Returns this asinh asinh () : this Returns this atanh atanh () : this Returns this clone clone () : this Returns this clz32 clz32 () : this Returns this cumulative Sum cumulativeSum () : this Returns this diag diag () : number [] Returns number [] diagonal diagonal () : number [] Returns number [] div div ( value : ScalarOrMatrix ) : this Returns this div Column Vector divColumnVector ( vector : ArrayLike < number > | AbstractMatrix ) : this Returns this divide divide ( value : ScalarOrMatrix ) : this Returns this div Row Vector divRowVector ( vector : ArrayLike < number > | AbstractMatrix ) : this Returns this entries entries () : Generator < [ row: number , column: number , value: number ] , void , void > Returns Generator < [ row: number , column: number , value: number ] , void , void > expm1 expm1 () : this Returns this fill fill ( value : number ) : this Returns this flip Columns flipColumns () : this Returns this flip Rows flipRows () : this Returns this floor floor () : this Returns this fround fround () : this Returns this Abstractget get ( rowIndex : number , columnIndex : number ) : number Parameters rowIndex : number columnIndex : number Returns number
The value of the element.
get Column getColumn ( index : number ) : number [] Returns number [] get Column Vector getColumnVector ( index : number ) : Matrix get Row getRow ( index : number ) : number [] Returns number [] get Row Vector getRowVector ( index : number ) : Matrix is Column Vector isColumnVector () : boolean Returns boolean is Distance isDistance () : boolean Returns boolean is Echelon Form isEchelonForm () : boolean Returns boolean is Empty isEmpty () : boolean Returns boolean is Reduced Echelon Form isReducedEchelonForm () : boolean Returns boolean is Row Vector isRowVector () : boolean Returns boolean is Square isSquare () : boolean Returns boolean is Symmetric isSymmetric () : boolean Returns boolean is Vector isVector () : boolean Returns boolean kronecker Product kroneckerProduct ( other : MaybeMatrix ) : Matrix kronecker Sum kroneckerSum ( other : MaybeMatrix ) : Matrix left Shift leftShift ( value : ScalarOrMatrix ) : this Returns this log10 log10 () : this Returns this log1p log1p () : this Returns this max max () : number Returns number max ( by : MatrixDimension ) : number [] Returns number [] max Column maxColumn ( column : number ) : number Returns number max Column Index maxColumnIndex ( column : number ) : [ number , number ] Returns [ number , number ] max Index maxIndex () : [ number , number ] Returns [ number , number ] max Row maxRow ( row : number ) : number Returns number max Row Index maxRowIndex ( row : number ) : [ number , number ] Returns [ number , number ] mean mean () : number Returns number mean ( by : MatrixDimension ) : number [] Returns number [] min min () : number Returns number min ( by : MatrixDimension ) : number [] Returns number [] min Column minColumn ( column : number ) : number Returns number min Column Index minColumnIndex ( column : number ) : [ number , number ] Returns [ number , number ] min Index minIndex () : [ number , number ] Returns [ number , number ] min Row minRow ( row : number ) : number Returns number min Row Index minRowIndex ( row : number ) : [ number , number ] Returns [ number , number ] mmul mmul ( other : MaybeMatrix ) : Matrix mmul Strassen mmulStrassen ( y : MaybeMatrix ) : Matrix mod mod ( value : ScalarOrMatrix ) : this Returns this modulus modulus ( value : ScalarOrMatrix ) : this Returns this mul mul ( value : ScalarOrMatrix ) : this Returns this mul Column mulColumn ( index : number , value : number ) : this Parameters index : number value : number Returns this mul Column Vector mulColumnVector ( vector : ArrayLike < number > | AbstractMatrix ) : this Returns this mul Row mulRow ( index : number , value : number ) : this Parameters index : number value : number Returns this mul Row Vector mulRowVector ( vector : ArrayLike < number > | AbstractMatrix ) : this Returns this multiply multiply ( value : ScalarOrMatrix ) : this Returns this negate negate () : this Returns this norm norm ( type ?: "max" | "frobenius" ) : number Parameters Optionaltype : "max" | "frobenius" Returns number or or ( value : ScalarOrMatrix ) : this Returns this pow pow ( value : ScalarOrMatrix ) : this Returns this product product () : number Returns number product ( by : MatrixDimension ) : number [] Returns number [] right Shift rightShift ( value : ScalarOrMatrix ) : this Returns this round round () : this Returns this selection selection ( rowIndices : ArrayLike < number > , columnIndices : ArrayLike < number > , ) : Matrix Parameters rowIndices : ArrayLike < number > columnIndices : ArrayLike < number > Abstractset set ( rowIndex : number , columnIndex : number , value : number ) : this Parameters rowIndex : number columnIndex : number value : number Returns this set Column setColumn ( index : number , array : ArrayLike < number > | AbstractMatrix ) : this Returns this set Row setRow ( index : number , array : ArrayLike < number > | AbstractMatrix ) : this Returns this set Sub Matrix setSubMatrix ( matrix : MaybeMatrix , startRow : number , startColumn : number ) : this Parameters matrix : MaybeMatrix startRow : number startColumn : number Returns this sign Propagating Right Shift signPropagatingRightShift ( value : ScalarOrMatrix ) : this Returns this sort Columns sortColumns ( compareFunction ?: ( a : number , b : number ) => number ) : this Parameters OptionalcompareFunction : ( a : number , b : number ) => number Returns this sort Rows sortRows ( compareFunction ?: ( a : number , b : number ) => number ) : this Parameters OptionalcompareFunction : ( a : number , b : number ) => number Returns this strassen2x2 strassen2x2 ( other : MaybeMatrix ) : Matrix strassen3x3 strassen3x3 ( other : MaybeMatrix ) : Matrix sub sub ( value : ScalarOrMatrix ) : this Returns this sub Column Vector subColumnVector ( vector : ArrayLike < number > | AbstractMatrix ) : this Returns this sub Matrix subMatrix ( startRow : number , endRow : number , startColumn : number , endColumn : number , ) : Matrix Parameters startRow : number endRow : number startColumn : number endColumn : number sub Matrix Column subMatrixColumn ( indices : ArrayLike < number > , startRow ?: number , endRow ?: number , ) : Matrix Parameters indices : ArrayLike < number > OptionalstartRow : number OptionalendRow : number sub Matrix Row subMatrixRow ( indices : ArrayLike < number > , startColumn ?: number , endColumn ?: number , ) : Matrix Parameters indices : ArrayLike < number > OptionalstartColumn : number OptionalendColumn : number sub Row Vector subRowVector ( vector : ArrayLike < number > | AbstractMatrix ) : this Returns this subtract subtract ( value : ScalarOrMatrix ) : this Returns this sum sum () : number Returns number sum ( by : MatrixDimension ) : number [] Returns number [] swap Columns swapColumns ( column1 : number , column2 : number ) : this Parameters column1 : number column2 : number Returns this swap Rows swapRows ( row1 : number , row2 : number ) : this Returns this tensor Product tensorProduct ( other : MaybeMatrix ) : Matrix to1DArray to1DArray () : number [] Returns number [] to2DArray to2DArray () : number [] [] Returns number [] [] toJSON toJSON () : number [] [] Returns number [] [] trace trace () : number Returns number trunc trunc () : this Returns this values values () : Generator < number , void , void > Returns Generator < number , void , void > xor xor ( value : ScalarOrMatrix ) : this Returns this zero Fill Right Shift zeroFillRightShift ( value : ScalarOrMatrix ) : this Returns this Staticabs abs ( value : MaybeMatrix ) : Matrix Staticacos acos ( value : MaybeMatrix ) : Matrix Staticacosh acosh ( value : MaybeMatrix ) : Matrix Staticadd add ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticand and ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticasin asin ( value : MaybeMatrix ) : Matrix Staticasinh asinh ( value : MaybeMatrix ) : Matrix Staticatan atan ( value : MaybeMatrix ) : Matrix Staticatanh atanh ( value : MaybeMatrix ) : Matrix Staticcbrt cbrt ( value : MaybeMatrix ) : Matrix Staticceil ceil ( value : MaybeMatrix ) : Matrix Staticcheck Matrix checkMatrix ( value : any ) : Matrix Staticclz32 clz32 ( value : MaybeMatrix ) : Matrix Staticcolumn Vector columnVector ( newData : ArrayLike < number > ) : Matrix Parameters newData : ArrayLike < number > The new matrix.
Staticcos cos ( value : MaybeMatrix ) : Matrix Staticcosh cosh ( value : MaybeMatrix ) : Matrix Staticdiag diag ( data : ArrayLike < number > , rows ?: number , columns ?: number ) : Matrix Parameters data : ArrayLike < number > Optionalrows : number Optionalcolumns : number
Staticdiagonal diagonal ( data : ArrayLike < number > , rows ?: number , columns ?: number ) : Matrix Parameters data : ArrayLike < number > Optionalrows : number Optionalcolumns : number Staticdiv div ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticdivide divide ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticexp exp ( value : MaybeMatrix ) : Matrix Staticexpm1 expm1 ( value : MaybeMatrix ) : Matrix Staticeye eye ( rows : number , columns ?: number , value ?: number ) : Matrix Parameters rows : number Optionalcolumns : number Optionalvalue : number
Staticfloor floor ( value : MaybeMatrix ) : Matrix Staticfrom1DArray from1DArray ( newRows : number , newColumns : number , newData : ArrayLike < number > , ) : Matrix Parameters newRows : number newColumns : number newData : ArrayLike < number > The new matrix.
Staticfround fround ( value : MaybeMatrix ) : Matrix Staticidentity identity ( rows : number , columns ?: number , value ?: number ) : Matrix Parameters rows : number Optionalcolumns : number Optionalvalue : number Staticleft Shift leftShift ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticlog log ( value : MaybeMatrix ) : Matrix Staticlog10 log10 ( value : MaybeMatrix ) : Matrix Staticlog1p log1p ( value : MaybeMatrix ) : Matrix Staticlog2 log2 ( value : MaybeMatrix ) : Matrix Staticmax max ( matrix1 : MaybeMatrix , matrix2 : MaybeMatrix ) : Matrix Parameters matrix1 : MaybeMatrix matrix2 : MaybeMatrix Staticmin min ( matrix1 : MaybeMatrix , matrix2 : MaybeMatrix ) : Matrix Parameters matrix1 : MaybeMatrix matrix2 : MaybeMatrix Staticmod mod ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticmodulus modulus ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticmul mul ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticmultiply multiply ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticnot not ( value : MaybeMatrix ) : Matrix Staticones ones < M extends AbstractMatrix = Matrix > ( rows : number , columns : number ) : M Parameters rows : number columns : number Returns M The new matrix.
Staticor or ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticpow pow ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticright Shift rightShift ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticround round ( value : MaybeMatrix ) : Matrix Staticrow Vector rowVector ( newData : ArrayLike < number > ) : Matrix Parameters newData : ArrayLike < number > The new matrix.
Staticsign sign ( value : MaybeMatrix ) : Matrix Staticsign Propagating Right Shift signPropagatingRightShift ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticsin sin ( value : MaybeMatrix ) : Matrix Staticsinh sinh ( value : MaybeMatrix ) : Matrix Staticsqrt sqrt ( value : MaybeMatrix ) : Matrix Staticsub sub ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticsubtract subtract ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Statictan tan ( value : MaybeMatrix ) : Matrix Statictanh tanh ( value : MaybeMatrix ) : Matrix Statictrunc trunc ( value : MaybeMatrix ) : Matrix Staticxor xor ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticzero Fill Right Shift zeroFillRightShift ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Staticzeros zeros < _M extends AbstractMatrix = Matrix > ( rows : number , columns : number ) : _M Parameters rows : number columns : number Returns _M The new matrix.
Number of columns of the matrix.