Go to the documentation of this file.
21 for (
int i=0;
i<=20; ++
i) {
28 std::cout <<
"test2dRotation: i = " <<
i <<
" error powerm = " <<
relerr(
C,
B) <<
'\n';
40 A << ch, ish, -ish, ch;
43 for (
int i=0;
i<=20; ++
i) {
44 angle = std::ldexp(
static_cast<T>(
i-10), -1);
46 ish = std::complex<T>(0,
std::sinh(angle));
47 B << ch, ish, -ish, ch;
50 std::cout <<
"test2dHyperbolicRotation: i = " <<
i <<
" error powerm = " <<
relerr(
C,
B) <<
'\n';
61 for (
int i=0;
i<=20; ++
i) {
69 template<
typename MatrixType>
80 x = internal::random<RealScalar>();
81 y = internal::random<RealScalar>();
86 m5.noalias() =
m2 *
m3;
99 template<
typename MatrixType>
107 typedef typename internal::conditional<IsComplex, TriangularView<MatrixType,Upper>,
const MatrixType&>
::type TriangularType;
132 template<
typename MatrixType>
144 x = internal::random<Scalar>();
Matrix< SCALARB, Dynamic, Dynamic, opt_B > B
void test2dRotation(const T &tol)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Jet< T, N > sin(const Jet< T, N > &f)
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
Represents a 3D rotation as a rotation angle around an arbitrary 3D axis.
Matrix< long double, Dynamic, Dynamic > MatrixXe
EIGEN_DECLARE_TEST(matrix_power)
Eigen::Triplet< double > T
EIGEN_DEVICE_FUNC bool isApprox(const Scalar &x, const Scalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
#define CALL_SUBTEST_11(FUNC)
#define CALL_SUBTEST_9(FUNC)
Jet< T, N > cos(const Jet< T, N > &f)
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
const EIGEN_DEVICE_FUNC CoshReturnType cosh() const
#define CALL_SUBTEST_4(FUNC)
#define CALL_SUBTEST_3(FUNC)
#define CALL_SUBTEST_1(FUNC)
Derived::RealScalar relerr(const MatrixBase< Derived > &A, const MatrixBase< OtherDerived > &B)
#define CALL_SUBTEST_10(FUNC)
void testGeneral(const MatrixType &m, const typename MatrixType::RealScalar &tol)
Class for computing matrix powers.
#define CALL_SUBTEST_5(FUNC)
Jet< T, N > pow(const Jet< T, N > &f, double g)
#define CALL_SUBTEST_6(FUNC)
#define CALL_SUBTEST_2(FUNC)
ComplexSchur< MatrixXcf > schur(4)
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
NumTraits< Scalar >::Real RealScalar
Matrix< double, 3, 3, RowMajor > Matrix3dRowMajor
static void run(MatrixType &, MatrixType &, const MatrixType &)
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_pow_op< typename Derived::Scalar, typename ExponentDerived::Scalar >, const Derived, const ExponentDerived > pow(const Eigen::ArrayBase< Derived > &x, const Eigen::ArrayBase< ExponentDerived > &exponents)
static const DiscreteKey m3(M(3), 2)
Matrix< Scalar, Dynamic, Dynamic > C
void test3dRotation(const T &tol)
#define CALL_SUBTEST_12(FUNC)
Array< int, Dynamic, 1 > v
void test2dHyperbolicRotation(const T &tol)
The matrix class, also used for vectors and row-vectors.
void testLogThenExp(const MatrixType &m_const, const typename MatrixType::RealScalar &tol)
void testSingular(const MatrixType &m_const, const typename MatrixType::RealScalar &tol)
const EIGEN_DEVICE_FUNC SinhReturnType sinh() const
#define CALL_SUBTEST_7(FUNC)
#define CALL_SUBTEST_8(FUNC)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Matrix< long double, 3, 3 > Matrix3e
gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:33:37