% Householder-rotate a tensor t from the right along the slices % orthogonal to dimension d, using Householder vector h function t = trighthouse(t,d,h) dim = tdimensions(t); for s =1:dim(d), t = tputmatrix(t,s,d,righthouse(tgetmatrix(t,s,d),h)); end