fix_zero_diagonal.hpp File Reference
#include <limits>
#include <vector>
Include dependency graph for fix_zero_diagonal.hpp:

Go to the source code of this file.

Namespaces

namespace  Opm
 
namespace  Opm::cuistl
 
namespace  Opm::cuistl::detail
 

Functions

template<class Matrix >
const Matrix Opm::cuistl::detail::makeMatrixWithNonzeroDiagonal (const Matrix &matrix, const typename Matrix::field_type replacementValue=std::numeric_limits< typename Matrix::field_type >::epsilon())
 makeMatrixWithNonzeroDiagonal creates a new matrix with the zero diagonal elements (when viewed as a matrix of scalrars) set to replacementValue More...