$\mathbf{u}=\left(\mathbf{A}-\alpha_{j}\mathbf{S}\right)\mathbf{v}_{j}-\beta_{j%
}\mathbf{S}\mathbf{v}_{j-1},$