SyTen

◆ dropDummy() [4/4]

template<Rank rank, typename Scalar >
SparseTensor<rank-1, Scalar> ::type syten::dropDummy ( SparseTensor< rank, Scalar > const &  a,
Rank  position 
)
inline

Drops a one-dimensional dummy index at the specified position, i.e. for \( a \in [2, 3, 1] \), dropDummy(a, 3) = b` with \( b \in [2, 3] \).

References syten::SparseTensor< rank, Scalar >::dim(), syten::SparseTensor< rank, Scalar >::dims(), syten::SparseTensor< rank, Scalar >::isSingleton(), std::make_pair(), SYTEN_ASSERT_DEBUG, validateCGCContraction(), and syten::SparseTensor< rank, Scalar >::valSingleton().

Referenced by dropDummy(), and syten::STensorImpl::remove_dummy_leg().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: