diff --git a/Grid/tensors/Tensor_Ta.h b/Grid/tensors/Tensor_Ta.h index a7103343..c9132854 100644 --- a/Grid/tensors/Tensor_Ta.h +++ b/Grid/tensors/Tensor_Ta.h @@ -72,7 +72,7 @@ template accelerator_inline iScalar SpTa(const iScalar ret; ret._internal = SpTa(r._internal); - return Ta(ret); + return ret; } template accelerator_inline iVector SpTa(const iVector&r) { @@ -80,11 +80,11 @@ template accelerator_inline iVector SpTa(const iVect for(int i=0;i accelerator_inline iMatrix SpTa(const iMatrix &arg) { - iMatrix ret; + iMatrix ret(arg); vtype nrm; vtype inner; vtype tmp;