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