Home
last modified time | relevance | path

Searched refs:refV1 (Results 1 – 2 of 2) sorted by relevance

/external/eigen/test/
Dsparse_vector.cpp25 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()
[all …]
/external/eigen/test/eigen2/
Deigen2_sparse_vector.cpp25 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()
[all …]