tensor: index names in merge_indices

This commit is contained in:
2025-11-10 22:02:07 +01:00
parent 6c2242a572
commit 687474fed2
3 changed files with 10 additions and 4 deletions

View File

@@ -1746,6 +1746,7 @@ else
Tensor<T> r(newshape);
r.apply_permutation_algebra(*this,pa,false,(T)1/(T)pa.size(),0);
if(is_named()) r.names=names.permuted(basicperm,true);
return r;
}