13 January 2012 10:41:14 AM

SGMG_INDEX_PRB
  C++ version

SGMG_INDEX_TESTS
  Call SGMG_INDEX_TEST with various arguments.

  All tests will use a point equality tolerance of 0

SGMG_INDEX_TEST
  SGMG_INDEX returns index and order vectors that
  identify each point in a multidimensional sparse grid 
  with mixed factors.

  Each sparse grid is of spatial dimension DIM_NUM,
  and is made up of product grids of levels up to LEVEL_MAX.

  For LEVEL_MAX = 0

     0      1 /  1    1 /  1

  For LEVEL_MAX = 1

     0      1 /  3    1 /  1
     1      1 /  1    1 /  3
     2      1 /  1    2 /  3
     3      1 /  1    3 /  3
     4      3 /  3    1 /  1

  For LEVEL_MAX = 2

     0      1 /  3    1 /  3
     1      1 /  3    2 /  3
     2      1 /  3    3 /  3
     3      2 /  5    1 /  1
     4      1 /  1    1 /  5
     5      1 /  1    2 /  5
     6      1 /  1    3 /  5
     7      1 /  1    4 /  5
     8      1 /  1    5 /  5
     9      4 /  5    1 /  1
    10      3 /  3    1 /  3
    11      3 /  3    2 /  3
    12      3 /  3    3 /  3

SGMG_INDEX_TEST
  SGMG_INDEX returns index and order vectors that
  identify each point in a multidimensional sparse grid 
  with mixed factors.

  Each sparse grid is of spatial dimension DIM_NUM,
  and is made up of product grids of levels up to LEVEL_MAX.

  For LEVEL_MAX = 0

     0      1 /  1    1 /  1

  For LEVEL_MAX = 1

     0      1 /  3    1 /  1
     1      1 /  1    1 /  3
     2      1 /  1    2 /  3
     3      1 /  1    3 /  3
     4      3 /  3    1 /  1

  For LEVEL_MAX = 2

     0      1 /  3    1 /  3
     1      1 /  3    2 /  3
     2      1 /  3    3 /  3
     3      2 /  5    1 /  1
     4      1 /  1    1 /  7
     5      1 /  1    2 /  7
     6      1 /  1    3 /  7
     7      1 /  1    4 /  7
     8      1 /  1    5 /  7
     9      1 /  1    6 /  7
    10      1 /  1    7 /  7
    11      4 /  5    1 /  1
    12      3 /  3    1 /  3
    13      3 /  3    2 /  3
    14      3 /  3    3 /  3

SGMG_INDEX_TEST
  SGMG_INDEX returns index and order vectors that
  identify each point in a multidimensional sparse grid 
  with mixed factors.

  Each sparse grid is of spatial dimension DIM_NUM,
  and is made up of product grids of levels up to LEVEL_MAX.

  For LEVEL_MAX = 0

     0      1 /  1    1 /  1

  For LEVEL_MAX = 1

     0      1 /  5    1 /  1
     1      2 /  5    1 /  1
     2      1 /  1    1 /  3
     3      3 /  5    1 /  1
     4      1 /  1    2 /  3
     5      1 /  1    3 /  3
     6      4 /  5    1 /  1
     7      5 /  5    1 /  1

  For LEVEL_MAX = 2

     0      1 /  5    1 /  3
     1      1 /  9    1 /  1
     2      1 /  5    2 /  3
     3      1 /  5    3 /  3
     4      2 /  9    1 /  1
     5      2 /  5    1 /  3
     6      3 /  9    1 /  1
     7      2 /  5    2 /  3
     8      2 /  5    3 /  3
     9      4 /  9    1 /  1
    10      1 /  1    1 /  5
    11      3 /  5    1 /  3
    12      1 /  1    2 /  5
    13      1 /  1    3 /  5
    14      5 /  9    1 /  1
    15      3 /  5    2 /  3
    16      1 /  1    4 /  5
    17      3 /  5    3 /  3
    18      1 /  1    5 /  5
    19      6 /  9    1 /  1
    20      4 /  5    1 /  3
    21      7 /  9    1 /  1
    22      4 /  5    2 /  3
    23      4 /  5    3 /  3
    24      8 /  9    1 /  1
    25      5 /  5    1 /  3
    26      9 /  9    1 /  1
    27      5 /  5    2 /  3
    28      5 /  5    3 /  3

