Function setDefaultType

  • Sets the type this library creates for all types

    example:

    setDefaultType(Float64Array);
    

    Parameters

    • ctor: (new (n) => Float32Array | Float64Array | number[])

      the constructor for the type. Either Float32Array, Float64Array, or Array

        • new (n): Float32Array | Float64Array | number[]
        • Parameters

          • n: number

          Returns Float32Array | Float64Array | number[]

    Returns void