/** * MatClone * @param mat */ export let MatClone = <T>(mat: T[][]): T[][] => mat.map(raw => [...raw])