Polynomial-time binary matrix transposition #
Both runtime dimensions are unary lengths. Their product bounds the output, and division and remainder compute each transposed index in polynomial time. A bounded bitwise map reads the corresponding input bit, with false past its end.