Ifpack2 Templated Preconditioning Package
Version 1.0
|
Definition of power methods. More...
#include "Kokkos_ArithTraits.hpp"
#include "Teuchos_FancyOStream.hpp"
#include "Teuchos_oblackholestream.hpp"
#include "Tpetra_Details_residual.hpp"
#include <cmath>
#include <iostream>
Go to the source code of this file.
Namespaces | |
Ifpack2 | |
Preconditioners and smoothers for Tpetra sparse matrices. | |
Functions | |
template<class OperatorType , class V > | |
V::scalar_type | Ifpack2::PowerMethod::powerMethodWithInitGuess (const OperatorType &A, const V &D_inv, const int numIters, Teuchos::RCP< V > x, Teuchos::RCP< V > y, const typename Teuchos::ScalarTraits< typename V::scalar_type >::magnitudeType tolerance=1e-7, const int eigNormalizationFreq=1, Teuchos::RCP< Teuchos::FancyOStream > out=Teuchos::null, const bool computeSpectralRadius=true) |
Use the power method to estimate the maximum eigenvalue of A*D_inv, given an initial guess vector x. More... | |
template<class V > | |
void | Ifpack2::PowerMethod::computeInitialGuessForPowerMethod (V &x, const bool nonnegativeRealParts) |
Fill x with random initial guess for power method. More... | |
template<class OperatorType , class V > | |
V::scalar_type | Ifpack2::PowerMethod::powerMethod (const OperatorType &A, const V &D_inv, const int numIters, Teuchos::RCP< V > y, const typename Teuchos::ScalarTraits< typename V::scalar_type >::magnitudeType tolerance=1e-7, const int eigNormalizationFreq=1, Teuchos::RCP< Teuchos::FancyOStream > out=Teuchos::null, const bool computeSpectralRadius=true) |
Use the power method to estimate the maximum eigenvalue of A*D_inv. More... | |
Definition of power methods.
This file describes power methods for use throughout Ifpack2