Errors.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
18 // \callgraph
19 
20 #pragma once
21 
22 #include <gtsam/base/FastList.h>
23 #include <gtsam/base/Vector.h>
24 #include <gtsam/base/Testable.h>
25 
26 #include <string>
27 
28 namespace gtsam {
29 
30  // Forward declarations
31  class VectorValues;
32 
34  class Errors : public FastList<Vector> {
35 
36  public:
37 
38  GTSAM_EXPORT Errors() ;
39 
41  GTSAM_EXPORT Errors(const VectorValues&V);
42 
44  GTSAM_EXPORT void print(const std::string& s = "Errors") const;
45 
47  GTSAM_EXPORT bool equals(const Errors& expected, double tol=1e-9) const;
48 
50  GTSAM_EXPORT Errors operator+(const Errors& b) const;
51 
53  GTSAM_EXPORT Errors operator-(const Errors& b) const;
54 
56  GTSAM_EXPORT Errors operator-() const ;
57 
58  }; // Errors
59 
63  GTSAM_EXPORT double dot(const Errors& a, const Errors& b);
64 
68  template <>
69  GTSAM_EXPORT void axpy<Errors,Errors>(double alpha, const Errors& x, Errors& y);
70 
72  GTSAM_EXPORT void print(const Errors& a, const std::string& s = "Error");
73 
75  template<>
76  struct traits<Errors> : public Testable<Errors> {
77  };
78 
79 } //\ namespace gtsam
A thin wrapper around std::list that uses boost&#39;s fast_pool_allocator.
Scalar * y
Concept check for values that can be used in unit tests.
double dot(const V1 &a, const V2 &b)
Definition: Vector.h:194
Matrix expected
Definition: testMatrix.cpp:974
GTSAM_EXPORT Errors()
Definition: Errors.cpp:29
Array33i a
RealScalar alpha
Array< double, 1, 3 > e(1./3., 0.5, 2.)
RealScalar s
const G & b
Definition: Group.h:83
traits
Definition: chartTesting.h:28
typedef and functions to augment Eigen&#39;s VectorXd
GTSAM_EXPORT bool equals(const Errors &expected, double tol=1e-9) const
Definition: Errors.cpp:54
void axpy< Errors, Errors >(double alpha, const Errors &x, Errors &y)
Definition: Errors.cpp:114
GTSAM_EXPORT Errors operator+(const Errors &b) const
Definition: Errors.cpp:60
GTSAM_EXPORT void print(const std::string &s="Errors") const
Definition: Errors.cpp:39
const G double tol
Definition: Group.h:83
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
GTSAM_EXPORT Errors operator-() const
Definition: Errors.cpp:89


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:02