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());
43 VERIFY_IS_EQUAL((m_fixed << mat11, mat12, mat11, mat11, mat21, mat21, mat22).finished(), (m_dynamic << mat12, mat22).finished());
57 test_blocks<(N>>6)&3, (
N>>4)&3, (
N>>2)&3,
N & 3>();
79 double data[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
82 m3 = Matrix3d::Random();
83 m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9;
90 m3 = Matrix3d::Random();
91 m3 << vec[0], vec[1], vec[2];
97 m3 = Matrix3d::Random();
98 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)
M1<< 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;Map< MatrixXf > M2(M1.data(), 6, 2)
The matrix class, also used for vectors and row-vectors.
void test_commainitializer()
Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > & setRandom(Index size)