Function sequant::opt::detail::relabeled(const Tensor&, std::wstring_view, const SlotMap&)

Function Documentation

inline Tensor sequant::opt::detail::relabeled(const Tensor &tensor, std::wstring_view label, const SlotMap &slot_map)
Returns:

A copy of tensor that is labeled label and whose slots are rearranged according to slot_map