Add general tensor_get_an()
Merge pull request #7 from MarkWatkins2014/master

Add general tensor_get_an()