328 typedef internal::TensorBlockDescriptor<5> TensorBlock;
329 typedef internal::TensorBlockMapper<5, Layout> TensorBlockMapper;
334 const Index max_coeff_count = 10 * 1 * 1 * 1 * 1;
335 TensorBlockMapper block_mapper(dims, {TensorBlockShapeType::kSkewedInnerDims, max_coeff_count,
zeroCost()});
336 TensorBlock
block = block_mapper.blockDescriptor(0);
338 for (
int i = 1;
i < 5; ++
i) {
341 VERIFY(
block.dimensions().TotalSize() <= max_coeff_count);
344 const Index max_coeff_count = 1 * 1 * 1 * 1 * 6;
345 TensorBlockMapper block_mapper(dims, {TensorBlockShapeType::kSkewedInnerDims, max_coeff_count,
zeroCost()});
346 TensorBlock
block = block_mapper.blockDescriptor(0);
348 for (
int i = 3;
i >= 0; --
i) {
351 VERIFY(
block.dimensions().TotalSize() <= max_coeff_count);
357 const Index max_coeff_count = 11 * 1 * 1 * 1 * 1;
358 TensorBlockMapper block_mapper(dims, {TensorBlockShapeType::kSkewedInnerDims, max_coeff_count,
zeroCost()});
359 TensorBlock
block = block_mapper.blockDescriptor(0);
361 for (
int i = 1;
i < 5; ++
i) {
364 VERIFY(
block.dimensions().TotalSize() <= max_coeff_count);
367 const Index max_coeff_count = 1 * 1 * 1 * 1 * 7;
368 TensorBlockMapper block_mapper(dims, {TensorBlockShapeType::kSkewedInnerDims, max_coeff_count,
zeroCost()});
369 TensorBlock
block = block_mapper.blockDescriptor(0);
371 for (
int i = 3;
i >= 0; --
i) {
374 VERIFY(
block.dimensions().TotalSize() <= max_coeff_count);
381 const Index max_coeff_count = 11 * 3 * 1 * 1 * 1;
382 TensorBlockMapper block_mapper(dims, {TensorBlockShapeType::kSkewedInnerDims, max_coeff_count,
zeroCost()});
383 TensorBlock
block = block_mapper.blockDescriptor(0);
386 for (
int i = 2;
i < 5; ++
i) {
389 VERIFY(
block.dimensions().TotalSize() <= max_coeff_count);
392 const Index max_coeff_count = 1 * 1 * 1 * 15 * 7;
393 TensorBlockMapper block_mapper(dims, {TensorBlockShapeType::kSkewedInnerDims, max_coeff_count,
zeroCost()});
394 TensorBlock
block = block_mapper.blockDescriptor(0);
397 for (
int i = 2;
i >= 0; --
i) {
400 VERIFY(
block.dimensions().TotalSize() <= max_coeff_count);
407 const Index max_coeff_count = 11 * 5 * 5 * 1 * 1;
408 TensorBlockMapper block_mapper(dims, {TensorBlockShapeType::kSkewedInnerDims, max_coeff_count,
zeroCost()});
409 TensorBlock
block = block_mapper.blockDescriptor(0);
413 for (
int i = 3;
i < 5; ++
i) {
416 VERIFY(
block.dimensions().TotalSize() <= max_coeff_count);
419 const Index max_coeff_count = 1 * 1 * 5 * 17 * 7;
420 TensorBlockMapper block_mapper(dims, {TensorBlockShapeType::kSkewedInnerDims, max_coeff_count,
zeroCost()});
421 TensorBlock
block = block_mapper.blockDescriptor(0);
425 for (
int i = 1;
i >= 0; --
i) {
428 VERIFY(
block.dimensions().TotalSize() <= max_coeff_count);
434 const Index max_coeff_count = 11 * 5 * 6 * 17 * 7;
435 TensorBlockMapper block_mapper(dims, {TensorBlockShapeType::kSkewedInnerDims, max_coeff_count,
zeroCost()});
436 TensorBlock
block = block_mapper.blockDescriptor(0);
442 VERIFY(
block.dimensions().TotalSize() <= max_coeff_count);
445 const Index max_coeff_count = 11 * 5 * 6 * 17 * 7;
446 TensorBlockMapper block_mapper(dims, {TensorBlockShapeType::kSkewedInnerDims, max_coeff_count,
zeroCost()});
447 TensorBlock
block = block_mapper.blockDescriptor(0);
453 VERIFY(
block.dimensions().TotalSize() <= max_coeff_count);