332 const std::string &name,
336 (matrix.n() % options.
block_size != 0 ? 1 : 0)),
337 gridpoints_y = (matrix.m() / options.
block_size +
338 (matrix.m() % options.
block_size != 0 ? 1 : 0));
352 patches.resize(gridpoints_x * gridpoints_y);
354 catch (
const std::bad_alloc &)
357 ExcMessage(
"You are trying to create a graphical "
358 "representation of a matrix that would "
359 "requiring outputting " +
360 std::to_string(gridpoints_x) +
"x" +
361 std::to_string(gridpoints_y) +
362 " patches. There is not enough memory to output " +
363 "this many patches."));
368 for (
size_type i = 0; i < gridpoints_y; ++i)
369 for (
size_type j = 0; j < gridpoints_x; ++j, ++index)
371 patches[index].n_subdivisions = 1;
381 patches[index].vertices[0][0] = j;
382 patches[index].vertices[0][1] = -
static_cast<signed int>(i);
383 patches[index].vertices[1][0] = j;
384 patches[index].vertices[1][1] = -
static_cast<signed int>(i + 1);
385 patches[index].vertices[2][0] = j + 1;
386 patches[index].vertices[2][1] = -
static_cast<signed int>(i);
387 patches[index].vertices[3][0] = j + 1;
388 patches[index].vertices[3][1] = -
static_cast<signed int>(i + 1);
393 for (
auto &vertex :
patches[index].vertices)
396 patches[index].n_subdivisions = 1;
398 patches[index].data.reinit(1, 4);
::VectorizedArray< Number, width > min(const ::VectorizedArray< Number, width > &, const ::VectorizedArray< Number, width > &)