import type { array, matrix } from "../types"; /** * Concatenate arrays or matrices horizontally. * * Concatenates arrays or matrices horizontally along columns. * * @param args Arrays or matrices to concatenate. * @returns Concatenated result. * @throws If no input arguments are provided. * * @example Concatenate two 2x3 matrices * ```ts * import { assertEquals, assertThrows } from "jsr:@std/assert"; * * assertEquals(horzcat([[5, 6, 5], [7, 8, -1]], [[-1, 3, -1], [4, 5, 9]]), [[5, 6, 5, -1, 3, -1], [7, 8, -1, 4, 5, 9]]); * * ``` * * @example Concatenate numbers into a 1x3 matrix * ```ts * import { assertEquals, assertThrows } from "jsr:@std/assert"; * * assertEquals(horzcat(5, 6, 7), [[5, 6, 7]]); * * ``` * * @example Invalid input (no arguments) * ```ts * import { assertEquals, assertThrows } from "jsr:@std/assert"; * * assertThrows(() => { horzcat(); }, Error, 'Not enough input arguments'); * * ``` */ export default function horzcat(...args: (number | array | matrix)[]): array | matrix; //# sourceMappingURL=horzcat.d.ts.map