Home
last modified time | relevance | path

Searched refs:pmf (Results 1 – 25 of 76) sorted by relevance

1234

/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Ddirichlet_multinomial_test.py119 pmf = dist.prob(counts)
120 self.assertAllClose(1 / 3., self.evaluate(pmf))
121 self.assertEqual((), pmf.get_shape())
131 pmf = dist.prob(counts)
132 self.assertAllClose(1 / 7., self.evaluate(pmf))
133 self.assertEqual((), pmf.get_shape())
143 pmf = dist.prob(counts)
144 self.assertAllClose([[1 / 7., 1 / 7., 1 / 7.]] * 4, self.evaluate(pmf))
145 self.assertEqual((4, 3), pmf.get_shape())
154 pmf = dist.prob(counts)
[all …]
Dmultinomial_test.py138 pmf = multinomial.Multinomial(total_count=1., probs=p).prob(counts)
139 self.assertAllClose(0.5, self.evaluate(pmf))
140 self.assertEqual((), pmf.get_shape())
148 pmf = dist.prob(counts)
150 self.assertAllClose(81. / 10000, self.evaluate(pmf))
151 self.assertEqual((), pmf.get_shape())
157 pmf = multinomial.Multinomial(total_count=1., probs=p).prob(counts)
158 self.assertAllClose([0.1, 0.9], self.evaluate(pmf))
159 self.assertEqual((2), pmf.get_shape())
165 pmf = multinomial.Multinomial(total_count=1., probs=p).prob(counts)
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dbuiltin-ptrtomember-overload-1.cpp25 void foo(C c, int A::* pmf) { in foo() argument
26 int i = c->*pmf; in foo()
37 void foo1(C1 c1, int A::* pmf) { in foo1() argument
38 int i = c1->*pmf; in foo1()
39 c1->*pmf = 10; in foo1()
42 void foo1(C1 c1, int E::* pmf) { in foo1() argument
43 int i = c1->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \ in foo1()
Doverloaded-builtin-operators.cpp31 typedef void (X::*pmf)(); typedef
33 operator pmf();
40 void f(Short s, Long l, Enum1 e1, Enum2 e2, Xpmf pmf) { in f() argument
54 (void)(pmf == &X::f); in f()
55 (void)(pmf == 0); in f()
88 operator pmf&();
116 pmf &pmr = (pmf_ref = &X::f); // expected-error{{no viable overloaded '='}} in g()
117 pmf pmr2; in g()
Dbuiltin-ptrtomember-overload.cpp15 void foo(C c, B b, int A::* pmf) { in foo() argument
16 int j = c->*pmf; in foo()
17 int i = b->*pmf; in foo()
Dbuiltin-ptrtomember-ambig.cpp19 void foo(C c, int A::* pmf) { in foo() argument
20 int i = c->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \ in foo()
Dnullptr.cpp26 void (A::*pmf)() = nullptr; in f() local
27 pmf = null; in f()
175 template<int (*fp)(int), int* p, int A::* pmd, int (A::*pmf)(int)>
/external/clang/test/SemaCXX/
Dbuiltin-ptrtomember-overload-1.cpp25 void foo(C c, int A::* pmf) { in foo() argument
26 int i = c->*pmf; in foo()
37 void foo1(C1 c1, int A::* pmf) { in foo1() argument
38 int i = c1->*pmf; in foo1()
39 c1->*pmf = 10; in foo1()
42 void foo1(C1 c1, int E::* pmf) { in foo1() argument
43 int i = c1->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \ in foo1()
Doverloaded-builtin-operators.cpp31 typedef void (X::*pmf)(); typedef
33 operator pmf();
40 void f(Short s, Long l, Enum1 e1, Enum2 e2, Xpmf pmf) { in f() argument
54 (void)(pmf == &X::f); in f()
55 (void)(pmf == 0); in f()
80 operator pmf&();
102 pmf &pmr = (pmf_ref = &X::f); // expected-error{{no viable overloaded '='}} in g()
103 pmf pmr2; in g()
Dbuiltin-ptrtomember-overload.cpp15 void foo(C c, B b, int A::* pmf) { in foo() argument
16 int j = c->*pmf; in foo()
17 int i = b->*pmf; in foo()
Dbuiltin-ptrtomember-ambig.cpp19 void foo(C c, int A::* pmf) { in foo() argument
21 int i = c->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \ in foo()
Dnullptr.cpp26 void (A::*pmf)() = nullptr; in f() local
27 pmf = null; in f()
175 template<int (*fp)(int), int* p, int A::* pmd, int (A::*pmf)(int)>
/external/llvm-project/clang/test/CXX/expr/expr.mptr.oper/
Dp6-0x.cpp15 void test(X *xp, int (X::*pmf)(int), int (X::*l_pmf)(int) &, in test()
18 (lvalue<X>().*pmf)(17); in test()
19 (xvalue<X>().*pmf)(17); in test()
20 (prvalue<X>().*pmf)(17); in test()
21 (xp->*pmf)(17); in test()
/external/clang/test/CXX/expr/expr.mptr.oper/
Dp6-0x.cpp15 void test(X *xp, int (X::*pmf)(int), int (X::*l_pmf)(int) &, in test()
18 (lvalue<X>().*pmf)(17); in test()
19 (xvalue<X>().*pmf)(17); in test()
20 (prvalue<X>().*pmf)(17); in test()
21 (xp->*pmf)(17); in test()
/external/llvm-project/clang/test/CodeGenCXX/
Dmember-function-pointers.cpp92 bool (A::*pmf)(int*) const; member
95 B1() : pmf(&A::foo), pa(&a) {} in B1()
96 bool operator()() const { return (pa->*pmf)(new int); } in operator ()()
213 typedef int (X::*pmf)(int); typedef
216 pmf f() { in f()
218 return pmf(); in f()
Dptr-to-member-function.cpp49 bool (A::*pmf)(int*) const; member
51 B1(int i) : pmf(&A::foo), im(i) { in B1()
52 ((A*)this->*pmf)(&im); in B1()
Dreference-cast.cpp105 typedef int (X::*pmf)(int); typedef
108 pmf get_pointer_to_member_function();
/external/clang/test/CodeGenCXX/
Dmember-function-pointers.cpp92 bool (A::*pmf)(int*) const; member
95 B1() : pmf(&A::foo), pa(&a) {} in B1()
96 bool operator()() const { return (pa->*pmf)(new int); } in operator ()()
213 typedef int (X::*pmf)(int); typedef
216 pmf f() { in f()
218 return pmf(); in f()
Dptr-to-member-function.cpp49 bool (A::*pmf)(int*) const; member
51 B1(int i) : pmf(&A::foo), im(i) { in B1()
52 ((A*)this->*pmf)(&im); in B1()
Dreference-cast.cpp105 typedef int (X::*pmf)(int); typedef
108 pmf get_pointer_to_member_function();
/external/llvm-project/clang/test/SemaObjCXX/
Darc-memfunc.mm13 id (X0::*pmf)() __attribute__((ns_returns_retained)) = &X0::makeObject2;
14 (x0.*pmf)();
15 (x0p->*pmf)();
/external/clang/test/SemaObjCXX/
Darc-memfunc.mm13 id (X0::*pmf)() __attribute__((ns_returns_retained)) = &X0::makeObject2;
14 (x0.*pmf)();
15 (x0p->*pmf)();
/external/llvm-project/clang/test/CXX/drs/
Ddr118.cpp11 void (S::*pmf)(); variable
22 (sp->*pmf)(); // 4: polymorphic in g()
/external/clang/test/CXX/temp/temp.arg/temp.arg.nontype/
Dp1-11.cpp46 template<int (X::*pmf)(int)> struct PMF { // expected-note 2 {{template parameter is declared here}}
47 PMF<pmf> *pmf2;
/external/llvm-project/clang/test/CXX/temp/temp.arg/temp.arg.nontype/
Dp1-11.cpp46 template<int (X::*pmf)(int)> struct PMF { // expected-note 2 {{template parameter is declared here}}
47 PMF<pmf> *pmf2;

1234