mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix bug #607: handle implicit transposition from sparse vector to dense vector
This commit is contained in:
@@ -90,6 +90,11 @@ template<typename Scalar> void sparse_vector(int rows, int cols)
|
||||
VERIFY_IS_APPROX((mv1=v1),v1);
|
||||
VERIFY_IS_APPROX(mv1,(v1=mv1));
|
||||
VERIFY_IS_APPROX(mv1,(v1=mv1.transpose()));
|
||||
|
||||
// check copy to dense vector with transpose
|
||||
refV3.resize(0);
|
||||
VERIFY_IS_APPROX(refV3 = v1.transpose(),v1.toDense());
|
||||
VERIFY_IS_APPROX(DenseVector(v1),v1.toDense());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user