clone<T extends numarraymatrix>(x: T): T
Create a clone of the input array or matrix.
Creates a deep copy of the input array or matrix. If the input is a number, it simply returns that number.
T extends numarraymatrix
x: T
Array or matrix to clone.
A deep copy of the input array or matrix.