and TensorFun conversion routines