diff --git a/lib/tensors/Tensor_trace.h b/lib/tensors/Tensor_trace.h index f6778496..9c85080e 100644 --- a/lib/tensors/Tensor_trace.h +++ b/lib/tensors/Tensor_trace.h @@ -72,5 +72,18 @@ auto traceIndex(const iMatrix &arg) -> iMatrix::TensorLevel != Level >::type * =nullptr> inline +auto traceIndex(const iVector &arg) -> iVector(arg._internal[0])),N> +{ + iVector(arg._internal[0])),N> ret; + for(int i=0;i(arg._internal[i]); + } + return ret; +} + } #endif