Searched refs:Ref (Results 1 - 8 of 8) sorted by relevance
/gem5/ext/pybind11/tests/ |
H A D | test_eigen.cpp | 57 double get_elem(Eigen::Ref<const Eigen::MatrixXd> m) { return m(2, 1); }; 102 // Different ways of passing via Eigen::Ref; the first and second are the Eigen-recommended 103 m.def("cholesky1", [](Eigen::Ref<MatrixXdR> x) -> Eigen::MatrixXd { return x.llt().matrixL(); }); 104 m.def("cholesky2", [](const Eigen::Ref<const MatrixXdR> &x) -> Eigen::MatrixXd { return x.llt().matrixL(); }); 105 m.def("cholesky3", [](const Eigen::Ref<MatrixXdR> &x) -> Eigen::MatrixXd { return x.llt().matrixL(); }); 106 m.def("cholesky4", [](Eigen::Ref<const MatrixXdR> x) -> Eigen::MatrixXd { return x.llt().matrixL(); }); 113 auto add_rm = [](Eigen::Ref<MatrixXdR> x, int r, int c, double v) { x(r,c) += v; }; 114 auto add_cm = [](Eigen::Ref<Eigen::MatrixXd> x, int r, int c, double v) { x(r,c) += v; }; 128 m.def("get_cm_ref", []() { return Eigen::Ref<Eigen::MatrixXd>(get_cm()); }); 129 m.def("get_rm_ref", []() { return Eigen::Ref<MatrixXd [all...] |
/gem5/ext/googletest/googlemock/test/ |
H A D | gmock_output_test_.cc | 47 using testing::Ref; 184 EXPECT_CALL(foo_, Bar(Ref(s), _, Ge(0)));
|
H A D | gmock-generated-matchers_test.cc | 77 using testing::Ref; 479 EXPECT_THAT(v, ElementsAre(Ref(v[0]), Ref(v[1]), Ref(v[2]))); 480 EXPECT_THAT(v, Not(ElementsAre(Ref(v[0]), Ref(v[1]), Ref(a[2]))));
|
H A D | gmock-generated-function-mockers_test.cc | 70 using testing::Ref; 236 EXPECT_CALL(mock_foo_, TakesNonConstReference(Ref(a))) 245 EXPECT_CALL(mock_foo_, TakesConstReference(Ref(a)))
|
H A D | gmock_link_test.h | 72 // Ref 162 using testing::Ref; 519 // Tests the linkage of the Ref matcher. 524 ON_CALL(mock, VoidFromIntRef(Ref(a))).WillByDefault(Return());
|
H A D | gmock-matchers_test.cc | 124 using testing::Ref; 705 Matcher<Base&> m3 = Ref(d); 714 Matcher<const int&> m1 = Ref(n); 1112 // Tests that Ref(variable) matches an argument that references 1117 Matcher<int&> m = Ref(a); 1122 // Tests that Ref(variable) describes itself properly. 1125 Matcher<int&> m = Ref(n); 1131 // Test that Ref(non_const_varialbe) can be used as a matcher for a 1136 Matcher<const int&> m = Ref(a); 1141 // Tests that Ref(variabl [all...] |
/gem5/ext/pybind11/include/pybind11/ |
H A D | eigen.h | 48 template <typename MatrixType> using EigenDRef = Eigen::Ref<MatrixType, 0, EigenDStride>; 59 // Matches Eigen::Map, Eigen::Ref, blocks, etc: 114 struct eigen_extract_stride<Eigen::Ref<PlainObjectType, Options, StrideType>> { using type = StrideType; }; 199 // For a reference type (e.g. Ref<MatrixXd>) we have other constraints that might need to be 381 pybind11_fail("Invalid return_value_policy for Eigen Map/Ref/Block type"); 399 // Loader for Ref<...> arguments. See the documentation for info on how to make this work without 403 Eigen::Ref<PlainObjectType, 0, StrideType>, 404 enable_if_t<is_eigen_dense_map<Eigen::Ref<PlainObjectType, 0, StrideType>>::value> 405 > : public eigen_map_caster<Eigen::Ref<PlainObjectType, 0, StrideType>> { 407 using Type = Eigen::Ref<PlainObjectTyp [all...] |
/gem5/ext/googletest/googlemock/include/gmock/ |
H A D | gmock-matchers.h | 1015 // Ref(variable) matches any argument that is a reference to 1019 // The RefMatcher template class implements Ref(variable). It can 1021 // from mistakenly using Ref(x) to match a non-reference function 1026 // Matcher<int> m1 = Ref(n); // This won't compile. 1027 // Matcher<int&> m2 = Ref(n); // This will compile. 1040 // compiler to catch using Ref(const_value) as a matcher for a 1048 // this catches using Ref(const_value) as a matcher for a 1805 // Matches(Ref(n))(x)). 3809 inline internal::RefMatcher<T&> Ref(T& x) { // NOLINT function in namespace:testing
|
Completed in 55 milliseconds