27namespace shammath::details {
32 inline static constexpr Tscal
Rkern = 2;
34 inline static constexpr Tscal
hfactd = 1.2;
37 inline static constexpr Tscal
norm_1d = 2. / 3.;
39 inline static constexpr Tscal
norm_2d = 10. / (7. * shambase::constants::pi<Tscal>);
41 inline static constexpr Tscal
norm_3d = 1 / shambase::constants::pi<Tscal>;
43 inline static Tscal f(Tscal q) {
51 constexpr Tscal div1_4 = (1. / 4.);
63 inline static Tscal df(Tscal q) {
65 constexpr Tscal div9_4 = (9. / 4.);
66 constexpr Tscal div3_4 = (3. / 4.);
69 return -3 * q + div9_4 * q * q;
71 return -3 + 3 * q - div3_4 * q * q;
76 inline static Tscal ddf(Tscal q) {
78 return (9.0 / 2.0) * q - 3;
80 return 3 - (3.0 / 2.0) * q;
85 inline static Tscal phi_tilde_3d(Tscal q) {
92 return (1.0 / 30.0) * shambase::constants::pi<Tscal>
93 * (t1 * (3 * t2 - 9 * t1 + 20) - 42);
95 return (1.0 / 30.0) * shambase::constants::pi<Tscal>
96 * (-t5 + 9 * t4 - 30 * t3 + 40 * t2 - 48 * q + 2) / q;
98 return -shambase::constants::pi<Tscal> / q;
101 inline static Tscal phi_tilde_3d_prime(Tscal q) {
108 return (1.0 / 30.0) * shambase::constants::pi<Tscal>
109 * (t1 * (9 * t1 - 18 * q) + 2 * q * (3 * t2 - 9 * t1 + 20));
111 return (1.0 / 30.0) * shambase::constants::pi<Tscal>
112 * (-6 * t4 + 45 * t3 - 120 * t2 + 120 * t1 - 48) / q
113 - (1.0 / 30.0) * shambase::constants::pi<Tscal>
114 * (-t5 + 9 * t4 - 30 * t3 + 40 * t2 - 48 * q + 2) / t1;
116 return shambase::constants::pi<Tscal> / t1;
120 template<
class Tscal>
123 inline static constexpr Tscal
Rkern = 5. / 2.;
125 inline static constexpr Tscal
hfactd = 1.2;
128 inline static constexpr Tscal
norm_1d = 1. / 24.;
130 inline static constexpr Tscal
norm_2d = 96. / (1199 * shambase::constants::pi<Tscal>);
132 inline static constexpr Tscal
norm_3d = 1 / (20 * shambase::constants::pi<Tscal>);
134 inline static Tscal f(Tscal q) {
136 constexpr Tscal div5_2 = (5. / 2.);
137 constexpr Tscal div3_2 = (3. / 2.);
138 constexpr Tscal div1_2 = (1. / 2.);
140 Tscal t1 = div5_2 - q;
141 Tscal t2 = div3_2 - q;
142 Tscal t3 = div1_2 - q;
144 Tscal t1_2 = t1 * t1;
145 Tscal t2_2 = t2 * t2;
146 Tscal t3_2 = t3 * t3;
158 }
else if (q < div3_2) {
160 }
else if (q < div5_2) {
166 inline static Tscal df(Tscal q) {
168 constexpr Tscal div5_2 = (5. / 2.);
169 constexpr Tscal div3_2 = (3. / 2.);
170 constexpr Tscal div1_2 = (1. / 2.);
172 Tscal t1 = div5_2 - q;
173 Tscal t2 = div3_2 - q;
174 Tscal t3 = div1_2 - q;
176 Tscal t1_2 = t1 * t1;
177 Tscal t2_2 = t2 * t2;
178 Tscal t3_2 = t3 * t3;
190 }
else if (q < div3_2) {
192 }
else if (q < div5_2) {
198 inline static Tscal ddf(Tscal q) {
203 return 120 * t1 - 60 * t2 + 12 * t3;
204 }
else if (q < 3.0 / 2.0) {
205 return -60 * t2 + 12 * t3;
206 }
else if (q < 5.0 / 2.0) {
212 inline static Tscal phi_tilde_3d(Tscal q) {
220 return (1.0 / 336.0) * shambase::constants::pi<Tscal>
221 * (192 * t5 - 1008 * t3 + 3220 * t1 - 8393);
222 }
else if (q < 3.0 / 2.0) {
223 return (1.0 / 336.0) * shambase::constants::pi<Tscal>
224 * (-128 * t6 + 896 * t5 - 2016 * t4 + 560 * t3 + 3080 * t2 - 8386 * q - 1)
226 }
else if (q < 5.0 / 2.0) {
227 return (1.0 / 672.0) * shambase::constants::pi<Tscal>
228 * (64 * t6 - 896 * t5 + 5040 * t4 - 14000 * t3 + 17500 * t2 - 21875 * q
232 return -20 * shambase::constants::pi<Tscal> / q;
235 inline static Tscal phi_tilde_3d_prime(Tscal q) {
243 return (1.0 / 336.0) * shambase::constants::pi<Tscal>
244 * (1152 * t4 - 4032 * t2 + 6440 * q);
245 }
else if (q < 3.0 / 2.0) {
246 return (1.0 / 336.0) * shambase::constants::pi<Tscal>
247 * (-896 * t5 + 5376 * t4 - 10080 * t3 + 2240 * t2 + 9240 * t1 - 8386) / q
248 - (1.0 / 336.0) * shambase::constants::pi<Tscal>
249 * (-128 * t6 + 896 * t5 - 2016 * t4 + 560 * t3 + 3080 * t2 - 8386 * q
252 }
else if (q < 5.0 / 2.0) {
253 return (1.0 / 672.0) * shambase::constants::pi<Tscal>
254 * (448 * t5 - 5376 * t4 + 25200 * t3 - 56000 * t2 + 52500 * t1 - 21875)
256 - (1.0 / 672.0) * shambase::constants::pi<Tscal>
257 * (64 * t6 - 896 * t5 + 5040 * t4 - 14000 * t3 + 17500 * t2 - 21875 * q
261 return 20 * shambase::constants::pi<Tscal> / t1;
265 template<
class Tscal>
268 inline static constexpr Tscal
Rkern = 3;
270 inline static constexpr Tscal
hfactd = 1.0;
273 inline static constexpr Tscal
norm_1d = 1. / 120.;
275 inline static constexpr Tscal
norm_2d = 7. / (478 * shambase::constants::pi<Tscal>);
277 inline static constexpr Tscal
norm_3d = 1 / (120 * shambase::constants::pi<Tscal>);
279 inline static Tscal f(Tscal q) {
285 Tscal t1_2 = t1 * t1;
286 Tscal t2_2 = t2 * t2;
287 Tscal t3_2 = t3 * t3;
289 t1 = t1 * t1_2 * t1_2;
290 t2 = t2 * t2_2 * t2_2;
291 t3 = t3 * t3_2 * t3_2;
307 inline static Tscal df(Tscal q) {
313 Tscal t1_2 = t1 * t1;
314 Tscal t2_2 = t2 * t2;
315 Tscal t3_2 = t3 * t3;
335 inline static Tscal ddf(Tscal q) {
340 return 300 * t1 - 120 * t2 + 20 * t3;
342 return -120 * t2 + 20 * t3;
349 inline static Tscal phi_tilde_3d(Tscal q) {
358 return (1.0 / 7.0) * shambase::constants::pi<Tscal>
359 * (-5 * t6 + 20 * t5 - 84 * t3 + 308 * t1 - 956);
361 return (1.0 / 14.0) * shambase::constants::pi<Tscal>
362 * (5 * t7 - 60 * t6 + 280 * t5 - 588 * t4 + 350 * t3 + 476 * t2 - 1892 * q
366 return (1.0 / 14.0) * shambase::constants::pi<Tscal>
367 * (-t7 + 20 * t6 - 168 * t5 + 756 * t4 - 1890 * t3 + 2268 * t2 - 2916 * q
371 return -120 * shambase::constants::pi<Tscal> / q;
374 inline static Tscal phi_tilde_3d_prime(Tscal q) {
383 return (1.0 / 7.0) * shambase::constants::pi<Tscal>
384 * (-35 * t5 + 120 * t4 - 336 * t2 + 616 * q);
386 return (1.0 / 14.0) * shambase::constants::pi<Tscal>
387 * (40 * t6 - 420 * t5 + 1680 * t4 - 2940 * t3 + 1400 * t2 + 1428 * t1
390 - (1.0 / 14.0) * shambase::constants::pi<Tscal>
391 * (5 * t7 - 60 * t6 + 280 * t5 - 588 * t4 + 350 * t3 + 476 * t2
395 return (1.0 / 14.0) * shambase::constants::pi<Tscal>
396 * (-8 * t6 + 140 * t5 - 1008 * t4 + 3780 * t3 - 7560 * t2 + 6804 * t1
399 - (1.0 / 14.0) * shambase::constants::pi<Tscal>
400 * (-t7 + 20 * t6 - 168 * t5 + 756 * t4 - 1890 * t3 + 2268 * t2
404 return 120 * shambase::constants::pi<Tscal> / t1;
408 template<
class Tscal>
411 inline static constexpr Tscal
Rkern = 3.5;
413 inline static constexpr Tscal
hfactd = 1.0;
416 inline static constexpr Tscal
norm_1d = 1. / 720;
418 inline static constexpr Tscal
norm_2d = 256. / (113149 * shambase::constants::pi<Tscal>);
420 inline static constexpr Tscal
norm_3d = 6. / (5040. * shambase::constants::pi<Tscal>);
422 inline static Tscal f(Tscal q) {
424 constexpr Tscal div7_2 = (7. / 2.);
425 constexpr Tscal div5_2 = (5. / 2.);
426 constexpr Tscal div3_2 = (3. / 2.);
427 constexpr Tscal div1_2 = (1. / 2.);
429 Tscal t1 = div7_2 - q;
430 Tscal t2 = div5_2 - q;
431 Tscal t3 = div3_2 - q;
432 Tscal t4 = div1_2 - q;
446 return t1 + t2 + t3 + t4;
447 }
else if (q < div3_2) {
449 }
else if (q < div5_2) {
451 }
else if (q < div7_2) {
457 inline static Tscal df(Tscal q) {
459 constexpr Tscal div7_2 = (7. / 2.);
460 constexpr Tscal div5_2 = (5. / 2.);
461 constexpr Tscal div3_2 = (3. / 2.);
462 constexpr Tscal div1_2 = (1. / 2.);
464 Tscal t1 = div7_2 - q;
465 Tscal t2 = div5_2 - q;
466 Tscal t3 = div3_2 - q;
467 Tscal t4 = div1_2 - q;
478 t4 *= (-6.) * (-35.);
481 return t1 + t2 + t3 + t4;
482 }
else if (q < div3_2) {
484 }
else if (q < div5_2) {
486 }
else if (q < div7_2) {
492 inline static Tscal ddf(Tscal q) {
498 return -1050 * t1 + 630 * t2 - 210 * t3 + 30 * t4;
499 }
else if (q < 3.0 / 2.0) {
500 return 630 * t2 - 210 * t3 + 30 * t4;
501 }
else if (q < 5.0 / 2.0) {
502 return -210 * t3 + 30 * t4;
503 }
else if (q < 7.0 / 2.0) {
509 inline static Tscal phi_tilde_3d(Tscal q) {
519 return (1.0 / 1152.0) * shambase::constants::pi<Tscal>
520 * (-1280 * t7 + 11520 * t5 - 66528 * t3 + 282576 * t1 - 1018341);
521 }
else if (q < 3.0 / 2.0) {
522 return (1.0 / 4608.0) * shambase::constants::pi<Tscal>
523 * (3840 * t8 - 34560 * t7 + 103680 * t6 - 53760 * t5 - 235872 * t4
524 - 10080 * t3 + 1131984 * t2 - 4073409 * q + 5)
526 }
else if (q < 5.0 / 2.0) {
527 return (1.0 / 2304.0) * shambase::constants::pi<Tscal>
528 * (-768 * t8 + 13824 * t7 - 103680 * t6 + 408576 * t5 - 852768 * t4
529 + 729792 * t3 + 198576 * t2 - 1948131 * q - 29522)
531 }
else if (q < 7.0 / 2.0) {
532 return (1.0 / 4608.0) * shambase::constants::pi<Tscal>
533 * (256 * t8 - 6912 * t7 + 80640 * t6 - 526848 * t5 + 2074464 * t4
534 - 4840416 * t3 + 5647152 * t2 - 7411887 * q + 1894081)
537 return -840 * shambase::constants::pi<Tscal> / q;
540 inline static Tscal phi_tilde_3d_prime(Tscal q) {
550 return (1.0 / 1152.0) * shambase::constants::pi<Tscal>
551 * (-10240 * t6 + 69120 * t4 - 266112 * t2 + 565152 * q);
552 }
else if (q < 3.0 / 2.0) {
553 return (1.0 / 4608.0) * shambase::constants::pi<Tscal>
554 * (34560 * t7 - 276480 * t6 + 725760 * t5 - 322560 * t4 - 1179360 * t3
555 - 40320 * t2 + 3395952 * t1 - 4073409)
557 - (1.0 / 4608.0) * shambase::constants::pi<Tscal>
558 * (3840 * t8 - 34560 * t7 + 103680 * t6 - 53760 * t5 - 235872 * t4
559 - 10080 * t3 + 1131984 * t2 - 4073409 * q + 5)
561 }
else if (q < 5.0 / 2.0) {
562 return (1.0 / 2304.0) * shambase::constants::pi<Tscal>
563 * (-6912 * t7 + 110592 * t6 - 725760 * t5 + 2451456 * t4 - 4263840 * t3
564 + 2919168 * t2 + 595728 * t1 - 1948131)
566 - (1.0 / 2304.0) * shambase::constants::pi<Tscal>
567 * (-768 * t8 + 13824 * t7 - 103680 * t6 + 408576 * t5 - 852768 * t4
568 + 729792 * t3 + 198576 * t2 - 1948131 * q - 29522)
570 }
else if (q < 7.0 / 2.0) {
571 return (1.0 / 4608.0) * shambase::constants::pi<Tscal>
572 * (2304 * t7 - 55296 * t6 + 564480 * t5 - 3161088 * t4 + 10372320 * t3
573 - 19361664 * t2 + 16941456 * t1 - 7411887)
575 - (1.0 / 4608.0) * shambase::constants::pi<Tscal>
576 * (256 * t8 - 6912 * t7 + 80640 * t6 - 526848 * t5 + 2074464 * t4
577 - 4840416 * t3 + 5647152 * t2 - 7411887 * q + 1894081)
580 return 840 * shambase::constants::pi<Tscal> / t1;
584 template<
class Tscal>
587 inline static constexpr Tscal
Rkern = 4.0;
589 inline static constexpr Tscal
hfactd = 1.0;
592 inline static constexpr Tscal
norm_1d = 1.0 / 5040.0;
594 inline static constexpr Tscal
norm_2d = (9.0 / 29740.0) / shambase::constants::pi<Tscal>;
596 inline static constexpr Tscal
norm_3d = (1.0 / 6720.0) / shambase::constants::pi<Tscal>;
598 inline static Tscal f(Tscal q) {
616 return t1 + t2 + t3 + t4;
627 inline static Tscal df(Tscal q) {
642 t4 *= (-7.) * (-56.);
645 return t1 + t2 + t3 + t4;
656 inline static Tscal ddf(Tscal q) {
662 return -2352 * t1 + 1176 * t2 - 336 * t3 + 42 * t4;
664 return 1176 * t2 - 336 * t3 + 42 * t4;
666 return -336 * t3 + 42 * t4;
673 inline static Tscal phi_tilde_3d(Tscal q) {
684 return (2.0 / 9.0) * shambase::constants::pi<Tscal>
685 * (t2 * (7 * t7 - 35 * t6 + 240 * t4 - 1512 * t2 + 7248) - 29740);
687 return (2.0 / 45.0) * shambase::constants::pi<Tscal>
688 * (-21 * t1 + 315 * t9 - 1890 * t8 + 5400 * t7 - 5880 * t6 - 2268 * t5
689 - 2940 * t4 + 37080 * t3 - 148770 * q + 14)
692 return (2.0 / 45.0) * shambase::constants::pi<Tscal>
693 * (7 * t1 - 175 * t9 + 1890 * t8 - 11400 * t7 + 41160 * t6 - 86940 * t5
694 + 91140 * t4 - 16680 * t3 - 130850 * q - 7154)
697 return (2.0 / 45.0) * shambase::constants::pi<Tscal>
698 * (-t1 + 35 * t9 - 540 * t8 + 4800 * t7 - 26880 * t6 + 96768 * t5
699 - 215040 * t4 + 245760 * t3 - 327680 * q + 110944)
702 return -6720 * shambase::constants::pi<Tscal> / q;
705 inline static Tscal phi_tilde_3d_prime(Tscal q) {
716 return (2.0 / 9.0) * shambase::constants::pi<Tscal>
717 * (t2 * (49 * t6 - 210 * t5 + 960 * t3 - 3024 * q)
718 + 2 * q * (7 * t7 - 35 * t6 + 240 * t4 - 1512 * t2 + 7248));
720 return (2.0 / 45.0) * shambase::constants::pi<Tscal>
721 * (-210 * t9 + 2835 * t8 - 15120 * t7 + 37800 * t6 - 35280 * t5
722 - 11340 * t4 - 11760 * t3 + 111240 * t2 - 148770)
724 - (2.0 / 45.0) * shambase::constants::pi<Tscal>
725 * (-21 * t1 + 315 * t9 - 1890 * t8 + 5400 * t7 - 5880 * t6 - 2268 * t5
726 - 2940 * t4 + 37080 * t3 - 148770 * q + 14)
729 return (2.0 / 45.0) * shambase::constants::pi<Tscal>
730 * (70 * t9 - 1575 * t8 + 15120 * t7 - 79800 * t6 + 246960 * t5
731 - 434700 * t4 + 364560 * t3 - 50040 * t2 - 130850)
733 - (2.0 / 45.0) * shambase::constants::pi<Tscal>
734 * (7 * t1 - 175 * t9 + 1890 * t8 - 11400 * t7 + 41160 * t6 - 86940 * t5
735 + 91140 * t4 - 16680 * t3 - 130850 * q - 7154)
738 return (2.0 / 45.0) * shambase::constants::pi<Tscal>
739 * (-10 * t9 + 315 * t8 - 4320 * t7 + 33600 * t6 - 161280 * t5
740 + 483840 * t4 - 860160 * t3 + 737280 * t2 - 327680)
742 - (2.0 / 45.0) * shambase::constants::pi<Tscal>
743 * (-t1 + 35 * t9 - 540 * t8 + 4800 * t7 - 26880 * t6 + 96768 * t5
744 - 215040 * t4 + 245760 * t3 - 327680 * q + 110944)
747 return 6720 * shambase::constants::pi<Tscal> / t2;
751 template<
class Tscal>
754 inline static constexpr Tscal
Rkern = 4.5;
756 inline static constexpr Tscal
hfactd = 1.0;
759 inline static constexpr Tscal
norm_1d = 1. / 40320;
761 inline static constexpr Tscal
norm_2d = 512. / (14345663 * shambase::constants::pi<Tscal>);
763 inline static constexpr Tscal
norm_3d = 6. / (362880. * shambase::constants::pi<Tscal>);
765 inline static Tscal f(Tscal q) {
767 constexpr Tscal div9_2 = (9. / 2.);
768 constexpr Tscal div7_2 = (7. / 2.);
769 constexpr Tscal div5_2 = (5. / 2.);
770 constexpr Tscal div3_2 = (3. / 2.);
771 constexpr Tscal div1_2 = (1. / 2.);
773 Tscal t1 = div9_2 - q;
774 Tscal t2 = div7_2 - q;
775 Tscal t3 = div5_2 - q;
776 Tscal t4 = div3_2 - q;
777 Tscal t5 = div1_2 - q;
792 return t1 + t2 + t3 + t4 + t5;
793 }
else if (q < div3_2) {
794 return t1 + t2 + t3 + t4;
795 }
else if (q < div5_2) {
797 }
else if (q < div7_2) {
799 }
else if (q < div9_2) {
805 inline static Tscal df(Tscal q) {
807 constexpr Tscal div9_2 = (9. / 2.);
808 constexpr Tscal div7_2 = (7. / 2.);
809 constexpr Tscal div5_2 = (5. / 2.);
810 constexpr Tscal div3_2 = (3. / 2.);
811 constexpr Tscal div1_2 = (1. / 2.);
813 Tscal t1 = div9_2 - q;
814 Tscal t2 = div7_2 - q;
815 Tscal t3 = div5_2 - q;
816 Tscal t4 = div3_2 - q;
817 Tscal t5 = div1_2 - q;
828 t4 *= (-8.) * (-84.);
829 t5 *= (-8.) * (126.);
832 return t1 + t2 + t3 + t4 + t5;
833 }
else if (q < div3_2) {
834 return t1 + t2 + t3 + t4;
835 }
else if (q < div5_2) {
837 }
else if (q < div7_2) {
839 }
else if (q < div9_2) {
845 inline static Tscal ddf(Tscal q) {
852 return 7056 * t1 - 4704 * t2 + 2016 * t3 - 504 * t4 + 56 * t5;
853 }
else if (q < 3.0 / 2.0) {
854 return -4704 * t2 + 2016 * t3 - 504 * t4 + 56 * t5;
855 }
else if (q < 5.0 / 2.0) {
856 return 2016 * t3 - 504 * t4 + 56 * t5;
857 }
else if (q < 7.0 / 2.0) {
858 return -504 * t4 + 56 * t5;
859 }
else if (q < 9.0 / 2.0) {
865 inline static Tscal phi_tilde_3d(Tscal q) {
877 return (1.0 / 2816.0) * shambase::constants::pi<Tscal>
878 * (7168 * t1 - 98560 * t9 + 908160 * t7 - 6408864 * t5 + 34283436 * t3
880 }
else if (q < 3.0 / 2.0) {
881 return (1.0 / 14080.0) * shambase::constants::pi<Tscal>
882 * (-28672 * t2 + 315392 * t1 - 1182720 * t10 + 887040 * t9 + 3801600 * t8
883 + 413952 * t7 - 32199552 * t6 + 36960 * t5 + 171412560 * t4
886 }
else if (q < 5.0 / 2.0) {
887 return (1.0 / 14080.0) * shambase::constants::pi<Tscal>
888 * (14336 * t2 - 315392 * t1 + 2956800 * t10 - 15079680 * t9 + 43718400 * t8
889 - 66646272 * t7 + 43243200 * t6 - 53850720 * t5 + 191620440 * t4
890 - 792042570 * q + 826679)
892 }
else if (q < 7.0 / 2.0) {
893 return (1.0 / 14080.0) * shambase::constants::pi<Tscal>
894 * (-4096 * t2 + 135168 * t1 - 1971200 * t10 + 16600320 * t9 - 88281600 * t8
895 + 302953728 * t7 - 649756800 * t6 + 771149280 * t5 - 324004560 * t4
896 - 577198820 * q - 96829571)
898 }
else if (q < 9.0 / 2.0) {
899 return (1.0 / 28160.0) * shambase::constants::pi<Tscal>
900 * (1024 * t2 - 45056 * t1 + 887040 * t10 - 10264320 * t9 + 76982400 * t8
901 - 387991296 * t7 + 1309470624 * t6 - 2806008480 * t5 + 3156759540 * t4
902 - 4261625379 * q + 1783667601)
905 return -60480 * shambase::constants::pi<Tscal> / q;
908 inline static Tscal phi_tilde_3d_prime(Tscal q) {
920 return (1.0 / 2816.0) * shambase::constants::pi<Tscal>
921 * (71680 * t10 - 788480 * t8 + 5448960 * t6 - 25635456 * t4 + 68566872 * q);
922 }
else if (q < 3.0 / 2.0) {
923 return (1.0 / 14080.0) * shambase::constants::pi<Tscal>
924 * (-315392 * t1 + 3153920 * t10 - 10644480 * t9 + 7096320 * t8
925 + 26611200 * t7 + 2483712 * t6 - 160997760 * t5 + 147840 * t4
926 + 514237680 * t3 - 789011388)
928 - (1.0 / 14080.0) * shambase::constants::pi<Tscal>
929 * (-28672 * t2 + 315392 * t1 - 1182720 * t10 + 887040 * t9
930 + 3801600 * t8 + 413952 * t7 - 32199552 * t6 + 36960 * t5
931 + 171412560 * t4 - 789011388 * q - 7)
933 }
else if (q < 5.0 / 2.0) {
934 return (1.0 / 14080.0) * shambase::constants::pi<Tscal>
935 * (157696 * t1 - 3153920 * t10 + 26611200 * t9 - 120637440 * t8
936 + 306028800 * t7 - 399877632 * t6 + 216216000 * t5 - 215402880 * t4
937 + 574861320 * t3 - 792042570)
939 - (1.0 / 14080.0) * shambase::constants::pi<Tscal>
940 * (14336 * t2 - 315392 * t1 + 2956800 * t10 - 15079680 * t9
941 + 43718400 * t8 - 66646272 * t7 + 43243200 * t6 - 53850720 * t5
942 + 191620440 * t4 - 792042570 * q + 826679)
944 }
else if (q < 7.0 / 2.0) {
945 return (1.0 / 14080.0) * shambase::constants::pi<Tscal>
946 * (-45056 * t1 + 1351680 * t10 - 17740800 * t9 + 132802560 * t8
947 - 617971200 * t7 + 1817722368 * t6 - 3248784000 * t5 + 3084597120 * t4
948 - 972013680 * t3 - 577198820)
950 - (1.0 / 14080.0) * shambase::constants::pi<Tscal>
951 * (-4096 * t2 + 135168 * t1 - 1971200 * t10 + 16600320 * t9
952 - 88281600 * t8 + 302953728 * t7 - 649756800 * t6 + 771149280 * t5
953 - 324004560 * t4 - 577198820 * q - 96829571)
955 }
else if (q < 9.0 / 2.0) {
956 return (1.0 / 28160.0) * shambase::constants::pi<Tscal>
957 * (11264 * t1 - 450560 * t10 + 7983360 * t9 - 82114560 * t8
958 + 538876800 * t7 - 2327947776 * t6 + 6547353120 * t5
959 - 11224033920 * t4 + 9470278620 * t3 - 4261625379)
961 - (1.0 / 28160.0) * shambase::constants::pi<Tscal>
962 * (1024 * t2 - 45056 * t1 + 887040 * t10 - 10264320 * t9
963 + 76982400 * t8 - 387991296 * t7 + 1309470624 * t6 - 2806008480 * t5
964 + 3156759540 * t4 - 4261625379 * q + 1783667601)
967 return 60480 * shambase::constants::pi<Tscal> / t3;
971 template<
class Tscal>
974 inline static constexpr Tscal
Rkern = 5;
976 inline static constexpr Tscal
hfactd = 1.0;
979 inline static constexpr Tscal
norm_1d = 1. / 362880;
981 inline static constexpr Tscal
norm_2d = 11. / (2922230 * shambase::constants::pi<Tscal>);
983 inline static constexpr Tscal
norm_3d = 6. / (3628800. * shambase::constants::pi<Tscal>);
985 inline static Tscal f(Tscal q) {
1006 return t1 + t2 + t3 + t4 + t5;
1008 return t1 + t2 + t3 + t4;
1010 return t1 + t2 + t3;
1019 inline static Tscal df(Tscal q) {
1034 t2 *= (-9.) * (-10.);
1035 t3 *= (-9.) * (45.);
1036 t4 *= (-9.) * (-120.);
1037 t5 *= (-9.) * (210.);
1040 return t1 + t2 + t3 + t4 + t5;
1042 return t1 + t2 + t3 + t4;
1044 return t1 + t2 + t3;
1053 inline static Tscal ddf(Tscal q) {
1060 return 15120 * t1 - 8640 * t2 + 3240 * t3 - 720 * t4 + 72 * t5;
1062 return -8640 * t2 + 3240 * t3 - 720 * t4 + 72 * t5;
1064 return 3240 * t3 - 720 * t4 + 72 * t5;
1066 return -720 * t4 + 72 * t5;
1073 inline static Tscal phi_tilde_3d(Tscal q) {
1086 return (2.0 / 33.0) * shambase::constants::pi<Tscal>
1087 * (-63 * t2 + 378 * t1 - 3850 * t10 + 37620 * t8 - 291060 * t6 + 1718090 * t4
1090 return (2.0 / 33.0) * shambase::constants::pi<Tscal>
1091 * (42 * t3 - 756 * t2 + 5544 * t1 - 20020 * t11 + 31185 * t10 - 3960 * t9
1092 + 38808 * t8 - 316008 * t7 + 10395 * t6 + 1715780 * t5 - 8766564 * q - 21)
1095 return (2.0 / 33.0) * shambase::constants::pi<Tscal>
1096 * (-18 * t3 + 540 * t2 - 7128 * t1 + 53900 * t11 - 253935 * t10 + 756360 * t9
1097 - 1380456 * t8 + 1508760 * t7 - 1510245 * t6 + 2391620 * t5 - 8914020 * q
1101 return (1.0 / 33.0) * shambase::constants::pi<Tscal>
1102 * (9 * t3 - 378 * t2 + 7128 * t1 - 79310 * t11 + 574695 * t10 - 2817540 * t9
1103 + 9363816 * t8 - 20365884 * t7 + 26208765 * t6 - 14702930 * t5
1104 - 8262102 * q - 4684707)
1107 return (1.0 / 33.0) * shambase::constants::pi<Tscal>
1108 * (-t3 + 54 * t2 - 1320 * t1 + 19250 * t11 - 185625 * t10 + 1237500 * t9
1109 - 5775000 * t8 + 18562500 * t7 - 38671875 * t6 + 42968750 * t5
1110 - 58593750 * q + 28869725)
1113 return -604800 * shambase::constants::pi<Tscal> / q;
1116 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1129 return (2.0 / 33.0) * shambase::constants::pi<Tscal>
1130 * (-693 * t1 + 3780 * t11 - 30800 * t9 + 225720 * t7 - 1164240 * t5
1133 return (2.0 / 33.0) * shambase::constants::pi<Tscal>
1134 * (504 * t2 - 8316 * t1 + 55440 * t11 - 180180 * t10 + 249480 * t9
1135 - 27720 * t8 + 232848 * t7 - 1580040 * t6 + 41580 * t5 + 5147340 * t4
1138 - (2.0 / 33.0) * shambase::constants::pi<Tscal>
1139 * (42 * t3 - 756 * t2 + 5544 * t1 - 20020 * t11 + 31185 * t10
1140 - 3960 * t9 + 38808 * t8 - 316008 * t7 + 10395 * t6 + 1715780 * t5
1144 return (2.0 / 33.0) * shambase::constants::pi<Tscal>
1145 * (-216 * t2 + 5940 * t1 - 71280 * t11 + 485100 * t10 - 2031480 * t9
1146 + 5294520 * t8 - 8282736 * t7 + 7543800 * t6 - 6040980 * t5
1147 + 7174860 * t4 - 8914020)
1149 - (2.0 / 33.0) * shambase::constants::pi<Tscal>
1150 * (-18 * t3 + 540 * t2 - 7128 * t1 + 53900 * t11 - 253935 * t10
1151 + 756360 * t9 - 1380456 * t8 + 1508760 * t7 - 1510245 * t6
1152 + 2391620 * t5 - 8914020 * q + 49131)
1155 return (1.0 / 33.0) * shambase::constants::pi<Tscal>
1156 * (108 * t2 - 4158 * t1 + 71280 * t11 - 713790 * t10 + 4597560 * t9
1157 - 19722780 * t8 + 56182896 * t7 - 101829420 * t6 + 104835060 * t5
1158 - 44108790 * t4 - 8262102)
1160 - (1.0 / 33.0) * shambase::constants::pi<Tscal>
1161 * (9 * t3 - 378 * t2 + 7128 * t1 - 79310 * t11 + 574695 * t10
1162 - 2817540 * t9 + 9363816 * t8 - 20365884 * t7 + 26208765 * t6
1163 - 14702930 * t5 - 8262102 * q - 4684707)
1166 return (1.0 / 33.0) * shambase::constants::pi<Tscal>
1167 * (-12 * t2 + 594 * t1 - 13200 * t11 + 173250 * t10 - 1485000 * t9
1168 + 8662500 * t8 - 34650000 * t7 + 92812500 * t6 - 154687500 * t5
1169 + 128906250 * t4 - 58593750)
1171 - (1.0 / 33.0) * shambase::constants::pi<Tscal>
1172 * (-t3 + 54 * t2 - 1320 * t1 + 19250 * t11 - 185625 * t10
1173 + 1237500 * t9 - 5775000 * t8 + 18562500 * t7 - 38671875 * t6
1174 + 42968750 * t5 - 58593750 * q + 28869725)
1177 return 604800 * shambase::constants::pi<Tscal> / t4;
1181 template<
class Tscal>
1184 inline static constexpr Tscal
Rkern = 2;
1191 inline static constexpr Tscal
norm_2d = 7. / (4 * shambase::constants::pi<Tscal>);
1193 inline static constexpr Tscal
norm_3d = 21 / (16 * shambase::constants::pi<Tscal>);
1195 inline static Tscal f(Tscal q) {
1197 constexpr Tscal div1_2 = (1. / 2.);
1199 Tscal p1 = (1 - q * div1_2);
1200 Tscal p2 = (1 + q * 2);
1211 inline static Tscal df(Tscal q) {
1213 constexpr Tscal div1_2 = (1. / 2.);
1214 constexpr Tscal div1_8 = (1. / 8.);
1215 constexpr Tscal div1_4 = (1. / 4.);
1217 Tscal p1 = (1 - q * div1_2);
1218 Tscal p2 = (1 + q * 2);
1220 Tscal p3 = p1 * p1 * p1;
1223 return 2 * (p3 * p1 - p3 * p2);
1228 inline static Tscal ddf(Tscal q) {
1232 return -8 * t2 + 3 * t1 * (2 * q + 1);
1237 inline static Tscal phi_tilde_3d(Tscal q) {
1243 return (1.0 / 336.0) * shambase::constants::pi<Tscal>
1244 * (t1 * (3 * t4 - 30 * t3 + 112 * t2 - 168 * t1 + 224) - 384);
1246 return -(16.0 / 21.0) * shambase::constants::pi<Tscal> / q;
1249 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1255 return (1.0 / 336.0) * shambase::constants::pi<Tscal>
1256 * (t1 * (15 * t3 - 120 * t2 + 336 * t1 - 336 * q)
1257 + 2 * q * (3 * t4 - 30 * t3 + 112 * t2 - 168 * t1 + 224));
1259 return (16.0 / 21.0) * shambase::constants::pi<Tscal> / t1;
1263 template<
class Tscal>
1266 inline static constexpr Tscal
Rkern = 2;
1271 inline static constexpr Tscal
norm_1d = 27. / 32.;
1273 inline static constexpr Tscal
norm_2d = 9. / (4 * shambase::constants::pi<Tscal>);
1275 inline static constexpr Tscal
norm_3d = 495. / (256. * shambase::constants::pi<Tscal>);
1277 inline static Tscal f(Tscal q) {
1279 constexpr Tscal div1_2 = (1. / 2.);
1280 constexpr Tscal div35_12 = (35. / 12.);
1282 Tscal p1 = (1 - q * div1_2);
1283 Tscal p2 = (1 + q * 3 + div35_12 * q * q);
1294 inline static Tscal df(Tscal q) {
1296 constexpr Tscal div7_96 = (7. / 96.);
1298 Tscal p1 = (-2 + q);
1299 Tscal p2 = (2 + 5 * q);
1301 Tscal p14 = p1 * p1;
1305 return div7_96 * p14 * p1 * q * p2;
1310 inline static Tscal ddf(Tscal q) {
1316 return (35.0 / 6.0) * t4 - 6 * t3 * ((35.0 / 6.0) * q + 3)
1317 + (15.0 / 2.0) * t2 * ((35.0 / 12.0) * t1 + 3 * q + 1);
1322 inline static Tscal phi_tilde_3d(Tscal q) {
1330 return (1.0 / 63360.0) * shambase::constants::pi<Tscal>
1332 * (105 * t6 - 1408 * t5 + 7700 * t4 - 21120 * t3 + 26400 * t2
1333 - 29568 * t1 + 42240)
1336 return -(256.0 / 495.0) * shambase::constants::pi<Tscal> / q;
1339 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1348 return (1.0 / 63360.0) * shambase::constants::pi<Tscal>
1350 * (840 * t6 - 9856 * t5 + 46200 * t4 - 105600 * t3 + 105600 * t2
1353 * (105 * t7 - 1408 * t6 + 7700 * t5 - 21120 * t4 + 26400 * t3
1354 - 29568 * t1 + 42240));
1356 return (256.0 / 495.0) * shambase::constants::pi<Tscal> / t1;
1360 template<
class Tscal>
1363 inline static constexpr Tscal
Rkern = 2;
1368 inline static constexpr Tscal
norm_1d = 15. / 16.;
1370 inline static constexpr Tscal
norm_2d = 39. / (14. * shambase::constants::pi<Tscal>);
1372 inline static constexpr Tscal
norm_3d = 1365. / (512. * shambase::constants::pi<Tscal>);
1374 inline static Tscal f(Tscal q) {
1376 constexpr Tscal div1_2 = (1. / 2.);
1377 constexpr Tscal div25_4 = (25. / 4.);
1379 Tscal p1 = (1 - q * div1_2);
1380 Tscal p2 = (1 + q * 4 + div25_4 * q * q + 4 * q * q * q);
1392 inline static Tscal df(Tscal q) {
1394 constexpr Tscal div11_512 = (11. / 512.);
1396 Tscal p1 = (-2 + q);
1397 Tscal p2 = 2 + 7 * q + 8 * q * q;
1399 Tscal p12 = p1 * p1;
1400 Tscal p14 = p12 * p12;
1401 Tscal p17 = p12 * p14 * p1;
1404 return div11_512 * p17 * q * p2;
1409 inline static Tscal ddf(Tscal q) {
1416 return t5 * (24 * q + 25.0 / 2.0) - 8 * t4 * (12 * t1 + (25.0 / 2.0) * q + 4)
1417 + 14 * t3 * (4 * t2 + (25.0 / 4.0) * t1 + 4 * q + 1);
1422 inline static Tscal phi_tilde_3d(Tscal q) {
1432 return (1.0 / 1397760.0) * shambase::constants::pi<Tscal>
1434 * (480 * t2 - 8085 * t1 + 58240 * t8 - 229320 * t7 + 512512 * t6
1435 - 560560 * t5 + 549120 * t4 - 768768 * t3 + 931840)
1438 return -(512.0 / 1365.0) * shambase::constants::pi<Tscal> / q;
1441 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1453 return (1.0 / 1397760.0) * shambase::constants::pi<Tscal>
1455 * (5280 * t1 - 80850 * t10 + 524160 * t9 - 1834560 * t8 + 3587584 * t7
1456 - 3363360 * t6 + 2196480 * t4 - 1537536 * q)
1458 * (480 * t2 - 8085 * t1 + 58240 * t10 - 229320 * t9 + 512512 * t8
1459 - 560560 * t7 + 549120 * t5 - 768768 * t3 + 931840));
1461 return (512.0 / 1365.0) * shambase::constants::pi<Tscal> / t3;
1473 template<
class Tscal>
1476 inline static constexpr Tscal
Rkern = 3;
1480 inline static constexpr Tscal
norm_1d = 0.564202047051383;
1482 inline static constexpr Tscal
norm_2d = 0.318349173592935;
1484 inline static constexpr Tscal
norm_3d = 0.179666148218087;
1486 inline static Tscal f(Tscal q) {
1489 return sycl::exp(-t1);
1494 inline static Tscal df(Tscal q) {
1497 return -2 * q * sycl::exp(-t1);
1502 inline static Tscal ddf(Tscal q) {
1505 return (4 * t1 - 2) * sycl::exp(-t1);
1510 inline static Tscal phi_tilde_3d(Tscal q) {
1512 return -6.282409900511787;
1514 return 2 * shambase::constants::pi<Tscal> * sycl::exp(Tscal{-9})
1515 - sycl::pow(shambase::constants::pi<Tscal>, 3.0 / 2.0) * sycl::erf(q) / q;
1517 return (-sycl::pow(shambase::constants::pi<Tscal>, 3.0 / 2.0) * sycl::erf(Tscal{3})
1518 + 6 * shambase::constants::pi<Tscal> * sycl::exp(Tscal{-9}))
1522 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1527 return -2 * shambase::constants::pi<Tscal> * sycl::exp(-t1) / q
1528 + sycl::pow(shambase::constants::pi<Tscal>, 3.0 / 2.0) * sycl::erf(q) / t1;
1530 return -(-sycl::pow(shambase::constants::pi<Tscal>, 3.0 / 2.0) * sycl::erf(Tscal{3})
1531 + 6 * shambase::constants::pi<Tscal> * sycl::exp(Tscal{-9}))
1544 template<
class Tscal>
1547 inline static constexpr Tscal
Rkern = 5;
1551 inline static constexpr Tscal
norm_1d = 0.564189583548624;
1553 inline static constexpr Tscal
norm_2d = 0.318309886188211;
1555 inline static constexpr Tscal
norm_3d = 0.179587122139514;
1557 inline static Tscal f(Tscal q) {
1560 return sycl::exp(-t1);
1565 inline static Tscal df(Tscal q) {
1568 return -2 * q * sycl::exp(-t1);
1573 inline static Tscal ddf(Tscal q) {
1576 return (4 * t1 - 2) * sycl::exp(-t1);
1581 inline static Tscal phi_tilde_3d(Tscal q) {
1583 return -6.283185307092326;
1585 return 2 * shambase::constants::pi<Tscal> * sycl::exp(Tscal{-25})
1586 - sycl::pow(shambase::constants::pi<Tscal>, 3.0 / 2.0) * sycl::erf(q) / q;
1588 return (-sycl::pow(shambase::constants::pi<Tscal>, 3.0 / 2.0) * sycl::erf(Tscal{5})
1589 + 10 * shambase::constants::pi<Tscal> * sycl::exp(Tscal{-25}))
1593 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1598 return -2 * shambase::constants::pi<Tscal> * sycl::exp(-t1) / q
1599 + sycl::pow(shambase::constants::pi<Tscal>, 3.0 / 2.0) * sycl::erf(q) / t1;
1601 return -(-sycl::pow(shambase::constants::pi<Tscal>, 3.0 / 2.0) * sycl::erf(Tscal{5})
1602 + 10 * shambase::constants::pi<Tscal> * sycl::exp(Tscal{-25}))
1607 template<
class Tscal>
1610 inline static constexpr Tscal
Rkern = 2;
1618 = (49. / 31.) * 10. / (7. * shambase::constants::pi<Tscal>);
1620 inline static constexpr Tscal
norm_3d = (10. / 9.) * 1 / shambase::constants::pi<Tscal>;
1622 inline static Tscal f(Tscal q) {
return KernelDefM4<Tscal>::f(q) * q * q; }
1624 inline static Tscal df(Tscal q) {
1625 return KernelDefM4<Tscal>::df(q) * q * q + 2 * KernelDefM4<Tscal>::f(q) * q;
1628 inline static Tscal ddf(Tscal q) {
1635 return t3 * ((9.0 / 2.0) * q - 3) + 4 * q * (3 * t1 - (3.0 / 4.0) * t2) - 2 * t4
1638 return -(3.0 / 4.0) * t3 * (2 * q - 4) - 3 * q * t2 + (1.0 / 2.0) * t5;
1643 inline static Tscal phi_tilde_3d(Tscal q) {
1652 return (1.0 / 280.0) * shambase::constants::pi<Tscal>
1653 * (t3 * (15 * t2 - 40 * t1 + 56) - 248);
1655 return (1.0 / 280.0) * shambase::constants::pi<Tscal>
1656 * (-5 * t7 + 40 * t6 - 112 * t5 + 112 * t4 - 256 * q + 4) / q;
1658 return -(9.0 / 10.0) * shambase::constants::pi<Tscal> / q;
1661 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1670 return (1.0 / 280.0) * shambase::constants::pi<Tscal>
1671 * (t3 * (45 * t1 - 80 * q) + 4 * t2 * (15 * t2 - 40 * t1 + 56));
1673 return (1.0 / 280.0) * shambase::constants::pi<Tscal>
1674 * (-40 * t6 + 280 * t5 - 672 * t4 + 560 * t3 - 256) / q
1675 - (1.0 / 280.0) * shambase::constants::pi<Tscal>
1676 * (-5 * t7 + 40 * t6 - 112 * t5 + 112 * t4 - 256 * q + 4) / t1;
1678 return (9.0 / 10.0) * shambase::constants::pi<Tscal> / t1;
1682 template<
class Tscal>
1685 inline static constexpr Tscal
Rkern = 2;
1690 inline static constexpr Tscal
norm_1d = (105. / 31.) * 2. / 3.;
1693 = (14. / 9.) * 10. / (7. * shambase::constants::pi<Tscal>);
1695 inline static constexpr Tscal
norm_3d = (126. / 127.) * 1 / shambase::constants::pi<Tscal>;
1697 inline static Tscal f(Tscal q) {
return KernelDefM4<Tscal>::f(q) * q * q * q; }
1699 inline static Tscal df(Tscal q) {
1700 return KernelDefM4<Tscal>::df(q) * q * q * q + 3 * KernelDefM4<Tscal>::f(q) * q * q;
1703 inline static Tscal ddf(Tscal q) {
1711 return t6 * ((9.0 / 2.0) * q - 3) + 6 * t3 * (3 * t1 - (3.0 / 4.0) * t2)
1712 + 6 * q * (-t4 + (1.0 / 4.0) * t5);
1714 return -(3.0 / 4.0) * t6 * (2 * q - 4) - (9.0 / 2.0) * t3 * t2
1715 + (3.0 / 2.0) * q * t5;
1720 inline static Tscal phi_tilde_3d(Tscal q) {
1729 return (1.0 / 840.0) * shambase::constants::pi<Tscal>
1730 * (t3 * (35 * t2 - 90 * t1 + 112) - 756);
1732 return (1.0 / 2520.0) * shambase::constants::pi<Tscal>
1733 * (-35 * t7 + 270 * t6 - 720 * t5 + 672 * t4 - 2304 * q + 20) / q;
1735 return -(127.0 / 126.0) * shambase::constants::pi<Tscal> / q;
1738 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1748 return (1.0 / 840.0) * shambase::constants::pi<Tscal>
1749 * (t4 * (105 * t1 - 180 * q) + 5 * t3 * (35 * t2 - 90 * t1 + 112));
1751 return (1.0 / 2520.0) * shambase::constants::pi<Tscal>
1752 * (-315 * t7 + 2160 * t6 - 5040 * t5 + 4032 * t4 - 2304) / q
1753 - (1.0 / 2520.0) * shambase::constants::pi<Tscal>
1754 * (-35 * t8 + 270 * t7 - 720 * t6 + 672 * t5 - 2304 * q + 20) / t1;
1756 return (127.0 / 126.0) * shambase::constants::pi<Tscal> / t1;
1760 template<
class Tscal>
1763 inline static constexpr Tscal
Rkern = 2;
1768 inline static constexpr Tscal
norm_1d = 252.0 / 127.0;
1770 inline static constexpr Tscal
norm_2d = (28.0 / 17.0) / shambase::constants::pi<Tscal>;
1772 inline static constexpr Tscal
norm_3d = (330.0 / 511.0) / shambase::constants::pi<Tscal>;
1774 inline static Tscal f(Tscal q) {
1778 inline static Tscal df(Tscal q) {
1783 inline static Tscal ddf(Tscal q) {
1792 return t7 * ((9.0 / 2.0) * q - 3) + 10 * t6 * (3 * t1 - (3.0 / 4.0) * t2)
1793 + 20 * t5 * (-t3 + (1.0 / 4.0) * t4);
1795 return -(3.0 / 4.0) * t7 * (2 * q - 4) - (15.0 / 2.0) * t6 * t2 + 5 * t5 * t4;
1800 inline static Tscal phi_tilde_3d(Tscal q) {
1809 return (1.0 / 2310.0) * shambase::constants::pi<Tscal>
1810 * (t5 * (63 * t4 - 154 * t3 + 165) - 2805);
1812 return (1.0 / 2310.0) * shambase::constants::pi<Tscal>
1813 * (-21 * t2 + 154 * t1 - 385 * t7 + 330 * t6 - 2816 * q + 7) / q;
1815 return -(511.0 / 330.0) * shambase::constants::pi<Tscal> / q;
1818 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1828 return (1.0 / 2310.0) * shambase::constants::pi<Tscal>
1829 * (t6 * (189 * t3 - 308 * q) + 7 * t5 * (63 * t4 - 154 * t3 + 165));
1831 return (1.0 / 2310.0) * shambase::constants::pi<Tscal>
1832 * (-231 * t1 + 1540 * t8 - 3465 * t7 + 2640 * t6 - 2816) / q
1833 - (1.0 / 2310.0) * shambase::constants::pi<Tscal>
1834 * (-21 * t2 + 154 * t1 - 385 * t8 + 330 * t7 - 2816 * q + 7) / t3;
1836 return (511.0 / 330.0) * shambase::constants::pi<Tscal> / t3;
1840 template<
class Tscal>
1843 inline static constexpr Tscal
Rkern = 2;
1848 inline static constexpr Tscal
norm_1d = 660.0 / 511.0;
1850 inline static constexpr Tscal
norm_2d = (30.0 / 31.0) / shambase::constants::pi<Tscal>;
1852 inline static constexpr Tscal
norm_3d = (715.0 / 2047.0) / shambase::constants::pi<Tscal>;
1854 inline static Tscal f(Tscal q) {
1858 inline static Tscal df(Tscal q) {
1863 inline static Tscal ddf(Tscal q) {
1872 return t7 * ((9.0 / 2.0) * q - 3) + 14 * t6 * (3 * t1 - (3.0 / 4.0) * t2)
1873 + 42 * t5 * (-t3 + (1.0 / 4.0) * t4);
1875 return -(3.0 / 4.0) * t7 * (2 * q - 4) - (21.0 / 2.0) * t6 * t2
1876 + (21.0 / 2.0) * t5 * t4;
1881 inline static Tscal phi_tilde_3d(Tscal q) {
1890 return (1.0 / 25740.0) * shambase::constants::pi<Tscal>
1891 * (t7 * (495 * t6 - 1170 * t5 + 1144) - 53196);
1893 return (1.0 / 25740.0) * shambase::constants::pi<Tscal>
1894 * (-165 * t4 + 1170 * t3 - 2808 * t2 + 2288 * t1 - 53248 * q + 36) / q;
1896 return -(2047.0 / 715.0) * shambase::constants::pi<Tscal> / q;
1899 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1909 return (1.0 / 25740.0) * shambase::constants::pi<Tscal>
1910 * (t8 * (1485 * t5 - 2340 * q) + 9 * t7 * (495 * t6 - 1170 * t5 + 1144));
1912 return (1.0 / 25740.0) * shambase::constants::pi<Tscal>
1913 * (-2145 * t3 + 14040 * t2 - 30888 * t1 + 22880 * t8 - 53248) / q
1914 - (1.0 / 25740.0) * shambase::constants::pi<Tscal>
1915 * (-165 * t4 + 1170 * t3 - 2808 * t2 + 2288 * t1 - 53248 * q + 36)
1918 return (2047.0 / 715.0) * shambase::constants::pi<Tscal> / t5;
1922 template<
class Tscal>
1925 inline static constexpr Tscal
Rkern = 2;
1930 inline static constexpr Tscal
norm_1d = 4.0 / 11.0;
1932 inline static constexpr Tscal
norm_2d = (40.0 / 77.0) / shambase::constants::pi<Tscal>;
1934 inline static constexpr Tscal
norm_3d = (120.0 / 439.0) / shambase::constants::pi<Tscal>;
1936 inline static Tscal f(Tscal q) {
1940 return KernelDefM4<Tscal>::f((q - 1) * 2);
1944 inline static Tscal df(Tscal q) {
1948 return 2 * KernelDefM4<Tscal>::df((q - 1) * 2);
1952 inline static Tscal ddf(Tscal q) {
1956 return 4 * KernelDefM4<Tscal>::ddf((q - 1) * 2);
1960 inline static Tscal phi_tilde_3d(Tscal q) {
1967 return (1.0 / 60.0) * shambase::constants::pi<Tscal> * (40 * t1 - 231);
1968 }
else if (q < 3.0 / 2.0) {
1969 return (1.0 / 60.0) * shambase::constants::pi<Tscal>
1970 * (48 * t5 - 288 * t4 + 600 * t3 - 440 * t2 - 39 * q - 72) / q;
1972 return (1.0 / 120.0) * shambase::constants::pi<Tscal>
1973 * (-32 * t5 + 288 * t4 - 960 * t3 + 1280 * t2 - 1536 * q + 585) / q;
1975 return -(439.0 / 120.0) * shambase::constants::pi<Tscal> / q;
1978 inline static Tscal phi_tilde_3d_prime(Tscal q) {
1985 return (4.0 / 3.0) * shambase::constants::pi<Tscal> * q;
1986 }
else if (q < 3.0 / 2.0) {
1987 return (1.0 / 60.0) * shambase::constants::pi<Tscal>
1988 * (288 * t4 - 1440 * t3 + 2400 * t2 - 1320 * t1 - 39) / q
1989 - (1.0 / 60.0) * shambase::constants::pi<Tscal>
1990 * (48 * t5 - 288 * t4 + 600 * t3 - 440 * t2 - 39 * q - 72) / t1;
1992 return (1.0 / 120.0) * shambase::constants::pi<Tscal>
1993 * (-192 * t4 + 1440 * t3 - 3840 * t2 + 3840 * t1 - 1536) / q
1994 - (1.0 / 120.0) * shambase::constants::pi<Tscal>
1995 * (-32 * t5 + 288 * t4 - 960 * t3 + 1280 * t2 - 1536 * q + 585) / t1;
1997 return (439.0 / 120.0) * shambase::constants::pi<Tscal> / t1;
2001 template<
class Tscal>
2004 inline static constexpr Tscal
Rkern = 2;
2009 inline static constexpr Tscal
norm_1d = 8.0 / 27.0;
2011 inline static constexpr Tscal
norm_2d = (160.0 / 457.0) / shambase::constants::pi<Tscal>;
2013 inline static constexpr Tscal
norm_3d = (320.0 / 2069.0) / shambase::constants::pi<Tscal>;
2015 inline static Tscal f(Tscal q) {
2019 return KernelDefM4<Tscal>::f((q - 1.5) * 4);
2023 inline static Tscal df(Tscal q) {
2027 return 4 * KernelDefM4<Tscal>::df((q - 1.5) * 4);
2031 inline static Tscal ddf(Tscal q) {
2035 return 16 * KernelDefM4<Tscal>::ddf((q - 1.5) * 4);
2039 inline static Tscal phi_tilde_3d(Tscal q) {
2045 if (q < 3.0 / 2.0) {
2046 return (1.0 / 240.0) * shambase::constants::pi<Tscal> * (160 * t1 - 1371);
2047 }
else if (q < 7.0 / 4.0) {
2048 return (1.0 / 240.0) * shambase::constants::pi<Tscal>
2049 * (1536 * t5 - 11520 * t4 + 31680 * t3 - 34400 * t2 + 25845 * q - 14580) / q;
2051 return (1.0 / 960.0) * shambase::constants::pi<Tscal>
2052 * (-2048 * t5 + 18432 * t4 - 61440 * t3 + 81920 * t2 - 98304 * q + 59329)
2055 return -(2069.0 / 320.0) * shambase::constants::pi<Tscal> / q;
2058 inline static Tscal phi_tilde_3d_prime(Tscal q) {
2064 if (q < 3.0 / 2.0) {
2065 return (4.0 / 3.0) * shambase::constants::pi<Tscal> * q;
2066 }
else if (q < 7.0 / 4.0) {
2067 return (1.0 / 240.0) * shambase::constants::pi<Tscal>
2068 * (9216 * t4 - 57600 * t3 + 126720 * t2 - 103200 * t1 + 25845) / q
2069 - (1.0 / 240.0) * shambase::constants::pi<Tscal>
2070 * (1536 * t5 - 11520 * t4 + 31680 * t3 - 34400 * t2 + 25845 * q
2074 return (1.0 / 960.0) * shambase::constants::pi<Tscal>
2075 * (-12288 * t4 + 92160 * t3 - 245760 * t2 + 245760 * t1 - 98304) / q
2076 - (1.0 / 960.0) * shambase::constants::pi<Tscal>
2077 * (-2048 * t5 + 18432 * t4 - 61440 * t3 + 81920 * t2 - 98304 * q
2081 return (2069.0 / 320.0) * shambase::constants::pi<Tscal> / t1;
2085 template<
class Tscal>
2088 inline static constexpr Tscal
Rkern = 2;
2093 inline static constexpr Tscal
norm_1d = 16.0 / 59.0;
2095 inline static constexpr Tscal
norm_2d = (640.0 / 2177.0) / shambase::constants::pi<Tscal>;
2097 inline static constexpr Tscal
norm_3d = (7680.0 / 64303.0) / shambase::constants::pi<Tscal>;
2099 inline static Tscal f(Tscal q) {
2103 return KernelDefM4<Tscal>::f((q - 1.75) * 8);
2107 inline static Tscal df(Tscal q) {
2111 return 8 * KernelDefM4<Tscal>::df((q - 1.75) * 8);
2115 inline static Tscal ddf(Tscal q) {
2119 return 64 * KernelDefM4<Tscal>::ddf((q - 1.75) * 8);
2123 inline static Tscal phi_tilde_3d(Tscal q) {
2129 if (q < 7.0 / 4.0) {
2130 return (1.0 / 960.0) * shambase::constants::pi<Tscal> * (640 * t1 - 6531);
2131 }
else if (q < 15.0 / 8.0) {
2132 return (1.0 / 960.0) * shambase::constants::pi<Tscal>
2133 * (49152 * t5 - 405504 * t4 + 1236480 * t3 - 1504640 * t2 + 1491693 * q
2137 return (1.0 / 7680.0) * shambase::constants::pi<Tscal>
2138 * (-131072 * t5 + 1179648 * t4 - 3932160 * t3 + 5242880 * t2 - 6291456 * q
2142 return -(64303.0 / 7680.0) * shambase::constants::pi<Tscal> / q;
2145 inline static Tscal phi_tilde_3d_prime(Tscal q) {
2151 if (q < 7.0 / 4.0) {
2152 return (4.0 / 3.0) * shambase::constants::pi<Tscal> * q;
2153 }
else if (q < 15.0 / 8.0) {
2154 return (1.0 / 960.0) * shambase::constants::pi<Tscal>
2155 * (294912 * t4 - 2027520 * t3 + 4945920 * t2 - 4513920 * t1 + 1491693)
2157 - (1.0 / 960.0) * shambase::constants::pi<Tscal>
2158 * (49152 * t5 - 405504 * t4 + 1236480 * t3 - 1504640 * t2 + 1491693 * q
2162 return (1.0 / 7680.0) * shambase::constants::pi<Tscal>
2163 * (-786432 * t4 + 5898240 * t3 - 15728640 * t2 + 15728640 * t1 - 6291456)
2165 - (1.0 / 7680.0) * shambase::constants::pi<Tscal>
2166 * (-131072 * t5 + 1179648 * t4 - 3932160 * t3 + 5242880 * t2
2167 - 6291456 * q + 4130001)
2170 return (64303.0 / 7680.0) * shambase::constants::pi<Tscal> / t1;
2174 template<
class Tscal>
2177 inline static constexpr Tscal
Rkern = 2;
2182 inline static constexpr Tscal
norm_1d = 32.0 / 123.0;
2184 inline static constexpr Tscal
norm_2d = (2560.0 / 9457.0) / shambase::constants::pi<Tscal>;
2186 inline static constexpr Tscal
norm_3d = (4096.0 / 38785.0) / shambase::constants::pi<Tscal>;
2188 inline static Tscal f(Tscal q) {
2192 return KernelDefM4<Tscal>::f((q - 1.875) * 16);
2196 inline static Tscal df(Tscal q) {
2200 return 16 * KernelDefM4<Tscal>::df((q - 1.875) * 16);
2204 inline static Tscal ddf(Tscal q) {
2208 return 256 * KernelDefM4<Tscal>::ddf((q - 1.875) * 16);
2212 inline static Tscal phi_tilde_3d(Tscal q) {
2218 if (q < 15.0 / 8.0) {
2219 return (1.0 / 3840.0) * shambase::constants::pi<Tscal> * (2560 * t1 - 28371);
2220 }
else if (q < 31.0 / 16.0) {
2221 return (1.0 / 3840.0) * shambase::constants::pi<Tscal>
2222 * (1572864 * t5 - 13565952 * t4 + 43315200 * t3 - 55293440 * t2
2223 + 60721629 * q - 38728125)
2226 return (1.0 / 61440.0) * shambase::constants::pi<Tscal>
2227 * (-8388608 * t5 + 75497472 * t4 - 251658240 * t3 + 335544320 * t2
2228 - 402653184 * q + 267853681)
2231 return -(38785.0 / 4096.0) * shambase::constants::pi<Tscal> / q;
2234 inline static Tscal phi_tilde_3d_prime(Tscal q) {
2240 if (q < 15.0 / 8.0) {
2241 return (4.0 / 3.0) * shambase::constants::pi<Tscal> * q;
2242 }
else if (q < 31.0 / 16.0) {
2243 return (1.0 / 3840.0) * shambase::constants::pi<Tscal>
2244 * (9437184 * t4 - 67829760 * t3 + 173260800 * t2 - 165880320 * t1
2247 - (1.0 / 3840.0) * shambase::constants::pi<Tscal>
2248 * (1572864 * t5 - 13565952 * t4 + 43315200 * t3 - 55293440 * t2
2249 + 60721629 * q - 38728125)
2252 return (1.0 / 61440.0) * shambase::constants::pi<Tscal>
2253 * (-50331648 * t4 + 377487360 * t3 - 1006632960 * t2 + 1006632960 * t1
2256 - (1.0 / 61440.0) * shambase::constants::pi<Tscal>
2257 * (-8388608 * t5 + 75497472 * t4 - 251658240 * t3 + 335544320 * t2
2258 - 402653184 * q + 267853681)
2261 return (38785.0 / 4096.0) * shambase::constants::pi<Tscal> / t1;
2269 template<
typename T,
typename Tscal,
typename =
void>
2272 template<
typename T,
typename Tscal>
2273 struct has_phi_tilde_3d<T, Tscal, std::void_t<decltype(T::phi_tilde_3d(std::declval<Tscal>()))>>
2274 : std::true_type {};
2277 template<
typename T,
typename Tscal,
typename =
void>
2280 template<
typename T,
typename Tscal>
2284 std::void_t<decltype(T::phi_tilde_3d_prime(std::declval<Tscal>()))>> : std::true_type {};
2286 template<
class Tscal_,
class BaseKernel>
2289 using Generator = BaseKernel;
2290 using Tscal = Tscal_;
2291 inline static constexpr Tscal
Rkern = BaseKernel::Rkern;
2293 = BaseKernel::hfactd;
2303 inline static Tscal
f(Tscal q) {
return BaseKernel::f(q); }
2311 inline static Tscal
df(Tscal q) {
return BaseKernel::df(q); }
2313 inline static Tscal ddf(Tscal q) {
return BaseKernel::ddf(q); }
2315 inline static Tscal W_1d(Tscal r, Tscal h) {
return BaseKernel::norm_1d *
f(r / h) / (h); }
2317 inline static Tscal W_2d(Tscal r, Tscal h) {
2318 return BaseKernel::norm_2d *
f(r / h) / (
h *
h);
2330 inline static Tscal
W_3d(Tscal r, Tscal h) {
2331 return BaseKernel::norm_3d *
f(r / h) / (h * h * h);
2334 inline static Tscal dW_3d(Tscal r, Tscal h) {
2335 return BaseKernel::norm_3d *
df(r / h) / (h * h * h * h);
2338 inline static Tscal ddW_3d(Tscal r, Tscal h) {
2339 return BaseKernel::norm_3d * ddf(r / h) / (h * h * h * h * h);
2342 inline static Tscal dhW_3d(Tscal r, Tscal h) {
2343 return -(BaseKernel::norm_3d) * (3 *
f(r / h) + (r / h) *
df(r / h)) / (
h *
h *
h *
h);
2365 constexpr Tscal step =
Rkern / np;
2369 Tscal acc =
f(sycl::fabs(x));
2370 for (
int k = 1; k < np; k++) {
2373 acc += 2 *
f(sqrt(sycl::fma(z, z, xx)));
2378 inline static Tscal
f3d_integ_z(Tscal x,
int np = 32) {
2379 return integ_riemann_sum<Tscal>(-
Rkern,
Rkern,
Rkern / np, [&](Tscal z) {
2380 return f(sqrt(x * x + z * z));
2384 inline static Tscal Y_3d(Tscal r, Tscal h,
int np) {
2385 return BaseKernel::norm_3d *
f3d_integ_z(r / h, np) / (
h *
h);
2389 inline static Tscal Y_3d(Tscal r, Tscal h) {
2393 static constexpr bool has_3d_phi_soft
2394 = ::shammath::has_phi_tilde_3d<BaseKernel, Tscal>::value;
2396 inline static Tscal phi_tilde_3d(Tscal q) {
2397 if constexpr (has_3d_phi_soft) {
2398 return BaseKernel::phi_tilde_3d(q);
2400 return std::numeric_limits<Tscal>::quiet_NaN();
2404 static constexpr bool has_3d_phi_soft_prime
2405 = ::shammath::has_phi_tilde_3d_prime<BaseKernel, Tscal>::value;
2407 inline static Tscal phi_tilde_3d_prime(Tscal q) {
2408 if constexpr (has_3d_phi_soft_prime) {
2409 return BaseKernel::phi_tilde_3d_prime(q);
2411 return std::numeric_limits<Tscal>::quiet_NaN();
2415 inline static Tscal phi_3D(Tscal r, Tscal h) {
2416 return BaseKernel::norm_3d * phi_tilde_3d(r / h) /
h;
2419 inline static Tscal phi_3D_prime(Tscal r, Tscal h) {
2420 return BaseKernel::norm_3d * phi_tilde_3d_prime(r / h) / (
h *
h);
2430 template<
class flt_type>
2439 template<
class flt_type>
2448 template<
class flt_type>
2457 template<
class flt_type>
2466 template<
class flt_type>
2475 template<
class flt_type>
2484 template<
class flt_type>
2493 template<
class flt_type>
2502 template<
class flt_type>
2511 template<
class flt_type>
2519 template<
class flt_type>
2527 template<
class flt_type>
2536 template<
class flt_type>
2545 template<
class flt_type>
2554 template<
class flt_type>
2563 template<
class flt_type>
2572 template<
class flt_type>
2581 template<
class flt_type>
2590 template<
class flt_type>
2599 template<
class flt_type>
2606 template<
class flt_type>
2608 inline static const std::string name =
"M4<" + get_type_name<flt_type>() +
">";
2610 template<
class flt_type>
2612 inline static const std::string name =
"M5<" + get_type_name<flt_type>() +
">";
2614 template<
class flt_type>
2616 inline static const std::string name =
"M6<" + get_type_name<flt_type>() +
">";
2618 template<
class flt_type>
2620 inline static const std::string name =
"M7<" + get_type_name<flt_type>() +
">";
2622 template<
class flt_type>
2624 inline static const std::string name =
"M8<" + get_type_name<flt_type>() +
">";
2626 template<
class flt_type>
2628 inline static const std::string name =
"M9<" + get_type_name<flt_type>() +
">";
2630 template<
class flt_type>
2632 inline static const std::string name =
"M10<" + get_type_name<flt_type>() +
">";
2635 template<
class flt_type>
2637 inline static const std::string name =
"C2<" + get_type_name<flt_type>() +
">";
2639 template<
class flt_type>
2641 inline static const std::string name =
"C4<" + get_type_name<flt_type>() +
">";
2643 template<
class flt_type>
2645 inline static const std::string name =
"C6<" + get_type_name<flt_type>() +
">";
2648 template<
class flt_type>
2650 inline static const std::string name =
"TGauss3<" + get_type_name<flt_type>() +
">";
2653 template<
class flt_type>
2655 inline static const std::string name =
"TGauss5<" + get_type_name<flt_type>() +
">";
2658 template<
class flt_type>
2660 inline static const std::string name =
"M4DH<" + get_type_name<flt_type>() +
">";
2663 template<
class flt_type>
2665 inline static const std::string name =
"M4DH3<" + get_type_name<flt_type>() +
">";
2668 template<
class flt_type>
2670 inline static const std::string name =
"M4DH5<" + get_type_name<flt_type>() +
">";
2673 template<
class flt_type>
2675 inline static const std::string name =
"M4DH7<" + get_type_name<flt_type>() +
">";
2678 template<
class flt_type>
2680 inline static const std::string name =
"M4Shift2<" + get_type_name<flt_type>() +
">";
2683 template<
class flt_type>
2685 inline static const std::string name =
"M4Shift4<" + get_type_name<flt_type>() +
">";
2688 template<
class flt_type>
2690 inline static const std::string name =
"M4Shift8<" + get_type_name<flt_type>() +
">";
2693 template<
class flt_type>
2695 inline static const std::string name =
"M4Shift16<" + get_type_name<flt_type>() +
">";
static Tscal W_3d(Tscal r, Tscal h)
compute the normed & resized version of the kernel :
static constexpr Tscal hfactd
static Tscal f(Tscal q)
the base function for this SPH kernel
static Tscal f3d_integ_z(Tscal x)
Riemann sum of along z over the kernel support.
static constexpr Tscal Rkern
static Tscal df(Tscal q)
derivative of M4::f
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal Rkern
static constexpr Tscal Rkern
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal Rkern
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal Rkern
static constexpr Tscal hfactd
default hfact to be used for this kernel
Truncated Gaussian kernel with compact support R=3h.
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal norm_2d
2D norm of the kernel (accounts for truncation at q=3)
static constexpr Tscal hfactd
default hfact to be used for this kernel
static constexpr Tscal Rkern
Compact support radius of the kernel.
Truncated Gaussian kernel with compact support R=5h.
static constexpr Tscal norm_2d
2D norm of the kernel
static constexpr Tscal norm_1d
1D norm of the kernel
static constexpr Tscal Rkern
Compact support radius of the kernel.
static constexpr Tscal norm_3d
3D norm of the kernel
static constexpr Tscal hfactd
default hfact to be used for this kernel
constexpr Unit h
Planck constant.
Class holding the value of numerous constants generated from the following source.
constexpr T pow_constexpr(T a) noexcept
generalized pow constexpr
namespace for basic c++ utilities
namespace for math utility
SPHKernelGen< flt_type, details::KernelDefTGauss5< flt_type > > TGauss5
Truncated Gaussian kernel with compact support R=5h.
SPHKernelGen< flt_type, details::KernelDefM4Shift8< flt_type > > M4Shift8
The M4Shift8 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefTGauss3< flt_type > > TGauss3
Truncated Gaussian kernel with compact support R=3h.
SPHKernelGen< flt_type, details::KernelDefM4< flt_type > > M4
The M4 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM10< flt_type > > M10
The M8 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM4Shift2< flt_type > > M4Shift2
The M4Shift2 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefC4< flt_type > > C4
The C4 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM4Shift4< flt_type > > M4Shift4
The M4Shift4 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM4DoubleHump3< flt_type > > M4DH3
The M4DoubleHump3 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM9< flt_type > > M9
The M8 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefC6< flt_type > > C6
The C6 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM6< flt_type > > M6
The M6 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM4Shift16< flt_type > > M4Shift16
The M4Shift16 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM4DoubleHump5< flt_type > > M4DH5
The M4DoubleHump5 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM4DoubleHump< flt_type > > M4DH
The M4DoubleHump SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM7< flt_type > > M7
The M7 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM8< flt_type > > M8
The M8 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM5< flt_type > > M5
The M5 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefM4DoubleHump7< flt_type > > M4DH7
The M4DoubleHump7 SPH kernel.
SPHKernelGen< flt_type, details::KernelDefC2< flt_type > > C2
The C2 SPH kernel.