gtsam
Loading...
Searching...
No Matches
Vector.h File Reference

typedef and functions to augment Eigen's VectorXd More...

Go to the source code of this file.

Namespaces

namespace  gtsam
 Global functions in a separate testing namespace.

Macros

#define MKL_BLAS   MKL_DOMAIN_BLAS

Typedefs

typedef Eigen::VectorXd gtsam::Vector
typedef Eigen::Matrix< double, 1, 1 > gtsam::Vector1
typedef Eigen::Vector2d gtsam::Vector2
typedef Eigen::Vector3d gtsam::Vector3
using gtsam::Vector4 = Eigen::Matrix<double, 4, 1>
using gtsam::Vector5 = Eigen::Matrix<double, 5, 1>
using gtsam::Vector6 = Eigen::Matrix<double, 6, 1>
using gtsam::Vector7 = Eigen::Matrix<double, 7, 1>
using gtsam::Vector8 = Eigen::Matrix<double, 8, 1>
using gtsam::Vector9 = Eigen::Matrix<double, 9, 1>
using gtsam::Vector10 = Eigen::Matrix<double, 10, 1>
using gtsam::Vector11 = Eigen::Matrix<double, 11, 1>
using gtsam::Vector12 = Eigen::Matrix<double, 12, 1>
using gtsam::Vector15 = Eigen::Matrix<double, 15, 1>
typedef Eigen::VectorBlock< Vector > gtsam::SubVector
typedef Eigen::VectorBlock< const Vector > gtsam::ConstSubVector

Functions

bool gtsam::fpEqual (double a, double b, double tol, bool check_relative_also=true)
 Ensure we are not including a different version of Eigen in user code than while compiling gtsam, since it can lead to hard-to-understand runtime crashes.
void gtsam::print (const Vector &v, const std::string &s, std::ostream &stream)
 print without optional string, must specify cout yourself
void gtsam::print (const Vector &v, const std::string &s="")
 print with optional string to cout
void gtsam::save (const Vector &A, const std::string &s, const std::string &filename)
 save a vector to file, which can be loaded by matlab
bool gtsam::equal_with_abs_tol (const Vector &vec1, const Vector &vec2, double tol=1e-9)
 VecA == VecB up to tolerance.
bool gtsam::equal_with_abs_tol (const SubVector &vec1, const SubVector &vec2, double tol)
bool gtsam::equal (const Vector &vec1, const Vector &vec2, double tol)
 Override of equal in Lie.h.
bool gtsam::equal (const Vector &vec1, const Vector &vec2)
 Override of equal in Lie.h.
bool gtsam::assert_equal (const Vector &vec1, const Vector &vec2, double tol=1e-9)
 Same, prints if error.
bool gtsam::assert_inequal (const Vector &vec1, const Vector &vec2, double tol=1e-9)
 Not the same, prints if error.
bool gtsam::assert_equal (const SubVector &vec1, const SubVector &vec2, double tol=1e-9)
 Same, prints if error.
bool gtsam::assert_equal (const ConstSubVector &expected, const ConstSubVector &actual, double tol)
bool gtsam::linear_dependent (const Vector &vec1, const Vector &vec2, double tol=1e-9)
 check whether two vectors are linearly dependent
Vector gtsam::ediv_ (const Vector &a, const Vector &b)
 elementwise division, but 0/0 = 0, not inf
template<class V1, class V2>
double gtsam::dot (const V1 &a, const V2 &b)
 Dot product.
pair< double, Vector > gtsam::house (const Vector &x)
 house(x,j) computes HouseHolder vector v and scaling factor beta from x, such that the corresponding Householder reflection zeroes out all but x.
double gtsam::houseInPlace (Vector &x)
 beta = house(x) computes the HouseHolder vector in place
pair< Vector, double > gtsam::weightedPseudoinverse (const Vector &v, const Vector &weights)
 Weighted Householder solution vector, a.k.a., the pseudoinverse of the column NOTE: if any sigmas are zero (indicating a constraint) the pseudoinverse will be a selection vector, and the variance will be zero.
double gtsam::weightedPseudoinverse (const Vector &a, const Vector &weights, Vector &pseudo)
Vector gtsam::concatVectors (const std::list< Vector > &vs)
 concatenate Vectors

Detailed Description

typedef and functions to augment Eigen's VectorXd

Author
Kai Ni
Frank Dellaert
Alex Hagiopol
Varun Agrawal
Fan Jiang