14 template<
typename MatrixType>
19 template<
typename MatrixType>
36 m1.computeInverseAndDetWithCheck(m2, det, invertible);
42 m1.computeInverseWithCheck(m2, invertible);
47 VectorType
v3 = VectorType::Random();
49 m3.computeInverseAndDetWithCheck(m4, det, invertible);
50 VERIFY( m1.rows()==1 ? invertible : !invertible );
52 m3.computeInverseWithCheck(m4, invertible);
53 VERIFY( m1.rows()==1 ? invertible : !invertible );
59 m5.topLeftCorner(m1.rows(),m1.rows()) = m1;
60 m2 = m5.template topLeftCorner<MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime>().
inverse();
61 VERIFY_IS_APPROX( (m5.template topLeftCorner<MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime>()), m2.inverse() );
77 identity = MatrixType::Identity(rows, rows);
95 if(MatrixType::RowsAtCompileTime>=2 && MatrixType::RowsAtCompileTime<=4)
108 template<
typename Scalar>
134 s = internal::random<int>(50,320);
141 s = internal::random<int>(25,100);
#define VERIFY_RAISES_ASSERT(a)
#define CALL_SUBTEST_6(FUNC)
#define CALL_SUBTEST_4(FUNC)
#define CALL_SUBTEST_3(FUNC)
#define CALL_SUBTEST_7(FUNC)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
#define VERIFY_IS_APPROX(a, b)
#define VERIFY_IS_EQUAL(a, b)
#define CALL_SUBTEST_1(FUNC)
void inverse_for_fixed_size(const MatrixType &, typename internal::enable_if< MatrixType::SizeAtCompileTime==Dynamic >::type *=0)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
#define CALL_SUBTEST_8(FUNC)
NumTraits< Scalar >::Real RealScalar
#define VERIFY_IS_MUCH_SMALLER_THAN(a, b)
void inverse(const MatrixType &m)
EIGEN_DECLARE_TEST(inverse)
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
#define CALL_SUBTEST_5(FUNC)
void createRandomPIMatrixOfRank(Index desired_rank, Index rows, Index cols, MatrixType &m)
#define CALL_SUBTEST_2(FUNC)
The matrix class, also used for vectors and row-vectors.
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
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > & setRandom(Index size)