SGMG_INDEX_TEST
  SGMG_INDEX returns index and order vectors that
  identify each point in a multidimensional sparse grid 
  with mixed factors.

  Each sparse grid is of spatial dimension DIM_NUM,
  and is made up of product grids of levels up to LEVEL_MAX.

  For LEVEL_MAX = 0

     0      1 /  1    1 /  1

  For LEVEL_MAX = 1

     0      1 /  5    1 /  1
     1      2 /  5    1 /  1
     2      1 /  1    1 /  3
     3      3 /  5    1 /  1
     4      1 /  1    2 /  3
     5      1 /  1    3 /  3
     6      4 /  5    1 /  1
     7      5 /  5    1 /  1

  For LEVEL_MAX = 2

     0      1 /  5    1 /  3
     1      1 /  9    1 /  1
     2      1 /  5    2 /  3
     3      1 /  5    3 /  3
     4      2 /  9    1 /  1
     5      2 /  5    1 /  3
     6      3 /  9    1 /  1
     7      2 /  5    2 /  3
     8      2 /  5    3 /  3
     9      4 /  9    1 /  1
    10      1 /  1    1 /  5
    11      3 /  5    1 /  3
    12      5 /  9    1 /  1
    13      1 /  1    2 /  5
    14      3 /  5    2 /  3
    15      1 /  1    3 /  5
    16      3 /  5    3 /  3
    17      1 /  1    4 /  5
    18      1 /  1    5 /  5
    19      6 /  9    1 /  1
    20      4 /  5    1 /  3
    21      7 /  9    1 /  1
    22      4 /  5    2 /  3
    23      4 /  5    3 /  3
    24      8 /  9    1 /  1
    25      5 /  5    1 /  3
    26      9 /  9    1 /  1
    27      5 /  5    2 /  3
    28      5 /  5    3 /  3

SGMG_INDEX_TEST
  SGMG_INDEX returns index and order vectors that
  identify each point in a multidimensional sparse grid 
  with mixed factors.

  Each sparse grid is of spatial dimension DIM_NUM,
  and is made up of product grids of levels up to LEVEL_MAX.

  For LEVEL_MAX = 0

     0      1 /  1    1 /  1

  For LEVEL_MAX = 1

     0      1 /  5    1 /  1
     1      2 /  5    1 /  1
     2      1 /  1    1 /  3
     3      3 /  5    1 /  1
     4      1 /  1    2 /  3
     5      1 /  1    3 /  3
     6      4 /  5    1 /  1
     7      5 /  5    1 /  1

  For LEVEL_MAX = 2

     0      1 /  5    1 /  3
     1      1 /  9    1 /  1
     2      1 /  5    2 /  3
     3      1 /  5    3 /  3
     4      2 /  9    1 /  1
     5      2 /  5    1 /  3
     6      3 /  9    1 /  1
     7      2 /  5    2 /  3
     8      2 /  5    3 /  3
     9      4 /  9    1 /  1
    10      1 /  1    1 /  5
    11      3 /  5    1 /  3
    12      1 /  1    2 /  5
    13      5 /  9    1 /  1
    14      3 /  5    2 /  3
    15      1 /  1    3 /  5
    16      3 /  5    3 /  3
    17      1 /  1    4 /  5
    18      1 /  1    5 /  5
    19      6 /  9    1 /  1
    20      4 /  5    1 /  3
    21      7 /  9    1 /  1
    22      4 /  5    2 /  3
    23      4 /  5    3 /  3
    24      8 /  9    1 /  1
    25      5 /  5    1 /  3
    26      9 /  9    1 /  1
    27      5 /  5    2 /  3
    28      5 /  5    3 /  3

SGMG_INDEX_TEST
  SGMG_INDEX returns index and order vectors that
  identify each point in a multidimensional sparse grid 
  with mixed factors.

  Each sparse grid is of spatial dimension DIM_NUM,
  and is made up of product grids of levels up to LEVEL_MAX.

  For LEVEL_MAX = 0

     0      1 /  1    1 /  1

  For LEVEL_MAX = 1

     0      1 /  7    1 /  1
     1      2 /  7    1 /  1
     2      3 /  7    1 /  1
     3      1 /  1    1 /  3
     4      1 /  1    2 /  3
     5      4 /  7    1 /  1
     6      1 /  1    3 /  3
     7      5 /  7    1 /  1
     8      6 /  7    1 /  1
     9      7 /  7    1 /  1

  For LEVEL_MAX = 2

     0      1 / 15    1 /  1
     1      1 /  7    1 /  3
     2      1 /  7    2 /  3
     3      2 / 15    1 /  1
     4      1 /  7    3 /  3
     5      3 / 15    1 /  1
     6      2 /  7    1 /  3
     7      2 /  7    2 /  3
     8      4 / 15    1 /  1
     9      2 /  7    3 /  3
    10      5 / 15    1 /  1
    11      3 /  7    1 /  3
    12      3 /  7    2 /  3
    13      6 / 15    1 /  1
    14      3 /  7    3 /  3
    15      7 / 15    1 /  1
    16      1 /  1    1 /  5
    17      4 /  7    1 /  3
    18      1 /  1    2 /  5
    19      1 /  1    3 /  5
    20      4 /  7    2 /  3
    21      8 / 15    1 /  1
    22      1 /  1    4 /  5
    23      4 /  7    3 /  3
    24      1 /  1    5 /  5
    25      9 / 15    1 /  1
    26      5 /  7    1 /  3
    27      5 /  7    2 /  3
    28     10 / 15    1 /  1
    29      5 /  7    3 /  3
    30     11 / 15    1 /  1
    31      6 /  7    1 /  3
    32      6 /  7    2 /  3
    33     12 / 15    1 /  1
    34      6 /  7    3 /  3
    35     13 / 15    1 /  1
    36      7 /  7    1 /  3
    37      7 /  7    2 /  3
    38     14 / 15    1 /  1
    39      7 /  7    3 /  3
    40     15 / 15    1 /  1

