33 enum { Rows = MatrixType::RowsAtCompileTime,
Cols = MatrixType::ColsAtCompileTime };
40 for(
int i = 0; i < Rows; i++) for(int j = 0; j < Cols; j++) if(i>
j) r(
i,
j) =
Scalar(0);
60 int size = internal::random<int>(10,50);
63 m1 = MatrixType::Random(size,size);
69 m1 += a * a.adjoint();
73 m3 = MatrixType::Random(size,size);
79 for(
int i = 0; i < size; i++) m1(i,i) = internal::random<Scalar>();
80 RealScalar absdet =
abs(
m1.diagonal().prod());
115 CALL_SUBTEST_1( qr_invertible<MatrixXf>() );
116 CALL_SUBTEST_6( qr_invertible<MatrixXd>() );
117 CALL_SUBTEST_7( qr_invertible<MatrixXcf>() );
118 CALL_SUBTEST_8( qr_invertible<MatrixXcd>() );
121 CALL_SUBTEST_9(qr_verify_assert<Matrix3f>());
122 CALL_SUBTEST_10(qr_verify_assert<Matrix3d>());
123 CALL_SUBTEST_1(qr_verify_assert<MatrixXf>());
124 CALL_SUBTEST_6(qr_verify_assert<MatrixXd>());
125 CALL_SUBTEST_7(qr_verify_assert<MatrixXcf>());
126 CALL_SUBTEST_8(qr_verify_assert<MatrixXcd>());
HouseholderQR & compute(const EigenBase< InputType > &matrix)
#define VERIFY_RAISES_ASSERT(a)
HouseholderSequenceType householderQ() const
EIGEN_DEVICE_FUNC const LogReturnType log() const
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T maxi(const T &x, const T &y)
internal::enable_if< !(internal::is_same< typename Derived::Scalar, ScalarExponent >::value)&&EIGEN_SCALAR_BINARY_SUPPORTED(pow, typename Derived::Scalar, ScalarExponent), const EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(Derived, ScalarExponent, pow) >::type pow(const Eigen::ArrayBase< Derived > &x, const ScalarExponent &exponent)
#define VERIFY_IS_APPROX(a, b)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DEVICE_FUNC const Scalar & q
NumTraits< Scalar >::Real RealScalar
#define VERIFY_IS_MUCH_SMALLER_THAN(a, b)
#define EIGEN_TEST_MAX_SIZE
#define VERIFY_IS_UNITARY(a)
const Solve< HouseholderQR, Rhs > solve(const MatrixBase< Rhs > &b) const
MatrixType::RealScalar logAbsDeterminant() const
Jet< T, N > pow(const Jet< T, N > &f, double g)
The matrix class, also used for vectors and row-vectors.
MatrixType::RealScalar absDeterminant() const
void qr(const MatrixType &m)
const MatrixType & matrixQR() const