The tensor.double function returns a deep copy of the tensor. I'm not sure that's always necessary. I suggest that we extend the function to specify whether or not to create a deep copy. It can default to true, but I think there will be instances where that behavior is not desired.