This can be done efficiently if both solutions are computed at once, as the forward portion of the pure tridiagonal matrix algorithm can be shared.
To compute both solutions efficiently, it's beneficial to perform them simultaneously, as the initial part of the pure tridiagonal matrix algorithm can be used for both calculations.