Function makeVector

  • Creates a Vector without data copies.

    Type Parameters

    • T extends BigIntArray | TypedArray

    Parameters

    • data: T | readonly T[]

    Returns Vector<TypedArrayDataType<T>>

    Example

    const vector = makeVector(new Int32Array([1, 2, 3]));
    
  • Type Parameters

    • T extends DataView

    Parameters

    • data: T | readonly T[]

    Returns Vector<dtypes.Int8>

  • Type Parameters

    Parameters

    Returns Vector<T>

  • Type Parameters

    Parameters

    Returns Vector<T>

  • Type Parameters

    Parameters

    • data: DataProps<T> | readonly DataProps<T>[]

    Returns Vector<T>

Generated using TypeDoc