Go to the documentation of this file.
14 template<
typename MatrixType>
19 template<
typename MatrixType>
36 m1.computeInverseAndDetWithCheck(
m2, det, invertible);
42 m1.computeInverseWithCheck(
m2, invertible);
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_IS_MUCH_SMALLER_THAN(a, b)
EIGEN_DECLARE_TEST(inverse)
Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > & setRandom(Index size)
#define VERIFY_IS_EQUAL(a, b)
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
void inverse(const MatrixType &m)
#define VERIFY_RAISES_ASSERT(a)
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
#define CALL_SUBTEST_4(FUNC)
#define CALL_SUBTEST_3(FUNC)
#define CALL_SUBTEST_1(FUNC)
void createRandomPIMatrixOfRank(Index desired_rank, Index rows, Index cols, MatrixType &m)
#define CALL_SUBTEST_5(FUNC)
#define CALL_SUBTEST_6(FUNC)
#define CALL_SUBTEST_2(FUNC)
#define VERIFY_IS_APPROX(a, b)
NumTraits< Scalar >::Real RealScalar
static const DiscreteKey m3(M(3), 2)
void inverse_for_fixed_size(const MatrixType &, typename internal::enable_if< MatrixType::SizeAtCompileTime==Dynamic >::type *=0)
The matrix class, also used for vectors and row-vectors.
#define CALL_SUBTEST_7(FUNC)
#define CALL_SUBTEST_8(FUNC)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:42