SGMG_INDEX_TEST
  SGMG_INDEX returns index and order vectors that
  identify each point in a multidimensional sparse grid 
  with mixed factors.

  Each sparse grid is of spatial dimension DIM_NUM,
  and is made up of product grids of levels up to LEVEL_MAX.

  For LEVEL_MAX = 0

     0      1 /  1    1 /  1

  For LEVEL_MAX = 1

     0      1 /  3    1 /  1
     1      1 /  1    1 /  3
     2      1 /  1    2 /  3
     3      1 /  1    3 /  3
     4      2 /  3    1 /  1
     5      3 /  3    1 /  1

  For LEVEL_MAX = 2

     0      1 /  5    1 /  1
     1      1 /  3    1 /  3
     2      1 /  3    2 /  3
     3      1 /  3    3 /  3
     4      2 /  5    1 /  1
     5      1 /  1    1 /  9
     6      1 /  1    2 /  9
     7      1 /  1    3 /  9
     8      1 /  1    4 /  9
     9      1 /  1    5 /  9
    10      1 /  1    6 /  9
    11      1 /  1    7 /  9
    12      1 /  1    8 /  9
    13      1 /  1    9 /  9
    14      2 /  3    1 /  3
    15      2 /  3    2 /  3
    16      2 /  3    3 /  3
    17      3 /  5    1 /  1
    18      4 /  5    1 /  1
    19      3 /  3    1 /  3
    20      3 /  3    2 /  3
    21      3 /  3    3 /  3
    22      5 /  5    1 /  1

SGMG_INDEX_TEST
  SGMG_INDEX returns index and order vectors that
  identify each point in a multidimensional sparse grid 
  with mixed factors.

  Each sparse grid is of spatial dimension DIM_NUM,
  and is made up of product grids of levels up to LEVEL_MAX.

  For LEVEL_MAX = 0

     0      1 /  1    1 /  1    1 /  1

  For LEVEL_MAX = 1

     0      1 /  5    1 /  1    1 /  1
     1      2 /  5    1 /  1    1 /  1
     2      1 /  1    1 /  3    1 /  1
     3      1 /  1    1 /  1    1 /  3
     4      1 /  1    1 /  1    2 /  3
     5      3 /  5    1 /  1    1 /  1
     6      1 /  1    1 /  1    3 /  3
     7      1 /  1    2 /  3    1 /  1
     8      1 /  1    3 /  3    1 /  1
     9      4 /  5    1 /  1    1 /  1
    10      5 /  5    1 /  1    1 /  1

  For LEVEL_MAX = 2

     0      1 /  5    1 /  3    1 /  1
     1      1 /  5    1 /  1    1 /  3
     2      1 /  5    1 /  1    2 /  3
     3      1 /  9    1 /  1    1 /  1
     4      1 /  5    1 /  1    3 /  3
     5      1 /  5    2 /  3    1 /  1
     6      1 /  5    3 /  3    1 /  1
     7      2 /  9    1 /  1    1 /  1
     8      2 /  5    1 /  3    1 /  1
     9      2 /  5    1 /  1    1 /  3
    10      2 /  5    1 /  1    2 /  3
    11      3 /  9    1 /  1    1 /  1
    12      2 /  5    1 /  1    3 /  3
    13      2 /  5    2 /  3    1 /  1
    14      2 /  5    3 /  3    1 /  1
    15      4 /  9    1 /  1    1 /  1
    16      1 /  1    1 /  5    1 /  1
    17      1 /  1    1 /  3    1 /  3
    18      1 /  1    1 /  3    2 /  3
    19      3 /  5    1 /  3    1 /  1
    20      1 /  1    1 /  3    3 /  3
    21      1 /  1    2 /  5    1 /  1
    22      1 /  1    3 /  5    1 /  1
    23      1 /  1    1 /  1    1 /  5
    24      3 /  5    1 /  1    1 /  3
    25      1 /  1    1 /  1    2 /  5
    26      3 /  5    1 /  1    2 /  3
    27      5 /  9    1 /  1    1 /  1
    28      1 /  1    1 /  1    3 /  5
    29      1 /  1    1 /  1    4 /  5
    30      3 /  5    1 /  1    3 /  3
    31      1 /  1    1 /  1    5 /  5
    32      1 /  1    2 /  3    1 /  3
    33      1 /  1    2 /  3    2 /  3
    34      3 /  5    2 /  3    1 /  1
    35      1 /  1    2 /  3    3 /  3
    36      1 /  1    4 /  5    1 /  1
    37      1 /  1    3 /  3    1 /  3
    38      1 /  1    3 /  3    2 /  3
    39      3 /  5    3 /  3    1 /  1
    40      1 /  1    3 /  3    3 /  3
    41      1 /  1    5 /  5    1 /  1
    42      6 /  9    1 /  1    1 /  1
    43      4 /  5    1 /  3    1 /  1
    44      4 /  5    1 /  1    1 /  3
    45      4 /  5    1 /  1    2 /  3
    46      7 /  9    1 /  1    1 /  1
    47      4 /  5    1 /  1    3 /  3
    48      4 /  5    2 /  3    1 /  1
    49      4 /  5    3 /  3    1 /  1
    50      8 /  9    1 /  1    1 /  1
    51      5 /  5    1 /  3    1 /  1
    52      5 /  5    1 /  1    1 /  3
    53      5 /  5    1 /  1    2 /  3
    54      9 /  9    1 /  1    1 /  1
    55      5 /  5    1 /  1    3 /  3
    56      5 /  5    2 /  3    1 /  1
    57      5 /  5    3 /  3    1 /  1

