Tensor products and hierarchical fitting