Created by: zhoukunsheng
test=develop Like numpy.diag, this op generates a square matrix with specified diagonal values.