A one-sweep numerical method for vector-matrix difference equations with two-point boundary conditions