13 template<
int M1,
int M2,
int N1,
int N2>
17 MatrixXi m_dynamic(
M1+
M2, N1+N2);
24 MatrixXi matx11 = mat11, matx12 = mat12, matx21 = mat21, matx22 = mat22;
27 VERIFY_IS_EQUAL((m_fixed << mat11, mat12, mat21, matx22).finished(), (m_dynamic << mat11, matx12, mat21, matx22).finished());
32 VERIFY_IS_EQUAL((m_fixed << mat12, mat11, matx21, mat22).finished(), (m_dynamic << mat12, matx11, matx21, mat22).finished());
49 VERIFY_IS_EQUAL((m_fixed << mat11, mat12, mat11, mat11, mat21, mat21, mat22).finished(), (m_dynamic << mat12, mat22).finished());
58 template<
int depth,
int N=0>
72 test_blocks<(N>>6)&3, (
N>>4)&3, (
N>>2)&3,
N & 3>();
86 double data[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
89 m3 = Matrix3d::Random();
90 m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9;
97 m3 = Matrix3d::Random();
98 m3 << vec[0], vec[1], vec[2];
104 m3 = Matrix3d::Random();
105 m3 << vec[0].transpose(),
#define VERIFY_RAISES_ASSERT(a)
A matrix or vector expression mapping an existing array of data.
#define VERIFY_IS_APPROX(a, b)
#define VERIFY_IS_EQUAL(a, b)
#define CALL_SUBTEST_1(FUNC)
M1<< 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;Map< MatrixXf > M2(M1.data(), 6, 2)
Reference counting helper.
#define CALL_SUBTEST_2(FUNC)
The matrix class, also used for vectors and row-vectors.
Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > & setRandom(Index size)
EIGEN_DECLARE_TEST(commainitializer)