matrix_copy/2

"matrix_copy(+ Matrix1,+ Matrix2" )

Replace the contents of Matrix1 by Matrix2. The two matrices must have the same type and size.

If Matrix1 is an unbound variable, create a new matrix matching Matrix2.