changed the copy constructor in dense matrix operator