Function Dune::XT::LA::diagonal_pattern

Function Dune::XT::LA::diagonal_pattern

SparsityPatternDefault Dune::XT::LA::diagonal_pattern(const int rows)

Creates a diagonal sparsity pattern for a square rows x rows matrix.

Function Dune::XT::LA::diagonal_pattern

SparsityPatternDefault Dune::XT::LA::diagonal_pattern(const int rows, const int cols, int offset = 0)

Creates a diagonal sparsity pattern for a rows x cols matrix with the given diagonal offset.