export function transpose(m: number[][]) {
  return m[0]?.map((x, i) => m.map((x) => x[i])) || [];
}
