copyOf

Creates a copy of the matrix of an appropriate type with the same content.