Matrix Formula for Continued Fraction Convergents