SyTen

◆ dropDummy() [3/4]

template<>
Tensor< 0 > syten::dropDummy ( Tensor< 1 > const &  in,
Index const  which 
)
inline

Specialisation for a rank-1 tensor which asserts dummyness and then uses trace to obtain the value.

References syten::Tensor< rank >::getTotalDim(), syten::Tensor< rank >::size(), SYTEN_ASSERT, and trace().

+ Here is the call graph for this function: