Options
All
  • Public
  • Public/Protected
  • All
Menu

@thi.ng/sparse

Index

Type aliases

BinOp

BinOp: FnN2

NzEntry

NzEntry: [number, number, number]

Functions

Const at

  • at(id1: number, id2: number, major: number[], minor: number[], data: number[]): number
  • Parameters

    • id1: number
    • id2: number
    • major: number[]
    • minor: number[]
    • data: number[]

    Returns number

Const compress

  • compress(m: number, n: number, dense: ArrayLike<number>): number[][]
  • Parameters

    • m: number
    • n: number
    • dense: ArrayLike<number>

    Returns number[][]

Const diag

  • diag(vals: number[]): number[][]

Const insert

  • insert(id1: number, id2: number, id1max: number, x: number, idx: number, major: number[], minor: number[], data: number[]): number[][]
  • Parameters

    • id1: number
    • id2: number
    • id1max: number
    • x: number
    • idx: number
    • major: number[]
    • minor: number[]
    • data: number[]

    Returns number[][]

Const remove

  • remove(id1: number, id1max: number, idx: number, major: number[], minor: number[], data: number[]): void
  • Parameters

    • id1: number
    • id1max: number
    • idx: number
    • major: number[]
    • minor: number[]
    • data: number[]

    Returns void

Const setAt

  • setAt(id1: number, id2: number, id1max: number, val: number, major: number[], minor: number[], data: number[], compact?: boolean): number[][]
  • Parameters

    • id1: number
    • id2: number
    • id1max: number
    • val: number
    • major: number[]
    • minor: number[]
    • data: number[]
    • compact: boolean = true

    Returns number[][]

Generated using TypeDoc