mlx-bun library API
    Preparing search index...
    • Port of packed_dim(): byte count for dim elements at bits width (bits===8 is one byte/element, unpacked). Throws on a non-byte-aligned product, matching the reference's own guard.

      Parameters

      • dim: number
      • bits: number

      Returns number