14 using namespace shogun;
24 for (int32_t i=0; i<n_sub_blocks; i++)
28 block_idxs_min[i] = i;
29 block_idxs_max[i] = i;
36 for (int32_t i=0; i<n_sub_blocks; i++)
38 if (block_idxs_min[i] != block_idxs_max[i])
39 SG_ERROR(
"Blocks do overlap and it is not supported\n");
42 SG_ERROR(
"Block with smallest indices start from %d while 0 is required\n", min_idxs[0]);
44 for (int32_t i=1; i<n_sub_blocks; i++)
46 if (min_idxs[i] > max_idxs[i-1])
47 SG_ERROR(
"There is an unsupported gap between %d and %d vectors\n", max_idxs[i-1], min_idxs[i]);
48 else if (min_idxs[i] < max_idxs[i-1])
49 SG_ERROR(
"Blocks do overlap and it is not supported\n");