process_fun_row_wise function

Process model for a matrix of individuals