Interface VectorView

A one dimensional (slice) out of a DustState or DustStateTime object. This is not really a new type, but just a restriction on the existing ndarray.NdArray type that means that TypeScript will expect exactly one index when using get and set, as ndarray does not have a vector type.

Hierarchy

  • VectorView

Properties

Methods

Properties

shape: number[]

An array of length 1 containing the vector length

Methods

  • get(i: number): number
  • Get the ith value

    Parameters

    • i: number

      Index to fetch

    Returns number

  • set(i: number, value: number): void
  • Set the ith value, modifying the underlying object as well as the view.

    Parameters

    • i: number

      Index to set

    • value: number

      The value to replace into the vector

    Returns void

Generated using TypeDoc