Return matrix from user defined op