Generalized to xa having dimension na x p