public bool MoveNext() { var hasNext = ++_currIndex < size; if (hasNext) { if (rowMajor) { subRow = _currIndex / submatrixStride; subCol = _currIndex % submatrixStride; } else { subRow = _currIndex % submatrixStride; subCol = _currIndex / submatrixStride; } Current = a.get(subRow + minRow, subCol + minCol); return(true); } Current = float.NaN; return(false); }
public float get(int row, int col) { return(original.get(row + row0, col + col0)); }