From 84485afe6cb53f652093822a2c286f8d35f15089 Mon Sep 17 00:00:00 2001 From: Azusa Yamaguchi Date: Sun, 14 Jun 2015 00:57:23 +0100 Subject: [PATCH] typo fix -- remove extra template arg --- lib/tensors/Tensor_arith_scalar.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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;