Class AbstractMatrixAbstract
Constructors PropertiesReadonly
columns 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 Abstract
get 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 Optional
type : "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 > Abstract
set 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 Optional
compareFunction : ( a : number , b : number ) => number Returns this sort Rows sortRows ( compareFunction ?: ( a : number , b : number ) => number ) : this Parameters Optional
compareFunction : ( 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 > Optional
startRow : number Optional
endRow : number sub Matrix Row subMatrixRow ( indices : ArrayLike < number > , startColumn ?: number , endColumn ?: number , ) : Matrix Parameters indices : ArrayLike < number > Optional
startColumn : number Optional
endColumn : 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 Static
abs abs ( value : MaybeMatrix ) : Matrix Static
acos acos ( value : MaybeMatrix ) : Matrix Static
acosh acosh ( value : MaybeMatrix ) : Matrix Static
add add ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
and and ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
asin asin ( value : MaybeMatrix ) : Matrix Static
asinh asinh ( value : MaybeMatrix ) : Matrix Static
atan atan ( value : MaybeMatrix ) : Matrix Static
atanh atanh ( value : MaybeMatrix ) : Matrix Static
cbrt cbrt ( value : MaybeMatrix ) : Matrix Static
ceil ceil ( value : MaybeMatrix ) : Matrix Static
check Matrix checkMatrix ( value : any ) : Matrix Static
clz32 clz32 ( value : MaybeMatrix ) : Matrix Static
column Vector columnVector ( newData : ArrayLike < number > ) : Matrix Parameters newData : ArrayLike < number > The new matrix.
Static
cos cos ( value : MaybeMatrix ) : Matrix Static
cosh cosh ( value : MaybeMatrix ) : Matrix Static
diag diag ( data : ArrayLike < number > , rows ?: number , columns ?: number ) : Matrix Parameters data : ArrayLike < number > Optional
rows : number Optional
columns : number
Static
diagonal diagonal ( data : ArrayLike < number > , rows ?: number , columns ?: number ) : Matrix Parameters data : ArrayLike < number > Optional
rows : number Optional
columns : number Static
div div ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
divide divide ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
exp exp ( value : MaybeMatrix ) : Matrix Static
expm1 expm1 ( value : MaybeMatrix ) : Matrix Static
eye eye ( rows : number , columns ?: number , value ?: number ) : Matrix Parameters rows : number Optional
columns : number Optional
value : number
Static
floor floor ( value : MaybeMatrix ) : Matrix Static
from1DArray from1DArray ( newRows : number , newColumns : number , newData : ArrayLike < number > , ) : Matrix Parameters newRows : number newColumns : number newData : ArrayLike < number > The new matrix.
Static
fround fround ( value : MaybeMatrix ) : Matrix Static
identity identity ( rows : number , columns ?: number , value ?: number ) : Matrix Parameters rows : number Optional
columns : number Optional
value : number Static
left Shift leftShift ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
log log ( value : MaybeMatrix ) : Matrix Static
log10 log10 ( value : MaybeMatrix ) : Matrix Static
log1p log1p ( value : MaybeMatrix ) : Matrix Static
log2 log2 ( value : MaybeMatrix ) : Matrix Static
max max ( matrix1 : MaybeMatrix , matrix2 : MaybeMatrix ) : Matrix Parameters matrix1 : MaybeMatrix matrix2 : MaybeMatrix Static
min min ( matrix1 : MaybeMatrix , matrix2 : MaybeMatrix ) : Matrix Parameters matrix1 : MaybeMatrix matrix2 : MaybeMatrix Static
mod mod ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
modulus modulus ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
mul mul ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
multiply multiply ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
not not ( value : MaybeMatrix ) : Matrix Static
ones ones < M extends AbstractMatrix = Matrix > ( rows : number , columns : number ) : M Parameters rows : number columns : number Returns M The new matrix.
Static
or or ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
pow pow ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
right Shift rightShift ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
round round ( value : MaybeMatrix ) : Matrix Static
row Vector rowVector ( newData : ArrayLike < number > ) : Matrix Parameters newData : ArrayLike < number > The new matrix.
Static
sign sign ( value : MaybeMatrix ) : Matrix Static
sign Propagating Right Shift signPropagatingRightShift ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
sin sin ( value : MaybeMatrix ) : Matrix Static
sinh sinh ( value : MaybeMatrix ) : Matrix Static
sqrt sqrt ( value : MaybeMatrix ) : Matrix Static
sub sub ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
subtract subtract ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
tan tan ( value : MaybeMatrix ) : Matrix Static
tanh tanh ( value : MaybeMatrix ) : Matrix Static
trunc trunc ( value : MaybeMatrix ) : Matrix Static
xor xor ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
zero Fill Right Shift zeroFillRightShift ( matrix : MaybeMatrix , value : ScalarOrMatrix ) : Matrix Parameters matrix : MaybeMatrix value : ScalarOrMatrix Static
zeros 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.