27 class GaussianFactorGraph;
31 struct PreconditionerParameters;
39 typedef boost::shared_ptr<PCGSolverParameters>
shared_ptr;
44 void print(std::ostream &
os)
const override;
48 return *preconditioner_;
52 void print(
const std::string &
s)
const;
56 void setPreconditionerParams(
const boost::shared_ptr<PreconditionerParameters> preconditioner);
94 const std::map<Key, Vector> &
lambda);
void print(const Matrix &A, const string &s, ostream &stream)
void scal(const double alpha, Vector &x) const
static enum @843 ordering
boost::shared_ptr< PCGSolver > shared_ptr
const Preconditioner & preconditioner_
boost::shared_ptr< PreconditionerParameters > preconditioner_
const PreconditionerParameters & preconditioner() const
vector< size_t > dimensions(L.begin(), L.end())
const std::map< Key, Vector > & lambda_
Implementation of Conjugate Gradient solver for a linear system.
double dot(const Vector &x, const Vector &y) const
Point3 optimize(const NonlinearFactorGraph &graph, const Values &values, Key landmarkKey)
cout<< "The eigenvalues of A are:"<< endl<< ces.eigenvalues()<< endl;cout<< "The matrix of eigenvectors, V, is:"<< endl<< ces.eigenvectors()<< endl<< endl;complex< float > lambda
ofstream os("timeSchurFactors.csv")
boost::shared_ptr< PCGSolverParameters > shared_ptr
const GaussianFactorGraph & gfg_
PCGSolverParameters parameters_
ConjugateGradientParameters Base
boost::shared_ptr< Preconditioner > preconditioner_
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
void axpy(const double alpha, const Vector &x, Vector &y) const
GTSAM_EXPORT VectorValues optimize(const GaussianFactorGraph &gfg, boost::optional< const KeyInfo & >=boost::none, boost::optional< const std::map< Key, Vector > & > lambda=boost::none)
VectorValues buildVectorValues(const Vector &v, const Ordering &ordering, const map< Key, size_t > &dimensions)
Create VectorValues from a Vector.