Go to the documentation of this file.
27 Rot2 Rot2::fromCosSin(
double c,
double s) {
40 uniform_real_distribution<double> randomAngle(-
M_PI,
M_PI);
41 double angle = randomAngle(
rng);
42 return fromAngle(angle);
47 cout <<
s <<
": " << theta() << endl;
51 bool Rot2::equals(
const Rot2&
R,
double tol)
const {
57 double scale = c_*c_ + s_*s_;
73 return Rot2::fromAngle(
v(0));
87 rvalue_ << c_, -s_, s_, c_;
92 Matrix2 Rot2::transpose()
const {
94 rvalue_ << c_, s_, -s_, c_;
103 if (H1) *H1 << -
q.y(),
q.x();
113 if (H1) *H1 <<
q.y(), -
q.x();
114 if (H2) *H2 = transpose();
125 return Rot2::fromCosSin(
x /
n,
y /
n);
127 if (
H) *
H << 0.0, 0.0;
133 Rot2 Rot2::ClosestTo(
const Matrix2&
M) {
135 const Matrix2&
U =
svd.matrixU();
136 const Matrix2&
V =
svd.matrixV();
138 Matrix2 M_prime = (
U *
Vector2(1, det).asDiagonal() *
V.transpose());
140 double c = M_prime(0, 0);
141 double s = M_prime(1, 0);
142 return Rot2::fromCosSin(
c,
s);
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 y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
EIGEN_STRONG_INLINE Packet4f print(const Packet4f &a)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static const double d[K][N]
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
cout<< "Here is the matrix m:"<< endl<< m<< endl;JacobiSVD< MatrixXf > svd(m, ComputeThinU|ComputeThinV)
void determinant(const MatrixType &m)
Pose2_ Expmap(const Vector3_ &xi)
static void normalize(Signature::Row &row)
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 y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics scale
EIGEN_DEVICE_FUNC const Scalar & q
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
AnnoyingScalar atan2(const AnnoyingScalar &y, const AnnoyingScalar &x)
Two-sided Jacobi SVD decomposition of a rectangular matrix.
Array< int, Dynamic, 1 > v
P unrotate(const T &r, const P &pt)
The matrix class, also used for vectors and row-vectors.
Jet< T, N > sqrt(const Jet< T, N > &f)
P rotate(const T &r, const P &pt)
Rot2 R(Rot2::fromAngle(0.1))
Matrix< RealScalar, Dynamic, Dynamic > M
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:13:08