Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OperatorEntry

Class for operarator entires. To be used only within a Operator object, or to create such.

Hierarchy

  • OperatorEntry

Index

Constructors

  • new OperatorEntry(coordOut: readonly number[], coordIn: readonly number[], value: Complex): OperatorEntry
  • Creates a VectorEntry from output and input coordinates, and value.

    Parameters

    • coordOut: readonly number[]
    • coordIn: readonly number[]
    • value: Complex

    Returns OperatorEntry

Properties

coordIn: readonly number[]
coordOut: readonly number[]
value: Complex

Methods

  • coordKey(): string
  • Entry coordinates in string representation. Can be used for hashing.

    Returns string

  • toString(): string
  • Overrides toString() method.

    returms

    E.g. "Sparse operator entry [[3,0,1], [2,1,1]] has value (1.00 - 0.5 i)"

    Returns string

  • fromIndexIndexValue(indexOut: number, indexIn: number, sizesOut: number[], sizesIn: number[], value: Complex): OperatorEntry
  • Creates OperatorEntry from two integer indices, coordinate sizes and a value.

    Parameters

    • indexOut: number

      an integer for output index

    • indexIn: number

      an integer for output index

    • sizesOut: number[]

      sizes od output dimensions

    • sizesIn: number[]

      sizes od output dimensions

    • value: Complex

      entry value

    Returns OperatorEntry

Generated using TypeDoc