added an example for eigen function, and added a dotap method