53 const auto nonZeros =
gpuMatrix.getNonZeroValues().asStdVector();
54 const auto rowIndices =
gpuMatrix.getRowIndices().asStdVector();
60 Dune::BCRSMatrix<BlockType> matrix(N, N,
numberOfNonZeroes, Dune::BCRSMatrix<BlockType>::row_wise);
61 for (
auto row = matrix.createbegin();
row != matrix.createend(); ++
row) {
62 for (
auto j = rowIndices[
row.index()]; j != rowIndices[
row.index() + 1]; ++j) {
68 for (std::size_t i = 0; i < N; ++i) {
69 for (
auto j = rowIndices[i]; j != rowIndices[i + 1]; ++j) {
73 constexpr static auto rows = BlockType::rows;
75 for (std::size_t
k = 0;
k < rows; ++
k) {
76 for (std::size_t
l = 0;
l < rows; ++
l) {
Dune::BCRSMatrix< BlockType > makeCPUMatrix(const Operator &op)
Utility functions for GPU preconditioner creation.
Definition gpu_preconditioner_utils.hpp:47
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240