Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Matrix

Index

Constructors

constructor

  • new Matrix(data: Float64Array, rowCount: number, columnCount: number): Matrix
  • new Matrix(elements: number[]): Matrix

Properties

Private blasEnabled

blasEnabled: boolean = true

Private columnCount

columnCount: number

Private data

data: Float64Array

Private rowCount

rowCount: number

Methods

add

Private addMatrix

  • addMatrix(matrix: Matrix): this

Private addScalar

  • addScalar(scalar: number): this

appendBottom

  • appendBottom(matrix: Matrix): this

appendLeft

  • appendLeft(matrix: Matrix): this

appendRight

  • appendRight(matrix: Matrix): this

appendTop

  • appendTop(matrix: Matrix): this

Private checkerboard

  • checkerboard(): this

Private getAdjoint

getClone

Private getCofactor

  • getCofactor(rowIndex: number, columnIndex: number): number

Private getCofactorMatrix

getColumn

  • getColumn(columnIndex: number): Matrix

getColumnCount

  • getColumnCount(): number

getColumns

  • getColumns(startColumnIndex: number, endColumnIndex?: number): Matrix

getDeterminant

  • getDeterminant(): number

getElement

  • getElement(rowIndex: number, columnIndex: number): number

getInverse

Private getMatrixOfMinors

getMaximumRowIndeces

  • getMaximumRowIndeces(): Matrix

getMaximumValue

  • getMaximumValue(): number

getMinimumValue

  • getMinimumValue(): number

Private getMinor

  • getMinor(rowIndex: number, columnIndex: number): number

getRow

  • getRow(rowIndex: number): Matrix

getRowCount

  • getRowCount(): number

getRows

  • getRows(startRowIndex: number, endRowIndex?: number): Matrix

getSum

  • getSum(): number

multiply

multiplyElementWise

  • multiplyElementWise(matrix: Matrix): this

Private multiplyWithMatrix

  • multiplyWithMatrix(other: Matrix): this

Private multiplyWithScalar

  • multiplyWithScalar(scalar: number): this

setElement

  • setElement(rowIndex: number, columnIndex: number, value: number): this

subtract

Private subtractMatrix

  • subtractMatrix(matrix: Matrix): this

toArray

  • toArray(): Array<Array<number>>

transform

  • transform(transform: function): this
  • Parameters

    • transform: function
        • (value: number, rowIndex?: number, columnIndex?: number): number
        • Parameters

          • value: number
          • Optional rowIndex: number
          • Optional columnIndex: number

          Returns number

    Returns this

transpose

  • transpose(): this

Static add

Static appendBottom

Static appendLeft

Static appendRight

Static appendTop

Static columnVector

  • columnVector(elements: number[]): Matrix

Static identity

  • identity(dimensions: number): Matrix

Static multiply

Static ones

  • ones(rowCount: number, columnCount: number): Matrix

Static rand

  • rand(rowCount: number, columnCount: number, epsilon?: number, seed?: number): Matrix

Static subtract

Static transform

  • Parameters

    • matrix: Matrix
    • transform: function
        • (value: number, rowIndex?: number, columnIndex?: number): number
        • Parameters

          • value: number
          • Optional rowIndex: number
          • Optional columnIndex: number

          Returns number

    Returns Matrix

Static transpose

Static zeros

  • zeros(rowCount: number, columnCount: number): Matrix

Generated using TypeDoc