src/tiramisu_core.cpp
int dynamic_dimension_into_loop_level(int dim)
{
    assert(dim % 2 == 0);
    int level = (dim - 2)/2;
    return level;
}
/**
 * Transform a dynamic schedule dimension into the corresponding loop level.
 *
 * In the example below, the loop level that corresponds
 * to the dynamic dimension 2 is 0, and to the dynamic dimension 4 is 1, ...
 *
 * The first dimension is the duplication dimension, the following
 * dimensions are static, dynamic, static, dynamic, ...
 *
 * Loop level               :    -1         0      1      2
 * Schedule dimension number:        0, 1   2  3   4  5   6  7
 * Schedule:                        [0, 0, i1, 0, i2, 0, i3, 0]
 */
Transform a dynamic schedule dimension into the corresponding loop level.
In the example below, the loop level that corresponds
to the dynamic dimension 2 is 0, and to the dynamic dimension 4 is 1.

The first dimension is the duplication dimension, the following
dimensions are static, dynamic, static, dynamic.


Transform a dynamic schedule dimension into the corresponding loop level . In the example below the loop level that corresponds to the dynamic dimension 2 is 0 and to the dynamic dimension 4 is 1 . The first dimension is the duplication dimension the following dimensions are static dynamic static dynamic .
int dynamic_dimension_into_loop_level(int dim)
{
    assert(dim % 2 == 0);
    int level = (dim - 2)/2;
    return level;
}
int dynamic_dimension_into_loop_level ( int dim ) { assert ( dim % 2 == 0 ) ; int level = ( dim - 2 ) / 2 ; return level ; }
Transform a dynamic schedule dimension into the corresponding loop level.
Transform a dynamic schedule dimension into the corresponding loop level .