14 template<
typename MatrixType,
typename JacobiScalar>
21 RowsAtCompileTime = MatrixType::RowsAtCompileTime,
22 ColsAtCompileTime = MatrixType::ColsAtCompileTime
29 JacobiVector
v = JacobiVector::Random().normalized();
30 JacobiScalar
c = v.x(),
s = v.y();
34 Index p = internal::random<Index>(0, rows-1);
37 q = internal::random<Index>(0, rows-1);
41 b.applyOnTheLeft(p, q, rot);
47 Index p = internal::random<Index>(0, cols-1);
50 q = internal::random<Index>(0, cols-1);
54 b.applyOnTheRight(p, q, rot);
int EIGEN_BLAS_FUNC() rot(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar *pc, RealScalar *ps)
#define CALL_SUBTEST_6(FUNC)
#define CALL_SUBTEST_4(FUNC)
#define CALL_SUBTEST_3(FUNC)
Rotation given by a cosine-sine pair.
AnnoyingScalar conj(const AnnoyingScalar &x)
#define VERIFY_IS_APPROX(a, b)
#define CALL_SUBTEST_1(FUNC)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Array< int, Dynamic, 1 > v
void jacobi(const MatrixType &m=MatrixType())
EIGEN_DEVICE_FUNC const Scalar & q
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
#define CALL_SUBTEST_5(FUNC)
#define EIGEN_TEST_MAX_SIZE
EIGEN_DECLARE_TEST(jacobi)
#define CALL_SUBTEST_2(FUNC)
The matrix class, also used for vectors and row-vectors.