Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new CSC(m: number, n: number, data: number[], cols: number[], rows: number[]): CSC

Properties

cols

cols: number[]

Column start indices into A

data

data: number[]

Non-zero matrix values

m

m: number

n

n: number

rows

rows: number[]

Row indices for values in A

Methods

at

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

copy

denseCol

  • denseCol(n: number): any[]
  • Parameters

    • n: number

    Returns any[]

denseRow

  • denseRow(m: number): any[]
  • Parameters

    • m: number

    Returns any[]

Protected ensureSize

mul

mulV

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

    • vec: number[]

    Returns any[]

nnz

  • nnz(): number

nnzCol

  • nnzCol(n: number): number

nnzRow

  • nnzRow(m: number): number

nzColRows

  • nzColRows(n: number): number[]

nzColVals

  • nzColVals(n: number): number[]

nzEntries

  • nzEntries(): Generator<NzEntry, void, unknown>

nzRowCols

  • nzRowCols(m: number): number[]

nzRowVals

  • nzRowVals(m: number): number[]

setAt

  • setAt(m: number, n: number, x: number, safe?: boolean, compact?: boolean): CSC

toDense

  • toDense(): number[]

toString

  • toString(): string

trace

  • trace(): number

transpose

  • transpose(): CSC

zero

Static diag

  • diag(vals: number[]): CSC

Static empty

  • empty(m: number, n?: number): CSC
  • Parameters

    • m: number
    • n: number = ...

    Returns CSC

Static fromDense

  • fromDense(m: number, n: number, dense: ArrayLike<number>): CSC
  • Constructs CSC from dense column-major matrix values.

    Parameters

    • m: number

      rows

    • n: number

      columns

    • dense: ArrayLike<number>

      matrix values

    Returns CSC

Static identity

  • identity(m: number): CSC

Generated using TypeDoc