import type { Range0_31 } from "@thi.ng/api" ; import { clz32 } from "./count.js" ; remarks param x export const binaryOneHot = ( x ) => ( 1 << x ) >>> 0 ; remarks param x export const oneHotBinary = ( x ) => 31 - clz32 ( x ) ;