예제 #1
0
        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);
        }
예제 #2
0
 public float get(int row, int col)
 {
     return(original.get(row + row0, col + col0));
 }