Lines Matching refs:acc
24 accumulator_set<float, stats<tag::sum_kahan> > acc; in test_sum_kahan() local
26 BOOST_CHECK_EQUAL(0.0f, sum_kahan(acc)); in test_sum_kahan()
29 acc(1e-6f); in test_sum_kahan()
32 BOOST_CHECK_EQUAL(1.0f, sum_kahan(acc)); in test_sum_kahan()
40 accumulator_set<float, stats<tag::sum_of_weights_kahan>, float > acc; in test_sum_of_weights_kahan() local
42 BOOST_CHECK_EQUAL(0.0f, sum_of_weights_kahan(acc)); in test_sum_of_weights_kahan()
45 acc(0, weight = 1e-6f); in test_sum_of_weights_kahan()
48 BOOST_CHECK_EQUAL(1.0f, sum_of_weights_kahan(acc)); in test_sum_of_weights_kahan()
61 acc; in test_sum_of_variates_kahan() local
63 BOOST_CHECK_EQUAL(0.0f, sum_of_variates_kahan(acc)); in test_sum_of_variates_kahan()
66 acc(0, covariate1 = 1e-6f); in test_sum_of_variates_kahan()
69 BOOST_CHECK_EQUAL(1.0f, sum_of_variates_kahan(acc)); in test_sum_of_variates_kahan()
84 acc; in test_persistency() local
86 BOOST_CHECK_EQUAL(0.0f, sum_of_variates_kahan(acc)); in test_persistency()
89 acc(0, covariate1 = 1e-6f); in test_persistency()
92 BOOST_CHECK_EQUAL(1.0f, sum_of_variates_kahan(acc)); in test_persistency()
94 acc.serialize(oa, 0); in test_persistency()
101 acc; in test_persistency() local
103 acc.serialize(ia, 0); in test_persistency()
104 BOOST_CHECK_EQUAL(1.0f, sum_of_variates_kahan(acc)); in test_persistency()