Robust Principal Tensor Calculus