Searched refs:Ref (Results 1 - 8 of 8) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_eigen.cpp57 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 Dgmock_output_test_.cc47 using testing::Ref;
184 EXPECT_CALL(foo_, Bar(Ref(s), _, Ge(0)));
H A Dgmock-generated-matchers_test.cc77 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 Dgmock-generated-function-mockers_test.cc70 using testing::Ref;
236 EXPECT_CALL(mock_foo_, TakesNonConstReference(Ref(a)))
245 EXPECT_CALL(mock_foo_, TakesConstReference(Ref(a)))
H A Dgmock_link_test.h72 // Ref
162 using testing::Ref;
519 // Tests the linkage of the Ref matcher.
524 ON_CALL(mock, VoidFromIntRef(Ref(a))).WillByDefault(Return());
H A Dgmock-matchers_test.cc124 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 Deigen.h48 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 Dgmock-matchers.h1015 // 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