Numpy matrix.copy () method, we can make a copy of all data items present in the matrix. If we change any data item in the copy, it will not affect the original matrix.
Return: Return copy of matrix
Example # 1:
In this example, we can see that using the
matrix.copy () method we are making a copy of the element in another matrix.
[[1 2 3]]
Example # 2:
[[1 2 3] [4 5 6]]