From d6fce3e49881e1132f9dbbe9af1b12a30becbdb6 Mon Sep 17 00:00:00 2001 From: paboyle Date: Sat, 27 Jan 2018 23:48:01 +0000 Subject: [PATCH] Zero changes, literally --- lib/tensors/Tensor_arith_sub.h | 2 +- lib/tensors/Tensor_index.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tensors/Tensor_arith_sub.h b/lib/tensors/Tensor_arith_sub.h index 9bfc24af..37d00cea 100644 --- a/lib/tensors/Tensor_arith_sub.h +++ b/lib/tensors/Tensor_arith_sub.h @@ -75,7 +75,7 @@ template accelerator_inline void sub sub(&ret->_internal[c1][c2],&lhs->_internal,&rhs->_internal[c1][c2]); } else { // Fails -- need unary minus. Catalogue other unops? - ret->_internal[c1][c2]=zero; + ret->_internal[c1][c2]=Zero(); ret->_internal[c1][c2]=ret->_internal[c1][c2]-rhs->_internal[c1][c2]; } diff --git a/lib/tensors/Tensor_index.h b/lib/tensors/Tensor_index.h index 7a96a96e..553801bc 100644 --- a/lib/tensors/Tensor_index.h +++ b/lib/tensors/Tensor_index.h @@ -272,7 +272,7 @@ public: static auto traceIndex(const iVector arg) -> iScalar { iScalar ret; - ret._internal=zero; + ret._internal=Zero(); for(int i=0;i arg) -> iMatrix { iMatrix ret; - ret=zero; + ret=Zero(); for(int i=0;i