import type { matrix } from "../types"; /** * Matrix power X ^ Y. * * Raises a square matrix X to the power of a scalar exponent Y. * * @param x The base matrix (must be square) * @param y The exponent (must be a scalar) * @returns The resulting matrix after exponentiation * @throws If the input is not a square matrix or the exponent is not a scalar * * @example Raise a matrix to the power of 3 * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(mpower([[1,1,-1],[1,-2,3],[2,3,1]], 3), * [[-2, 11, -11], [11, -35, 33], [22, 33, -2]]); * ``` */ export default function mpower(x: matrix, y: number): matrix; //# sourceMappingURL=mpower.d.ts.map