wgblas
    Preparing search index...
    • Builds a pass that sets y[i*incy] := beta * y[i*incy] for i < n (0 at beta = 0, without reading y): an f32 Level 2 routine's whole result at alpha = 0.

      Returns the pass (for runComputePasses in compute) plus the buffers the caller must destroy.

      Parameters

      • device: GPUDevice
      • y: GPUBuffer
      • n: number

        logical length of y

      • incy: number
      • beta: number
      • label: string

      Returns Promise<{ buffers: GPUBuffer[]; pass: object }>