Esempio n. 1
0
        void Fill_Random_100000_Integer()
        {
            PagedRectArray <int> arr = new PagedRectArray <int>();

            int rows = arr.RowCapacity;
            int cols = arr.ColCapacity;

            for (int i = 0; i < 100000; i++)
            {
                arr[rand.Next(rows), rand.Next(cols)] = i;
            }
        }
Esempio n. 2
0
        void Fill_1000x1000_Integer()
        {
            PagedRectArray <int> arr = new PagedRectArray <int>();

            for (int r = 0; r < 1000; r++)
            {
                for (int c = 0; c < 1000; c++)
                {
                    arr[r, c] = r;
                }
            }
        }
Esempio n. 3
0
        void Fill_FullPage_Integer()
        {
            PagedRectArray <int> arr = new PagedRectArray <int>();

            int rows = arr.RowCapacity;
            int cols = arr.ColCapacity;

            for (int r = 0; r < rows; r++)
            {
                for (int c = 0; c < cols; c += PagedRectArray <int> .ColPageSize)
                {
                    arr[r, c] = r * c;
                }
            }
        }