Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new COO(m: number, n?: number, data?: number[]): COO

Properties

data

data: number[]

m

m: number

n

n: number

Methods

at

  • at(m: number, n: number, safe?: boolean): number

Protected ensureSize

mulV

  • mulV(v: number[]): any[]
  • Parameters

    • v: number[]

    Returns any[]

nnz

  • nnz(): number

nnzCol

  • nnzCol(_: number): number

nnzRow

  • nnzRow(_: number): number

nzColRows

  • nzColRows(_: number): number[]

nzColVals

  • nzColVals(_: number): number[]

nzEntries

  • nzEntries(): IterableIterator<NzEntry>

nzRowCols

  • nzRowCols(_: number): number[]

nzRowVals

  • nzRowVals(_: number): number[]

setAt

  • setAt(m: number, n: number, v: number, safe?: boolean): COO

toCSC

toCSR

toDense

  • toDense(): any[]

trace

  • trace(): number

Static diag

  • diag(vals: ArrayLike<number>): COO
  • Parameters

    • vals: ArrayLike<number>

    Returns COO

Static fromDense

  • fromDense(m: number, n: number, data: ArrayLike<number>): COO
  • Parameters

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

    Returns COO

Static identity

  • identity(m: number): COO

Generated using TypeDoc