Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MoodMatrix<M, N>

Type parameters

Hierarchy

  • MoodMatrix

Implements

Index

Constructors

constructor

  • new MoodMatrix<M, N>(rowArray: readonly [M, MoodVector<N>][], rowIndex: {}, colArray: readonly [N, MoodVector<M>][], colIndex: {}): MoodMatrix<M, N>
  • Type parameters

    Parameters

    • rowArray: readonly [M, MoodVector<N>][]
    • rowIndex: {}
      • [name: string]: number | undefined
    • colArray: readonly [N, MoodVector<M>][]
    • colIndex: {}
      • [name: string]: number | undefined

    Returns MoodMatrix<M, N>

Properties

Readonly colArray

colArray: readonly [N, MoodVector<M>][]

Readonly colIndex

colIndex: {}

Type declaration

  • [name: string]: number | undefined

Readonly rowArray

rowArray: readonly [M, MoodVector<N>][]

Readonly rowIndex

rowIndex: {}

Type declaration

  • [name: string]: number | undefined

Accessors

colCount

  • get colCount(): number
  • Returns number

rowCount

  • get rowCount(): number
  • Returns number

Methods

col

  • Parameters

    Returns MoodMatrix<M, N>

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

dot

  • dot(rowKey: string | number | M, col: MoodVector<N>): undefined | number
  • Parameters

    Returns undefined | number

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

getCol

  • Parameters

    • colKey: N

    Returns undefined | MoodVector<M>

  • Parameters

    • colKey: string

    Returns undefined | MoodVector<M>

  • Parameters

    • colIndex: number

    Returns undefined | MoodVector<M>

getRow

  • Parameters

    • rowKey: M

    Returns undefined | MoodVector<N>

  • Parameters

    • rowKey: string

    Returns undefined | MoodVector<N>

  • Parameters

    • rowIndex: number

    Returns undefined | MoodVector<N>

hasCol

  • hasCol(colKey: N): boolean
  • hasCol(colKey: string): boolean
  • Parameters

    • colKey: N

    Returns boolean

  • Parameters

    • colKey: string

    Returns boolean

hasRow

  • hasRow(rowKey: M): boolean
  • hasRow(rowKey: string): boolean
  • Parameters

    • rowKey: M

    Returns boolean

  • Parameters

    • rowKey: string

    Returns boolean

identityFor

  • Parameters

    Returns MoodMatrix<M, N>

minus

  • Parameters

    Returns MoodMatrix<M, N>

negative

  • Returns MoodMatrix<M, N>

plus

  • Parameters

    Returns MoodMatrix<M, N>

row

  • Parameters

    Returns MoodMatrix<M, N>

times

  • Parameters

    • scalar: number

    Returns MoodMatrix<M, N>

timesCol

  • Parameters

    Returns MoodVector<M>

  • Parameters

    • col: MoodVector<M & N>
    • Optional implicitIdentity: boolean

    Returns MoodVector<M>

timesRow

  • Parameters

    Returns MoodVector<N>

  • Parameters

    • row: MoodVector<M & N>
    • Optional implicitIdentity: boolean

    Returns MoodVector<M>

toString

  • toString(): string
  • Returns string

transform

  • Parameters

    • that: MoodMatrix<N, N>
    • Optional implicitIdentity: boolean

    Returns MoodMatrix<M, N>

updatedCol

  • Parameters

    Returns MoodMatrix<M, N>

  • Parameters

    Returns MoodMatrix<M | N, N>

updatedRow

  • Parameters

    Returns MoodMatrix<M, N>

  • Parameters

    Returns MoodMatrix<M | N, N>

Static empty

  • Type parameters

    Returns MoodMatrix<M, N>

Static forCols

  • Type parameters

    Parameters

    Returns MoodMatrix<M, N>

Static forRows

  • Type parameters

    Parameters

    Returns MoodMatrix<M, N>

Static fromColArray

  • Type parameters

    Parameters

    • colArray: readonly [N, MoodVector<M>][]
    • Optional colIndex: {}
      • [name: string]: number | undefined

    Returns MoodMatrix<M, N>

Static fromRowArray

  • Type parameters

    Parameters

    • rowArray: readonly [M, MoodVector<N>][]
    • Optional rowIndex: {}
      • [name: string]: number | undefined

    Returns MoodMatrix<M, N>

Generated using TypeDoc