bool syten::DenseProduct::is_trivial_order_a | ( | std::array< Index, rank > const & | dims, |
std::array< int, rank > const & | c_a | ||
) |
Returns true if the tensor as specified by its dimensions and contraction specifier does not have to be transposed to be usable in a TTGT-based tensor transposition if it is the first tensor to be contracted.
References std::all_of(), syten::LimVec< Type, max, MaxType, type >::begin(), syten::LimVec< Type, max, MaxType, type >::end(), std::is_sorted(), syten::LimVec< Type, max, MaxType, type >::push_back(), and syten::rank().
Referenced by impl(), syten::CudaDenseTensorImpl::prodD(), and syten::prodD().