mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* remove set(), revert to old behavior where = resizes
* try to be clever in matrix ctors and operator=: be lazy when we can, always allow to copy rowvector into columnvector, check the template parameters, try to factor the code better * add missing copy ctor in UnalignedType * fix bug in the traits of DiagonalProduct * renaming: EIGEN_TUNE_FOR_CPU_CACHE_SIZE * update the dox a little
This commit is contained in:
@@ -95,19 +95,9 @@ template<typename MatrixType> void basicStuff(const MatrixType& m)
|
||||
VERIFY_RAISES_ASSERT(m1 = (m2.block(0,0, rows-1, cols-1)));
|
||||
}
|
||||
|
||||
// test set
|
||||
{
|
||||
VERIFY_IS_APPROX(m3.set(m1),m1);
|
||||
MatrixType m4, m5;
|
||||
VERIFY_IS_APPROX(m4.set(m1),m1);
|
||||
if (MatrixType::RowsAtCompileTime==Dynamic && MatrixType::ColsAtCompileTime==Dynamic)
|
||||
{
|
||||
MatrixType m6(rows+1,cols);
|
||||
VERIFY_RAISES_ASSERT(m5 = m1);
|
||||
VERIFY_RAISES_ASSERT(m3 = m5);
|
||||
VERIFY_RAISES_ASSERT(m3 = m6);
|
||||
}
|
||||
}
|
||||
VERIFY_IS_APPROX(m3 = m1,m1);
|
||||
MatrixType m4;
|
||||
VERIFY_IS_APPROX(m4 = m1,m1);
|
||||
|
||||
// test swap
|
||||
m3 = m1;
|
||||
|
||||
Reference in New Issue
Block a user