SGMG_INDEX_TEST
  SGMG_INDEX returns index and order vectors that
  identify each point in a multidimensional sparse grid 
  with mixed factors.

  Each sparse grid is of spatial dimension DIM_NUM,
  and is made up of product grids of levels up to LEVEL_MAX.

  For LEVEL_MAX = 3

     0      1 /  7    1 /  1
     1      1 /  3    1 /  3
     2      1 /  3    2 /  3
     3      1 /  3    3 /  3
     4      3 /  7    1 /  1
     5      1 /  1    1 /  7
     6      1 /  1    2 /  7
     7      1 /  1    3 /  7
     8      1 /  1    4 /  7
     9      1 /  1    5 /  7
    10      1 /  1    6 /  7
    11      1 /  1    7 /  7
    12      5 /  7    1 /  1
    13      3 /  3    1 /  3
    14      3 /  3    2 /  3
    15      3 /  3    3 /  3
    16      7 /  7    1 /  1

SGMG_INDEX_TEST
  SGMG_INDEX returns index and order vectors that
  identify each point in a multidimensional sparse grid 
  with mixed factors.

  Each sparse grid is of spatial dimension DIM_NUM,
  and is made up of product grids of levels up to LEVEL_MAX.

  For LEVEL_MAX = 3

     0      1 / 15    1 /  1
     1      1 /  7    1 /  3
     2      1 /  7    2 /  3
     3      1 /  7    3 /  3
     4      3 / 15    1 /  1
     5      1 /  3    1 /  7
     6      1 /  3    2 /  7
     7      1 /  3    3 /  7
     8      1 /  3    4 /  7
     9      1 /  3    5 /  7
    10      1 /  3    6 /  7
    11      1 /  3    7 /  7
    12      5 / 15    1 /  1
    13      3 /  7    1 /  3
    14      3 /  7    2 /  3
    15      3 /  7    3 /  3
    16      7 / 15    1 /  1
    17      1 /  1    1 / 15
    18      1 /  1    2 / 15
    19      1 /  1    3 / 15
    20      1 /  1    4 / 15
    21      1 /  1    5 / 15
    22      1 /  1    6 / 15
    23      1 /  1    7 / 15
    24      1 /  1    8 / 15
    25      1 /  1    9 / 15
    26      1 /  1   10 / 15
    27      1 /  1   11 / 15
    28      1 /  1   12 / 15
    29      1 /  1   13 / 15
    30      1 /  1   14 / 15
    31      1 /  1   15 / 15
    32      9 / 15    1 /  1
    33      5 /  7    1 /  3
    34      5 /  7    2 /  3
    35      5 /  7    3 /  3
    36     11 / 15    1 /  1
    37      3 /  3    1 /  7
    38      3 /  3    2 /  7
    39      3 /  3    3 /  7
    40      3 /  3    4 /  7
    41      3 /  3    5 /  7
    42      3 /  3    6 /  7
    43      3 /  3    7 /  7
    44     13 / 15    1 /  1
    45      7 /  7    1 /  3
    46      7 /  7    2 /  3
    47      7 /  7    3 /  3
    48     15 / 15    1 /  1

SGMG_INDEX_PRB
  Normal end of execution.

13 January 2012 10:41:14 AM