Lines Matching refs:refV1
25 DenseVector refV1 = DenseVector::Random(rows), in sparse_vector() local
30 initSparse<Scalar>(densityVec, refV1, v1, &zerocoords, &nonzerocoords); in sparse_vector()
51 VERIFY(it.value()==refV1.coeff(it.index())); in sparse_vector()
54 VERIFY_IS_APPROX(v1, refV1); in sparse_vector()
57 refV1.coeffRef(nonzerocoords[0]) = Scalar(5); in sparse_vector()
58 VERIFY_IS_APPROX(v1, refV1); in sparse_vector()
60 VERIFY_IS_APPROX(v1+v2, refV1+refV2); in sparse_vector()
61 VERIFY_IS_APPROX(v1+v2+v3, refV1+refV2+refV3); in sparse_vector()
63 VERIFY_IS_APPROX(v1*s1-v2, refV1*s1-refV2); in sparse_vector()
65 VERIFY_IS_APPROX(v1*=s1, refV1*=s1); in sparse_vector()
66 VERIFY_IS_APPROX(v1/=s1, refV1/=s1); in sparse_vector()
68 VERIFY_IS_APPROX(v1+=v2, refV1+=refV2); in sparse_vector()
69 VERIFY_IS_APPROX(v1-=v2, refV1-=refV2); in sparse_vector()
71 VERIFY_IS_APPROX(v1.dot(v2), refV1.dot(refV2)); in sparse_vector()
72 VERIFY_IS_APPROX(v1.dot(refV2), refV1.dot(refV2)); in sparse_vector()
74 VERIFY_IS_APPROX(v1.dot(m1*v2), refV1.dot(refM1*refV2)); in sparse_vector()
76 VERIFY_IS_APPROX(v1.dot(m1.col(i)), refV1.dot(refM1.col(i))); in sparse_vector()
79 VERIFY_IS_APPROX(v1.squaredNorm(), refV1.squaredNorm()); in sparse_vector()
81 VERIFY_IS_APPROX(v1.blueNorm(), refV1.blueNorm()); in sparse_vector()
84 VERIFY_IS_APPROX((v1 = -v1), (refV1 = -refV1)); in sparse_vector()
85 VERIFY_IS_APPROX((v1 = v1.transpose()), (refV1 = refV1.transpose().eval())); in sparse_vector()
86 VERIFY_IS_APPROX((v1 += -v1), (refV1 += -refV1)); in sparse_vector()