import type { array, matrix } from "../types"; /** * Flip a matrix left to right. * * Reverses the order of the columns in the input matrix, flipping it left to right. * * @param x The input array or matrix. * @returns The matrix with its columns flipped left to right. * @throws If no input is provided. * * @example Flip a 2D matrix left to right * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(fliplr([[1, 4], [2, 5], [3, 6]]), [[4, 1], [5, 2], [6, 3]]); * * ``` * * @example Flip a 1D array (no change) * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(fliplr([1, 2, 3]), [1, 2, 3]); * * ``` */ export default function fliplr(x: number | array | matrix): number | array | matrix; //# sourceMappingURL=fliplr.d.ts.map