mlx-bun library API
    Preparing search index...

    Function hadamardTransform

    • fast::hadamard_transform over the last axis. scale defaults to 1/sqrt(dim) (mlx's own default when unset) — pass it explicitly to match a reference that always states its normalization, per packages/inference/src/kernels/turboquant/ops.ts's fwht().

      Parameters

      • x: MlxArray
      • scale: number | null = null
      • s: bigint = gpuStream

      Returns MlxArray