Switch between rows & columns indices and vector-like indices of matrices.
rowcol2idx get indices out of rows and columns
idx2col get columns out of indices
idx2row get rows out of indices
     
    
    Usage
    rowcol2idx(rows.idx, cols.idx, height)
idx2col(idx, height)
idx2row(idx, height)
 
    
    Arguments
- rows.idx
- indices of rows 
- cols.idx
- indices of columns 
- height
- height of the matrix (number of rows) 
- idx
- vector-like, matrix-wide indices 
 
    
    Value
    a vector of indices