10 #define EIGEN_NO_STATIC_ASSERT 19 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
36 MatrixType m2 = MatrixType::Random(rows,cols) +
Scalar(100) * MatrixType::Identity(rows,cols);
37 OtherMatrixType m3 = OtherMatrixType::Random(rows,cols) +
Scalar(200) * OtherMatrixType::Identity(rows,cols);
41 OtherMatrixType m3_copy = m3;
44 Scalar *d1=m1.data(), *
d2=m2.data();
48 if(MatrixType::SizeAtCompileTime==
Dynamic)
64 m1.swap(m2.block(0,0,rows,cols));
71 m1.transpose().swap(m3.transpose());
89 CALL_SUBTEST_1(
swap(Matrix3f()) );
90 CALL_SUBTEST_2(
swap(Matrix4d()) );
91 CALL_SUBTEST_3(
swap(MatrixXd(s,s)) );
92 CALL_SUBTEST_4(
swap(MatrixXf(s,s)) );
#define VERIFY_RAISES_ASSERT(a)
Matrix< _Scalar, _Rows, _Cols, _Options^RowMajor, _MaxRows, _MaxCols > type
#define VERIFY_IS_APPROX(a, b)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
#define EIGEN_TEST_MAX_SIZE
void swap(const MatrixType &m)
The matrix class, also used for vectors and row-vectors.