Matrix copyto in eva.h