Use typedef array as sf_mat