1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-04 19:25:56 +01:00

Zero -> zeroit in Tensor_index

This commit is contained in:
Christoph Lehner 2020-07-31 02:07:17 -04:00
parent 6365a89ba3
commit 968a90633a

View File

@ -272,7 +272,7 @@ public:
static auto traceIndex(const iVector<vtype,N> arg) -> iScalar<RemoveCRV(arg._internal[0])>
{
iScalar<RemoveCRV(arg._internal[0])> ret;
ret._internal=Zero();
zeroit(ret);
for(int i=0;i<N;i++){
ret._internal = ret._internal+ arg._internal[i];
}