SyTen

◆ prod_trans_str_arr()

template<Rank summed, Rank frank, Rank srank>
std::pair< std::array< int, frank >, std::array< int, srank > > syten::TensorProd::prod_trans_str_arr ( std::string_view const  full,
SourceLocation  location 
)

Translates a string coming from a Einstein-summation convention tensor product specification into the standard array format.

Ranks of the incoming tensors have to be supplied together with the number of summed-over legs.

References syten::SourceLocation::column(), syten::SourceLocation::file_name(), std::array< T >::fill(), syten::SourceLocation::line(), std::vector< T >::size(), syten::split(), syten::stripChars(), and SYTEN_ASSERT_MSG.

+ Here is the call graph for this function: