20 RealD evalMaxApprox = 0.0;
23 const int _MAX_ITER_EST_ = 200;
25 for (
int i=0;i<_MAX_ITER_EST_;i++) {
33 std::cout <<
GridLogMessage <<
"PowerMethod: Current approximation of largest eigenvalue " << na << std::endl;
42 std::cout <<
GridLogMessage <<
" Approximation of largest eigenvalue: " << evalMaxApprox << std::endl;
accelerator_inline Grid_simd< S, V > sqrt(const Grid_simd< S, V > &r)
Lattice< vobj > real(const Lattice< vobj > &lhs)
ComplexD innerProduct(const Lattice< vobj > &left, const Lattice< vobj > &right)
RealD norm2(const Lattice< vobj > &arg)
GridLogger GridLogMessage(1, "Message", GridLogColours, "NORMAL")
static RealD normalise(T &v)
RealD operator()(LinearOperatorBase< Field > &HermOp, const Field &src)
virtual void HermOp(const Field &in, Field &out)=0