23 using namespace Eigen;
28 CLogRationalApproximationCGM::CLogRationalApproximationCGM()
41 eigen_solver, desired_accuracy,
OF_LOG)
45 m_linear_solver=linear_solver;
49 void CLogRationalApproximationCGM::init()
56 SG_ADD(&m_negated_shifts,
"negated_shifts",
79 if (m_negated_shifts.
vector==NULL)
84 negated_shifts=-shifts;
CIndependentComputationEngine * m_computation_engine
class that uses conjugate gradient method for solving a shifted linear system family where the linear...
CLogRationalApproximationCGM()
SGVector< complex128_t > m_shifts
virtual ~CLogRationalApproximationCGM()
Class SGObject is the base class of all shogun objects.
Template class that aggregates scalar job results in each submit_result call, finalize then transform...
float64_t m_constant_multiplier
Implementation of independent jobs that solves one whole family of shifted systems in rational approx...
Abstract base class of the rational approximation of a function of a linear operator (A) times vector...
virtual CJobResultAggregator * submit_jobs(SGVector< float64_t > sample)
Abstract base class that provides an interface for computing an aggeregation of the job results of in...
SGVector< complex128_t > m_weights
Abstract base class that provides an abstract compute method for computing eigenvalues of a real valu...
all of classes and functions are contained in the shogun namespace
CLinearOperator< float64_t > * m_linear_operator
Abstract base class for solving multiple independent instances of CIndependentJob. It has one method, submit_job, which may add the job to an internal queue and might block if there is yet not space in the queue. After jobs are submitted, it might not yet be ready. wait_for_all waits until all jobs are completed, which must be called to guarantee that all jobs are finished.
virtual void submit_job(CIndependentJob *job)=0