25 #define MKL_BLAS MKL_DOMAIN_BLAS 50 #define GTSAM_MAKE_VECTOR_DEFS(N) \ 51 using Vector##N = Eigen::Matrix<double, N, 1>; \ 52 static const Eigen::MatrixBase<Vector##N>::ConstantReturnType Z_##N##x1 = Vector##N::Zero(); 73 #if defined(GTSAM_EIGEN_VERSION_WORLD) 77 "Error: GTSAM was built against a different version of Eigen");
96 GTSAM_EXPORT
bool fpEqual(
double a,
double b,
double tol,
97 bool check_relative_also =
true);
102 GTSAM_EXPORT
void print(
const Vector&
v,
const std::string&
s, std::ostream&
stream);
107 GTSAM_EXPORT
void print(
const Vector&
v,
const std::string&
s =
"");
112 GTSAM_EXPORT
void save(
const Vector&
A,
const std::string &
s,
const std::string&
filename);
117 GTSAM_EXPORT
bool operator==(
const Vector&
vec1,
const Vector& vec2);
135 inline bool equal(
const Vector&
vec1,
const Vector& vec2,
double tol) {
142 inline bool equal(
const Vector&
vec1,
const Vector& vec2) {
162 GTSAM_EXPORT
bool assert_inequal(
const Vector& vec1,
const Vector& vec2,
double tol=1
e-9);
171 GTSAM_EXPORT
bool assert_equal(
const SubVector& vec1,
const SubVector& vec2,
double tol=1
e-9);
172 GTSAM_EXPORT
bool assert_equal(
const ConstSubVector& vec1,
const ConstSubVector& vec2,
double tol=1
e-9);
189 GTSAM_EXPORT Vector
ediv_(
const Vector &
a,
const Vector &
b);
194 template<
class V1,
class V2>
195 inline double dot(
const V1 &a,
const V2& b) {
196 assert (b.size()==a.size());
201 template<
class V1,
class V2>
203 assert (b.size()==a.size());
212 GTSAM_EXPORT std::pair<double,Vector>
house(
const Vector &
x);
227 GTSAM_EXPORT std::pair<Vector, double>
240 GTSAM_EXPORT Vector
concatVectors(
const std::list<Vector>& vs);
void print(const Matrix &A, const string &s, ostream &stream)
Generic expression of a matrix where all coefficients are defined by a functor.
void save(const Matrix &A, const string &s, const string &filename)
double weightedPseudoinverse(const Vector &a, const Vector &weights, Vector &pseudo)
static const Eigen::MatrixBase< Vector3 >::ConstantReturnType Z_3x1
double dot(const V1 &a, const V2 &b)
Vector ediv_(const Vector &a, const Vector &b)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Namespace containing all symbols from the Eigen library.
bool operator==(const Matrix &A, const Matrix &B)
bool greaterThanOrEqual(const Vector &vec1, const Vector &vec2)
Included from all GTSAM files.
bool linear_dependent(const Matrix &A, const Matrix &B, double tol)
bool fpEqual(double a, double b, double tol, bool check_relative_also)
Expression of a fixed-size or dynamic-size sub-vector.
pair< double, Vector > house(const Vector &x)
bool assert_inequal(const Matrix &A, const Matrix &B, double tol)
#define EIGEN_WORLD_VERSION
Array< int, Dynamic, 1 > v
Array< double, 1, 3 > e(1./3., 0.5, 2.)
bool equal_with_abs_tol(const Eigen::DenseBase< MATRIX > &A, const Eigen::DenseBase< MATRIX > &B, double tol=1e-9)
Eigen::Matrix< double, 1, 1 > Vector1
#define EIGEN_MAJOR_VERSION
double houseInPlace(Vector &v)
double inner_prod(const V1 &a, const V2 &b)
The matrix class, also used for vectors and row-vectors.
bool equal(const T &obj1, const T &obj2, double tol)
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
Vector concatVectors(const std::list< Vector > &vs)
static const Eigen::MatrixBase< Vector2 >::ConstantReturnType Z_2x1
#define GTSAM_MAKE_VECTOR_DEFS(N)