22#include "testing/testing.h"
30 typedef Vec4 FMatrixType;
31 typedef Vec3 XMatrixType;
33 double x1 = x.x() - 2;
34 double y1 = x.y() - 5;
37 fx << x1 * x1 + z1 * z1, y1 * y1 + z1 * z1, z1 * z1, x1 * x1;
44 x << 0.76026643, -30.01799744, 0.55192142;
51 expected_min_x << 2, 5, 0;
53 EXPECT_MATRIX_NEAR(expected_min_x, x, 1
e-5);
60 typedef Vec2 FMatrixType;
61 typedef Vec2 XMatrixType;
64 double x2 = 10 *
x(0) / (
x(0) + 0.1) + 2 *
x(1) *
x(1);
73 JF32(
const F32& f) { (void)f; }
76 J << 1, 0, 1. /
pow(
x(0) + 0.1, 2), 4 *
x(1) *
x(1);
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
pow(value.r - subtrahend, 2.0)") .do_static_compilation(true)
TEST(PolynomialCameraIntrinsics2, ApplyOnFocalCenter)
Eigen::Matrix< double, 2, 2 > Mat2