Home | History | Annotate | Download | only in test

Lines Matching refs:nonzeroCoords

18 bool test_random_setter(SparseMatrix<Scalar,Options>& sm, const DenseType& ref, const std::vector<Vector2i>& nonzeroCoords)
23 std::vector<Vector2i> remaining = nonzeroCoords;
36 bool test_random_setter(DynamicSparseMatrix<T>& sm, const DenseType& ref, const std::vector<Vector2i>& nonzeroCoords)
39 std::vector<Vector2i> remaining = nonzeroCoords;
67 std::vector<Vector2i> nonzeroCoords;
68 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords);
70 if (zeroCoords.size()==0 || nonzeroCoords.size()==0)
82 m.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5);
83 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5);
92 // std::vector<Vector2i> remaining = nonzeroCoords;
103 VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdMapTraits> >(m,refMat,nonzeroCoords) ));
105 VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdUnorderedMapTraits> >(m,refMat,nonzeroCoords) ));
108 VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, GoogleDenseHashMapTraits> >(m,refMat,nonzeroCoords) ));
111 VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, GoogleSparseHashMapTraits> >(m,refMat,nonzeroCoords) ));