matrix_getIJ {netDx} | R Documentation |
Converts matrix index (1 to m*n) to row (m) and column (n) number
matrix_getIJ(dimMat, idx)
dimMat |
(integer vector of length 2) output of |
idx |
(integer vector of length n) matrix indices |
(matrix) n-by-2, first column has row indices ; second column has col indices