Home
last modified time | relevance | path

Searched full:derivative (Results 1 – 25 of 1304) sorted by relevance

12345678910>>...53

/third_party/boost/libs/math/test/
Dtest_autodiff_1.cpp16 BOOST_CHECK_EQUAL(empty1.derivative(i), 0); in BOOST_AUTO_TEST_CASE_TEMPLATE()
21 BOOST_CHECK_EQUAL(empty2.derivative(i, j), 0); in BOOST_AUTO_TEST_CASE_TEMPLATE()
29 BOOST_CHECK_EQUAL(x.derivative(i), cx); in BOOST_AUTO_TEST_CASE_TEMPLATE()
31 BOOST_CHECK_EQUAL(x.derivative(i), 1); in BOOST_AUTO_TEST_CASE_TEMPLATE()
33 BOOST_CHECK_EQUAL(x.derivative(i), 0); in BOOST_AUTO_TEST_CASE_TEMPLATE()
39 BOOST_CHECK_EQUAL(xn.derivative(i), cx); in BOOST_AUTO_TEST_CASE_TEMPLATE()
41 BOOST_CHECK_EQUAL(xn.derivative(i), 1); in BOOST_AUTO_TEST_CASE_TEMPLATE()
43 BOOST_CHECK_EQUAL(xn.derivative(i), 0); in BOOST_AUTO_TEST_CASE_TEMPLATE()
52 BOOST_CHECK_EQUAL(y.derivative(i, j), cy); in BOOST_AUTO_TEST_CASE_TEMPLATE()
54 BOOST_CHECK_EQUAL(y.derivative(i, j), 1.0); in BOOST_AUTO_TEST_CASE_TEMPLATE()
[all …]
Dtest_autodiff_3.cpp17 // BOOST_CHECK_EQUAL(y.derivative(0) , atanh(cx)); // fails due to overload in BOOST_AUTO_TEST_CASE_TEMPLATE()
18 BOOST_CHECK_CLOSE(y.derivative(0u), atanh(static_cast<T>(x)), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
19 BOOST_CHECK_CLOSE(y.derivative(1u), static_cast<T>(4) / 3, eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
20 BOOST_CHECK_CLOSE(y.derivative(2u), static_cast<T>(16) / 9, eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
21 BOOST_CHECK_CLOSE(y.derivative(3u), static_cast<T>(224) / 27, eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
22 BOOST_CHECK_CLOSE(y.derivative(4u), static_cast<T>(1280) / 27, eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
23 BOOST_CHECK_CLOSE(y.derivative(5u), static_cast<T>(31232) / 81, eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
35 BOOST_CHECK_CLOSE(y.derivative(0u), boost::math::constants::pi<T>() / 4, eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
36 BOOST_CHECK_CLOSE(y.derivative(1u), T(0.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
37 BOOST_CHECK_CLOSE(y.derivative(2u), T(-0.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
[all …]
Dtest_autodiff_2.cpp18 BOOST_CHECK_EQUAL(f.derivative(0u), 0.5); in BOOST_AUTO_TEST_CASE_TEMPLATE()
19 BOOST_CHECK_EQUAL(f.derivative(1u), -0.5); in BOOST_AUTO_TEST_CASE_TEMPLATE()
20 BOOST_CHECK_EQUAL(f.derivative(2u), 0.5); in BOOST_AUTO_TEST_CASE_TEMPLATE()
21 BOOST_CHECK_EQUAL(f.derivative(3u), 0); in BOOST_AUTO_TEST_CASE_TEMPLATE()
22 BOOST_CHECK_EQUAL(f.derivative(4u), -3); in BOOST_AUTO_TEST_CASE_TEMPLATE()
33 // std::cout << "y.derivative("<<i<<") = " << y.derivative(i) << ", in BOOST_AUTO_TEST_CASE_TEMPLATE()
35 BOOST_CHECK_CLOSE_FRACTION(y.derivative(i), exp(cx), in BOOST_AUTO_TEST_CASE_TEMPLATE()
51 BOOST_CHECK_EQUAL(z0.derivative(0u), pow(cx, cy)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
52 BOOST_CHECK_EQUAL(z0.derivative(1u), cy * pow(cx, cy - 1)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
53 BOOST_CHECK_EQUAL(z0.derivative(2u), cy * (cy - 1) * pow(cx, cy - 2)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
[all …]
Dtest_autodiff_8.cpp19 BOOST_CHECK(isNearZero(autodiff_v.derivative(0u) - anchor_v)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
36 BOOST_CHECK(isNearZero(autodiff_v.derivative(0u) - anchor_v)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
52 BOOST_CHECK(isNearZero(autodiff_v.derivative(0u) - anchor_v)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
67 .derivative(0u) - in BOOST_AUTO_TEST_CASE_TEMPLATE()
71 .derivative(0u) - in BOOST_AUTO_TEST_CASE_TEMPLATE()
75 .derivative(0u) - in BOOST_AUTO_TEST_CASE_TEMPLATE()
79 .derivative(0u) - in BOOST_AUTO_TEST_CASE_TEMPLATE()
83 .derivative(0u) - in BOOST_AUTO_TEST_CASE_TEMPLATE()
87 .derivative(0u) - in BOOST_AUTO_TEST_CASE_TEMPLATE()
91 .derivative(0u) - in BOOST_AUTO_TEST_CASE_TEMPLATE()
[all …]
/third_party/boost/libs/math/example/
Dnumerical_derivative_example.cpp21 obtain full precision in a numerical derivative calculation that suffers from precision loss.
24 computing the 1st derivative of a function [f'(x)] with [/x] real.
33 We will now use the derivative template with the built-in type `double` in
34 order to numerically compute the derivative of a function, and then repeat
40 We will now take the derivative of this function with respect to x evaluated
48 The program below uses the derivative template in order to perform
49 the numerical calculation of this derivative. The program also compares the
58 for the derivative function calls like `[]( const double & x_) -> double`.
64 value_type derivative (const value_type x, const value_type dx, function_type function) in derivative() function
66 /*! \brief Compute the derivative of function using a 3-point central difference rule of O(dx^6). in derivative()
[all …]
Dautodiff_black_scholes.cpp89 << "autodiff black-scholes call price = " << call_price.derivative(0, 0, 0, 0) << '\n' in main()
90 << "autodiff black-scholes put price = " << put_price.derivative(0, 0, 0, 0) << '\n' in main()
92 << "autodiff call delta = " << call_price.derivative(1, 0, 0, 0) << '\n' in main()
94 << "autodiff call vega = " << call_price.derivative(0, 1, 0, 0) << '\n' in main()
96 << "autodiff call theta = " << -call_price.derivative(0, 0, 1, 0) in main()
99 << "autodiff call rho = " << call_price.derivative(0, 0, 0, 1) << '\n' in main()
102 << "autodiff put delta = " << put_price.derivative(1, 0, 0, 0) << '\n' in main()
104 << "autodiff put vega = " << put_price.derivative(0, 1, 0, 0) << '\n' in main()
106 << "autodiff put theta = " << -put_price.derivative(0, 0, 1, 0) << '\n' in main()
108 << "autodiff put rho = " << put_price.derivative(0, 0, 0, 1) << '\n' in main()
[all …]
Dautodiff_fourth_power.cpp19 constexpr unsigned Order = 5; // Highest order derivative to be calculated. in main()
23 std::cout << "y.derivative(" << i << ") = " << y.derivative(i) << std::endl; in main()
28 y.derivative(0) = 16
29 y.derivative(1) = 32
30 y.derivative(2) = 48
31 y.derivative(3) = 48
32 y.derivative(4) = 24
33 y.derivative(5) = 0
/third_party/libsnd/src/ALAC/
DLICENSE42 "Derivative Works" shall mean any work, whether in Source or Object
46 of this License, Derivative Works shall not include works that remain
48 the Work and Derivative Works thereof.
52 Derivative Works thereof, that is intentionally submitted to Licensor
71 copyright license to reproduce, prepare Derivative Works of, publicly
73 Derivative Works in Source or Object form.
91 Work or Derivative Works thereof in any medium, with or without
95 You must give any other recipients of the Work or Derivative Works a
101 You must retain, in the Source form of any Derivative Works that You
104 pertain to any part of the Derivative Works; and
[all …]
/third_party/typescript/
DLICENSE25Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or deri…
27 …version of the Work and any modifications or additions to that Work or Derivative Works thereof, t…
31 … reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distr…
35 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof …
37 You must give any other recipients of the Work or Derivative Works a copy of this License; and
41Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices fr…
43Derivative Works that You distribute must include a readable copy of the attribution notices conta…
53 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works th…
/third_party/libphonenumber/
DLICENSE40 "Derivative Works" shall mean any work, whether in Source or Object
44 of this License, Derivative Works shall not include works that remain
46 the Work and Derivative Works thereof.
50 to that Work or Derivative Works thereof, that is intentionally
69 copyright license to reproduce, prepare Derivative Works of,
71 Work and such Derivative Works in Source or Object form.
90 Work or Derivative Works thereof in any medium, with or without
95 Derivative Works a copy of this License; and
100 (c) You must retain, in the Source form of any Derivative Works
104 the Derivative Works; and
[all …]
/third_party/node/deps/npm/node_modules/request/
DLICENSE25Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or deri…
27 …version of the Work and any modifications or additions to that Work or Derivative Works thereof, t…
31 … reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distr…
35 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof …
37 You must give any other recipients of the Work or Derivative Works a copy of this License; and
41Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices fr…
43Derivative Works that You distribute must include a readable copy of the attribution notices conta…
53 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works th…
/third_party/skia/third_party/externals/swiftshader/third_party/astc-encoder/
DLICENSE.txt41 "Derivative Works" shall mean any work, whether in Source or Object
45 of this License, Derivative Works shall not include works that remain
47 the Work and Derivative Works thereof.
51 to that Work or Derivative Works thereof, that is intentionally
70 copyright license to reproduce, prepare Derivative Works of,
72 Work and such Derivative Works in Source or Object form.
91 Work or Derivative Works thereof in any medium, with or without
96 Derivative Works a copy of this License; and
101 (c) You must retain, in the Source form of any Derivative Works
105 the Derivative Works; and
[all …]
/third_party/jsframework/
DLICENSE41 "Derivative Works" shall mean any work, whether in Source or Object
45 of this License, Derivative Works shall not include works that remain
47 the Work and Derivative Works thereof.
51 to that Work or Derivative Works thereof, that is intentionally
70 copyright license to reproduce, prepare Derivative Works of,
72 Work and such Derivative Works in Source or Object form.
91 Work or Derivative Works thereof in any medium, with or without
96 Derivative Works a copy of this License; and
101 (c) You must retain, in the Source form of any Derivative Works
105 the Derivative Works; and
[all …]
/third_party/node/deps/npm/node_modules/oauth-sign/
DLICENSE25Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or deri…
27 …version of the Work and any modifications or additions to that Work or Derivative Works thereof, t…
31 … reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distr…
35 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof …
37 You must give any other recipients of the Work or Derivative Works a copy of this License; and
41Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices fr…
43Derivative Works that You distribute must include a readable copy of the attribution notices conta…
53 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works th…
/third_party/node/deps/npm/node_modules/tunnel-agent/
DLICENSE25Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or deri…
27 …version of the Work and any modifications or additions to that Work or Derivative Works thereof, t…
31 … reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distr…
35 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof …
37 You must give any other recipients of the Work or Derivative Works a copy of this License; and
41Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices fr…
43Derivative Works that You distribute must include a readable copy of the attribution notices conta…
53 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works th…
/third_party/node/deps/npm/node_modules/aws-sign2/
DLICENSE25Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or deri…
27 …version of the Work and any modifications or additions to that Work or Derivative Works thereof, t…
31 … reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distr…
35 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof …
37 You must give any other recipients of the Work or Derivative Works a copy of this License; and
41Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices fr…
43Derivative Works that You distribute must include a readable copy of the attribution notices conta…
53 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works th…
/third_party/flutter/skia/third_party/externals/wuffs/
DLICENSE41 "Derivative Works" shall mean any work, whether in Source or Object
45 of this License, Derivative Works shall not include works that remain
47 the Work and Derivative Works thereof.
51 to that Work or Derivative Works thereof, that is intentionally
70 copyright license to reproduce, prepare Derivative Works of,
72 Work and such Derivative Works in Source or Object form.
91 Work or Derivative Works thereof in any medium, with or without
96 Derivative Works a copy of this License; and
101 (c) You must retain, in the Source form of any Derivative Works
105 the Derivative Works; and
[all …]
/third_party/flutter/skia/third_party/etc1/
DLICENSE41 "Derivative Works" shall mean any work, whether in Source or Object
45 of this License, Derivative Works shall not include works that remain
47 the Work and Derivative Works thereof.
51 Derivative Works thereof, that is intentionally submitted to Licensor
70 reproduce, prepare Derivative Works of, publicly display, publicly perform,
71 sublicense, and distribute the Work and such Derivative Works in Source or
89 Derivative Works thereof in any medium, with or without modifications, and
92 You must give any other recipients of the Work or Derivative Works a copy of
96 You must retain, in the Source form of any Derivative Works that You
99 pertain to any part of the Derivative Works; and
[all …]
/third_party/chromium/
DLICENSE41 "Derivative Works" shall mean any work, whether in Source or Object
45 of this License, Derivative Works shall not include works that remain
47 the Work and Derivative Works thereof.
51 to that Work or Derivative Works thereof, that is intentionally
70 copyright license to reproduce, prepare Derivative Works of,
72 Work and such Derivative Works in Source or Object form.
91 Work or Derivative Works thereof in any medium, with or without
96 Derivative Works a copy of this License; and
101 (c) You must retain, in the Source form of any Derivative Works
105 the Derivative Works; and
[all …]
/third_party/node/deps/npm/node_modules/forever-agent/
DLICENSE25Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or deri…
27 …version of the Work and any modifications or additions to that Work or Derivative Works thereof, t…
31 … reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distr…
35 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof …
37 You must give any other recipients of the Work or Derivative Works a copy of this License; and
41Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices fr…
43Derivative Works that You distribute must include a readable copy of the attribution notices conta…
53 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works th…
/third_party/node/deps/npm/node_modules/caseless/
DLICENSE13Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or deri…
14 …version of the Work and any modifications or additions to that Work or Derivative Works thereof, t…
16 … reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distr…
18 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof …
19 You must give any other recipients of the Work or Derivative Works a copy of this License; and
21Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices fr…
22Derivative Works that You distribute must include a readable copy of the attribution notices conta…
27 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works th…
/third_party/skia/third_party/etc1/
DLICENSE41 "Derivative Works" shall mean any work, whether in Source or Object
45 of this License, Derivative Works shall not include works that remain
47 the Work and Derivative Works thereof.
51 Derivative Works thereof, that is intentionally submitted to Licensor
70 reproduce, prepare Derivative Works of, publicly display, publicly perform,
71 sublicense, and distribute the Work and such Derivative Works in Source or
89 Derivative Works thereof in any medium, with or without modifications, and
92 You must give any other recipients of the Work or Derivative Works a copy of
96 You must retain, in the Source form of any Derivative Works that You
99 pertain to any part of the Derivative Works; and
[all …]
/third_party/boost/libs/math/doc/differentiation/
Dautodiff.qbk37 get_type_at<RealType, sizeof...(Orders) - 1> derivative(Orders... orders) const;
82 derivative of its respective order, divided by the factorial of the order.
133 constexpr unsigned Order = 5; // Highest order derivative to be calculated.
137 std::cout << "y.derivative(" << i << ") = " << y.derivative(i) << std::endl;
142 y.derivative(0) = 16
143 y.derivative(1) = 32
144 y.derivative(2) = 48
145 y.derivative(3) = 48
146 y.derivative(4) = 24
147 y.derivative(5) = 0
[all …]
/third_party/spirv-tools/
DLICENSE41 "Derivative Works" shall mean any work, whether in Source or Object
45 of this License, Derivative Works shall not include works that remain
47 the Work and Derivative Works thereof.
51 to that Work or Derivative Works thereof, that is intentionally
70 copyright license to reproduce, prepare Derivative Works of,
72 Work and such Derivative Works in Source or Object form.
91 Work or Derivative Works thereof in any medium, with or without
96 Derivative Works a copy of this License; and
101 (c) You must retain, in the Source form of any Derivative Works
105 the Derivative Works; and
[all …]
/third_party/flatbuffers/swift/
DLICENSE41 "Derivative Works" shall mean any work, whether in Source or Object
45 of this License, Derivative Works shall not include works that remain
47 the Work and Derivative Works thereof.
51 to that Work or Derivative Works thereof, that is intentionally
70 copyright license to reproduce, prepare Derivative Works of,
72 Work and such Derivative Works in Source or Object form.
91 Work or Derivative Works thereof in any medium, with or without
96 Derivative Works a copy of this License; and
101 (c) You must retain, in the Source form of any Derivative Works
105 the Derivative Works; and
[all …]

12345678910>>...53