369 const std::string &
name,
373 (matrix.n() % options.
block_size != 0 ? 1 : 0)),
374 n_patches_y = (matrix.m() / options.
block_size +
375 (matrix.m() % options.
block_size != 0 ? 1 : 0));
389 for (
size_type i = 0; i < n_patches_y; ++i)
391 for (
size_type j = 0; j < n_patches_x; ++j)
406 n_patches_x * n_patches_y);
414 catch (
const std::bad_alloc &)
417 ExcMessage(
"You are trying to create a graphical "
418 "representation of a matrix that would "
419 "requiring outputting " +
421 std::to_string(n_patches) :
422 std::to_string(n_patches_x) +
"x" +
423 std::to_string(n_patches_y)) +
424 " patches. There is not enough memory to output " +
425 "this many patches."));
430 for (
size_type i = 0; i < n_patches_y; ++i)
431 for (
size_type j = 0; j < n_patches_x; ++j)
446 patches[index].n_subdivisions = 1;
456 patches[index].vertices[0][0] = j;
457 patches[index].vertices[0][1] = -
static_cast<signed int>(i);
458 patches[index].vertices[1][0] = j;
459 patches[index].vertices[1][1] = -
static_cast<signed int>(i + 1);
460 patches[index].vertices[2][0] = j + 1;
461 patches[index].vertices[2][1] = -
static_cast<signed int>(i);
462 patches[index].vertices[3][0] = j + 1;
463 patches[index].vertices[3][1] = -
static_cast<signed int>(i + 1);
468 for (
auto &vertex :
patches[index].vertices)
471 patches[index].n_subdivisions = 1;
473 patches[index].data.reinit(1, 4);
::VectorizedArray< Number, width > min(const ::VectorizedArray< Number, width > &, const ::VectorizedArray< Number, width > &)