Mat // this shows the full NxM Mat matrix values
Mat[i][j] // this shows value of cell (i, j)
Mat[i] // this shows the values of full i'th row
Mat[i], j // this shows first j values from i'th row
但我想打印Mat子部分的快照,该子部分由小2D网格中的(i1,j1)到(i2,j2)组成。有可能吗?我之所以需要它,是因为有时调试较小的子数组似乎是一项繁琐的工作,尤其是当主数组太大时,我对整个数组右下角的某个子部分感兴趣。
如果没有标准方法,有什么变通方法吗?