Home | History | Annotate | Download | only in test

Lines Matching defs:nonzeroCoords

18 bool test_random_setter(SparseMatrix<Scalar,Options>& sm, const DenseType& ref, const std::vector<Vector2i>& nonzeroCoords)
24 std::vector<Vector2i> remaining = nonzeroCoords;
37 bool test_random_setter(DynamicSparseMatrix<T>& sm, const DenseType& ref, const std::vector<Vector2i>& nonzeroCoords)
40 std::vector<Vector2i> remaining = nonzeroCoords;
69 std::vector<Vector2i> nonzeroCoords;
70 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords);
72 if (zeroCoords.size()==0 || nonzeroCoords.size()==0)
84 m.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5);
85 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5);
94 // std::vector<Vector2i> remaining = nonzeroCoords;
105 VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdMapTraits> >(m,refMat,nonzeroCoords) ));
107 VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdUnorderedMapTraits> >(m,refMat,nonzeroCoords) ));
110 VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, GoogleDenseHashMapTraits> >(m,refMat,nonzeroCoords) ));
113 VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, GoogleSparseHashMapTraits> >(m,refMat,nonzeroCoords) ));