x function

Data matrix p by n