diff --git a/lib/tensors/Tensor_arith_scalar.h b/lib/tensors/Tensor_arith_scalar.h index c6418638..5999f935 100644 --- a/lib/tensors/Tensor_arith_scalar.h +++ b/lib/tensors/Tensor_arith_scalar.h @@ -9,12 +9,12 @@ namespace Grid { ////////////////////////////////////////////////////////////////////////////////////////// // multiplication by fundamental scalar type -template strong_inline iScalar operator * (const iScalar& lhs,const typename iScalar::scalar_type rhs) +template strong_inline iScalar operator * (const iScalar& lhs,const typename iScalar::scalar_type rhs) { typename iScalar::tensor_reduced srhs; srhs=rhs; return lhs*srhs; } -template strong_inline iScalar operator * (const typename iScalar::scalar_type lhs,const iScalar& rhs) { return rhs*lhs; } +template strong_inline iScalar operator * (const typename iScalar::scalar_type lhs,const iScalar& rhs) { return rhs*lhs; } template strong_inline iVector operator * (const iVector& lhs,const typename iScalar::scalar_type rhs) { @@ -118,12 +118,12 @@ template strong_inline iMatrix operator * (Integer lhs,const /////////////////////////////////////////////////////////////////////////////////////////////// // addition by fundamental scalar type applies to matrix(down diag) and scalar /////////////////////////////////////////////////////////////////////////////////////////////// -template strong_inline iScalar operator + (const iScalar& lhs,const typename iScalar::scalar_type rhs) +template strong_inline iScalar operator + (const iScalar& lhs,const typename iScalar::scalar_type rhs) { typename iScalar::tensor_reduced srhs; srhs=rhs; return lhs+srhs; } -template strong_inline iScalar operator + (const typename iScalar::scalar_type lhs,const iScalar& rhs) { return rhs+lhs; } +template strong_inline iScalar operator + (const typename iScalar::scalar_type lhs,const iScalar& rhs) { return rhs+lhs; } template strong_inline iMatrix operator + (const iMatrix& lhs,const typename iScalar::scalar_type rhs) { @@ -176,12 +176,12 @@ template strong_inline iMatrix operator + (Integer lhs,const /////////////////////////////////////////////////////////////////////////////////////////////// // subtraction of fundamental scalar type applies to matrix(down diag) and scalar /////////////////////////////////////////////////////////////////////////////////////////////// -template strong_inline iScalar operator - (const iScalar& lhs,const typename iScalar::scalar_type rhs) +template strong_inline iScalar operator - (const iScalar& lhs,const typename iScalar::scalar_type rhs) { typename iScalar::tensor_reduced srhs; srhs=rhs; return lhs-srhs; } -template strong_inline iScalar operator - (const typename iScalar::scalar_type lhs,const iScalar& rhs) +template strong_inline iScalar operator - (const typename iScalar::scalar_type lhs,const iScalar& rhs) { typename iScalar::tensor_reduced slhs;slhs=lhs; return slhs-rhs;