|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_MATH_METRICS_L2SQUARED_H
28 #define RL_MATH_METRICS_L2SQUARED_H
41 typedef typename T::size_type
Size;
50 auto first1 = begin(lhs);
51 auto last1 = end(lhs);
52 auto first2 = begin(rhs);
56 while (first1 != last1)
74 template<
typename Scalar,
int Rows,
int Options,
int MaxRows,
int MaxCols>
81 typedef ::Eigen::Matrix<Scalar, Rows, 1, Options, MaxRows, MaxCols>
Value;
85 return (lhs - rhs).squaredNorm();
95 template<
typename Scalar,
int Rows,
int Options,
int MaxRows,
int MaxCols>
102 typedef ::Eigen::Matrix<Scalar, Rows, 1, Options, MaxRows, MaxCols>*
Value;
106 return (*lhs - *rhs).squaredNorm();
116 template<
typename Scalar,
int Rows,
int Options,
int MaxRows,
int MaxCols>
123 typedef const ::Eigen::Matrix<Scalar, Rows, 1, Options, MaxRows, MaxCols>*
Value;
127 return (*lhs - *rhs).squaredNorm();
140 #endif // RL_MATH_METRICS_L2SQUARED_H
Distance operator()(const Distance &lhs, const Distance &rhs, const Size &index) const
Definition: L2Squared.h:88
::Eigen::Matrix< Real, ::Eigen::Dynamic, ::Eigen::Dynamic > Matrix
Definition: Matrix.h:42
::Eigen::Matrix< Scalar, Rows, 1, Options, MaxRows, MaxCols > * Value
Definition: L2Squared.h:102
Distance operator()(const Value &lhs, const Value &rhs) const
Definition: L2Squared.h:104
int Size
Definition: L2Squared.h:79
Distance operator()(const Value &lhs, const Value &rhs) const
Definition: L2Squared.h:125
Scalar Distance
Definition: L2Squared.h:119
T::value_type Distance
Definition: L2Squared.h:39
int Size
Definition: L2Squared.h:121
int Size
Definition: L2Squared.h:100
Distance operator()(const Distance &lhs, const Distance &rhs, const Size &index) const
Definition: L2Squared.h:67
T::size_type Size
Definition: L2Squared.h:41
Distance operator()(const Distance &lhs, const Distance &rhs, const Size &index) const
Definition: L2Squared.h:109
Scalar Distance
Definition: L2Squared.h:98
Definition: L2Squared.h:38
T Value
Definition: L2Squared.h:43
::Eigen::Matrix< Scalar, Rows, 1, Options, MaxRows, MaxCols > Value
Definition: L2Squared.h:81
Scalar Distance
Definition: L2Squared.h:77
Distance operator()(const Distance &lhs, const Distance &rhs, const Size &index) const
Definition: L2Squared.h:130
Distance operator()(const Value &lhs, const Value &rhs) const
Definition: L2Squared.h:83
Distance operator()(const Value &lhs, const Value &rhs) const
Definition: L2Squared.h:45
const ::Eigen::Matrix< Scalar, Rows, 1, Options, MaxRows, MaxCols > * Value
Definition: L2Squared.h:123
Robotics Library.
Definition: AnalogInput.cpp:30