GCC Code Coverage Report


Directory: src/oiseau/
File: src/oiseau/utils/integration.cpp
Date: 2026-11-23 22:30:49
Exec Total Coverage
Lines: 75 153 49.0%
Functions: 4 4 100.0%
Branches: 93 357 26.1%

Line Branch Exec Source
1 // Copyright (C) 2026 Tiago V. L. Amorim (@tiagovla)
2 //
3 // This file is part of oiseau (https://github.com/tiagovla/oiseau)
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6
7 #include "oiseau/utils/integration.hpp"
8
9 #include <array>
10 #include <cmath>
11 #include <cstddef>
12 #include <stdexcept>
13 #include <string>
14 #include <utility>
15 #include <xtensor-blas/xlinalg.hpp>
16 #include <xtensor/containers/xadapt.hpp>
17 #include <xtensor/containers/xarray.hpp>
18 #include <xtensor/core/xeval.hpp>
19 #include <xtensor/core/xmath.hpp>
20 #include <xtensor/core/xtensor_forward.hpp>
21 #include <xtensor/generators/xbuilder.hpp>
22 #include <xtensor/io/xio.hpp>
23 #include <xtensor/misc/xcomplex.hpp>
24 #include <xtensor/misc/xmanipulation.hpp>
25 #include <xtensor/misc/xpad.hpp>
26 #include <xtensor/misc/xsort.hpp>
27 #include <xtensor/views/xslice.hpp>
28 #include <xtensor/views/xstrided_view.hpp>
29 #include <xtensor/views/xview.hpp>
30
31 namespace {
32
33 // Cools, R. "Monomial Cubature Rules Since "Stroud":
34 // A Compilation--Part 2."
35 //
36 // J. Comput. Appl. Math. 112, 21-27, 1999.
37 //
38 // Cools, R. "Encyclopaedia of Cubature Formulas."
39 // http://www.cs.kuleuven.ac.be/~nines/research/ecf/ecf.html
40
41 // For cub2D_1: 1 point
42 static const std::array<double, 1 * 2> cub2D_1_nodes_data = {
43 {-0.333333333333333, -0.333333333333333}};
44 static const std::array<double, 1> cub2D_1_weights_data = {{2.000000000000000}};
45
46 // For cub2D_2: 3 points
47 static const std::array<double, 3 * 2> cub2D_2_nodes_data = {
48 {-0.666666666666667, -0.666666666666667, 0.333333333333333, -0.666666666666667,
49 -0.666666666666667, 0.333333333333333}};
50 static const std::array<double, 3> cub2D_2_weights_data = {
51 {0.666666666666667, 0.666666666666667, 0.666666666666667}};
52
53 // For cub2D_3: 6 points
54 static const std::array<double, 6 * 2> cub2D_3_nodes_data = {
55 {-0.816847572980458, -0.816847572980458, 0.633695145960917, -0.816847572980459,
56 -0.816847572980459, 0.633695145960917, -0.108103018168070, -0.108103018168070,
57 -0.783793963663860, -0.108103018168070, -0.108103018168070, -0.783793963663860}};
58 static const std::array<double, 6> cub2D_3_weights_data = {{0.219903487310644, 0.219903487310644,
59 0.219903487310644, 0.446763179356023,
60 0.446763179356023, 0.446763179356023}};
61
62 // For cub2D_4: 6 points
63 static const std::array<double, 6 * 2> cub2D_4_nodes_data = {
64 {-0.816847572980458, -0.816847572980458, 0.633695145960917, -0.816847572980459,
65 -0.816847572980459, 0.633695145960917, -0.108103018168070, -0.108103018168070,
66 -0.783793963663860, -0.108103018168070, -0.108103018168070, -0.783793963663860}};
67 static const std::array<double, 6> cub2D_4_weights_data = {{0.219903487310644, 0.219903487310644,
68 0.219903487310644, 0.446763179356023,
69 0.446763179356023, 0.446763179356023}};
70
71 // For cub2D_5: 7 points
72 static const std::array<double, 7 * 2> cub2D_5_nodes_data = {
73 {-0.333333333333333, -0.333333333333333, -0.059715871789770, -0.059715871789770,
74 -0.880568256420460, -0.059715871789770, -0.059715871789770, -0.880568256420460,
75 -0.797426985353087, -0.797426985353087, 0.594853970706175, -0.797426985353087,
76 -0.797426985353087, 0.594853970706175}};
77 static const std::array<double, 7> cub2D_5_weights_data = {
78 {0.450000000000000, 0.264788305577012, 0.264788305577012, 0.264788305577012, 0.251878361089654,
79 0.251878361089654, 0.251878361089654}};
80
81 // For cub2D_6: 12 points
82 static const std::array<double, 12 * 2> cub2D_6_nodes_data = {
83 {-0.501426509658179, -0.501426509658179, 0.002853019316358, -0.501426509658179,
84 -0.501426509658179, 0.002853019316358, -0.873821971016996, -0.873821971016996,
85 0.747643942033991, -0.873821971016996, -0.873821971016996, 0.747643942033991,
86 -0.379295097932431, -0.893709900310366, -0.893709900310366, -0.379295097932431,
87 0.273004998242797, -0.893709900310366, -0.893709900310366, 0.273004998242797,
88 0.273004998242797, -0.379295097932431, -0.379295097932431, 0.273004998242797}};
89 static const std::array<double, 12> cub2D_6_weights_data = {
90 {0.233572551452759, 0.233572551452759, 0.233572551452759, 0.101689812740414, 0.101689812740414,
91 0.101689812740414, 0.165702151236747, 0.165702151236747, 0.165702151236747, 0.165702151236747,
92 0.165702151236747, 0.165702151236747}};
93
94 // For cub2D_7: 15 points
95 static const std::array<double, 15 * 2> cub2D_7_nodes_data = {
96 {-0.158765070723907, -0.158765070723907, -0.682469858552186, -0.158765070723907,
97 -0.158765070723907, -0.682469858552186, -0.901937632421608, -0.901937632421608,
98 0.803875264843215, -0.901937632421608, -0.901937632421608, 0.803875264843215,
99 -0.696696002590528, -0.696696002590528, 0.393392005181056, -0.696696002590528,
100 -0.696696002590528, 0.393392005181056, 0.348275575962283, -0.375762055856278,
101 -0.375762055856278, 0.348275575962283, -0.972513520106005, -0.375762055856278,
102 -0.375762055856278, -0.972513520106005, -0.972513520106005, 0.348275575962283,
103 0.348275575962283, -0.972513520106005}};
104 static const std::array<double, 15> cub2D_7_weights_data = {
105 {0.278402959350494, 0.278402959350494, 0.278402959350494, 0.063653882657145, 0.063653882657145,
106 0.063653882657145, 0.168642646759703, 0.168642646759703, 0.168642646759703, 0.077983588949662,
107 0.077983588949662, 0.077983588949662, 0.077983588949662, 0.077983588949662,
108 0.077983588949662}};
109
110 // For cub2D_8: 16 points
111 static const std::array<double, 16 * 2> cub2D_8_nodes_data = {
112 {-0.333333333333333, -0.333333333333333, -0.081414823414554, -0.081414823414554,
113 -0.837170353170893, -0.081414823414554, -0.081414823414554, -0.837170353170893,
114 -0.658861384496480, -0.658861384496480, 0.317722768992959, -0.658861384496480,
115 -0.658861384496480, 0.317722768992959, -0.898905543365938, -0.898905543365938,
116 0.797811086731876, -0.898905543365938, -0.898905543365938, 0.797811086731876,
117 -0.473774340730724, 0.456984785910809, 0.456984785910809, -0.473774340730724,
118 -0.983210445180085, 0.456984785910809, 0.456984785910809, -0.983210445180085,
119 -0.983210445180085, -0.473774340730724, -0.473774340730724, -0.983210445180085}};
120 static const std::array<double, 16> cub2D_8_weights_data = {
121 {0.288631215355574, 0.190183268534569, 0.190183268534569, 0.190183268534569, 0.206434741069437,
122 0.206434741069437, 0.206434741069437, 0.064916995246396, 0.064916995246396, 0.064916995246396,
123 0.054460628348870, 0.054460628348870, 0.054460628348870, 0.054460628348870, 0.054460628348870,
124 0.054460628348870}};
125
126 // For cub2D_9: 19 points (19*3 = 57 elements)
127 static const std::array<double, 19 * 2> cub2D_9_nodes_data = {
128 {-0.333333333333333, -0.333333333333333, -0.020634961602525, -0.020634961602525,
129 -0.958730076794950, -0.020634961602525, -0.020634961602525, -0.958730076794950,
130 -0.125820817014127, -0.125820817014127, -0.748358365971746, -0.125820817014127,
131 -0.125820817014127, -0.748358365971746, -0.623592928761935, -0.623592928761935,
132 0.247185857523869, -0.623592928761935, -0.623592928761935, 0.247185857523869,
133 -0.910540973211095, -0.910540973211095, 0.821081946422189, -0.910540973211095,
134 -0.910540973211095, 0.821081946422189, 0.482397197568996, -0.556074021678469,
135 -0.556074021678469, 0.482397197568996, -0.926323175890527, -0.556074021678469,
136 -0.556074021678469, -0.926323175890527, -0.926323175890527, 0.482397197568996,
137 0.482397197568996, -0.926323175890527}};
138 static const std::array<double, 19> cub2D_9_weights_data = {
139 {0.194271592565598, 0.062669400454278, 0.062669400454278, 0.062669400454278, 0.155655082009549,
140 0.155655082009549, 0.155655082009549, 0.159295477854420, 0.159295477854420, 0.159295477854420,
141 0.051155351317396, 0.051155351317396, 0.051155351317396, 0.086567078754579, 0.086567078754579,
142 0.086567078754579, 0.086567078754579, 0.086567078754579, 0.086567078754579}};
143
144 // For cub2D_10: 25 points (25*3 = 75 elements)
145 static const std::array<double, 25 * 2> cub2D_10_nodes_data = {
146 {-0.333333333333333, -0.333333333333333, -0.004269134091050, -0.004269134091050,
147 -0.991461731817899, -0.004269134091050, -0.004269134091050, -0.991461731817899,
148 -0.143975100541888, -0.143975100541888, -0.712049798916225, -0.143975100541888,
149 -0.143975100541888, -0.712049798916225, -0.630487174513551, -0.630487174513551,
150 0.260974349027102, -0.630487174513551, -0.630487174513551, 0.260974349027102,
151 -0.959037562856645, -0.959037562856645, 0.918075125713290, -0.959037562856645,
152 -0.959037562856645, 0.918075125713290, -0.726852847487933, 0.656846867693389,
153 0.656846867693389, -0.726852847487933, -0.929994020205456, 0.656846867693389,
154 0.656846867693389, -0.929994020205456, -0.929994020205456, -0.726852847487933,
155 -0.726852847487933, -0.929994020205456, -0.334512798822723, 0.259414658305837,
156 0.259414658305837, -0.334512798822723, -0.924901859483115, 0.259414658305837,
157 0.259414658305837, -0.924901859483115, -0.924901859483115, -0.334512798822723,
158 -0.334512798822723, -0.924901859483115}};
159 static const std::array<double, 25> cub2D_10_weights_data = {
160 {0.167046799610393, 0.014459701184113, 0.014459701184113, 0.014459701184113,
161 0.148984355841961, 0.148984355841961, 0.148984355841961, 0.157292946806217,
162 0.157292946806217, 0.157292946806217, 0.013856646174215, 0.013856646174215,
163 0.013856646174215, 0.059036640669559, 0.059036640669559, 0.059036640669559,
164 0.059036640669559, 0.059036640669559, 0.059036640669559, 0.079158734392122,
165 0.079158734392122, 0.079158734392122, 0.079158734392122, 0.079158734392122,
166 0.079158734392122}};
167
168 // For cub2D_11: 28 points (28*3 = 84 elements)
169 static const std::array<double, 28 * 2> cub2D_11_nodes_data = {
170 {-0.333333333333333, -0.333333333333333, -0.008227986519701, -0.008227986519701,
171 -0.983544026960598, -0.008227986519701, -0.008227986519701, -0.983544026960598,
172 -0.123062767323470, -0.123062767323470, -0.753874465353061, -0.123062767323470,
173 -0.123062767323470, -0.753874465353061, -0.579583807314522, -0.579583807314522,
174 0.159167614629044, -0.579583807314522, -0.579583807314522, 0.159167614629044,
175 -0.794793191450311, -0.794793191450311, 0.589586382900622, -0.794793191450311,
176 -0.794793191450311, 0.589586382900622, -0.943045809035533, -0.943045809035533,
177 0.886091618071066, -0.943045809035533, -0.943045809035533, 0.886091618071066,
178 -0.701412405190965, 0.686811031831200, 0.686811031831200, -0.701412405190965,
179 -0.985398626640235, 0.686811031831200, 0.686811031831200, -0.985398626640235,
180 -0.985398626640235, -0.701412405190966, -0.701412405190966, -0.985398626640235,
181 -0.420944470627256, 0.328932876191794, 0.328932876191794, -0.420944470627256,
182 -0.907988405564538, 0.328932876191794, 0.328932876191794, -0.907988405564538,
183 -0.907988405564538, -0.420944470627256, -0.420944470627256, -0.907988405564538}};
184 static const std::array<double, 28> cub2D_11_weights_data = {
185 {0.171542269659139, 0.033232309648099, 0.033232309648099, 0.033232309648099, 0.134650934561697,
186 0.134650934561697, 0.134650934561697, 0.141045284213931, 0.141045284213931, 0.141045284213931,
187 0.077255352409353, 0.077255352409353, 0.077255352409353, 0.020851693311810, 0.020851693311810,
188 0.020851693311810, 0.020556454130106, 0.020556454130106, 0.020556454130106, 0.020556454130106,
189 0.020556454130106, 0.020556454130106, 0.080668713854259, 0.080668713854259, 0.080668713854259,
190 0.080668713854259, 0.080668713854259, 0.080668713854259}};
191
192 // For cub2D_12: 36 points (36*3 = 108 elements)
193 static const std::array<double, 36 * 2> cub2D_12_nodes_data = {
194 {-0.115127288420454, -0.115127288420454, -0.769745423159092, -0.115127288420454,
195 -0.115127288420454, -0.769745423159092, -0.241326933740970, -0.241326933740970,
196 -0.517346132518060, -0.241326933740970, -0.241326933740970, -0.517346132518060,
197 -0.773435586772427, -0.773435586772427, 0.546871173544855, -0.773435586772427,
198 -0.773435586772427, 0.546871173544855, -0.550360151853422, -0.550360151853422,
199 0.100720303706844, -0.550360151853422, -0.550360151853422, 0.100720303706844,
200 -0.949850839686919, -0.949850839686919, 0.899701679373837, -0.949850839686919,
201 -0.949850839686919, 0.899701679373837, -0.023247583079632, -0.023247583079632,
202 -0.953504833840737, -0.023247583079632, -0.023247583079632, -0.953504833840737,
203 0.701114686742190, -0.956341185792092, -0.956341185792092, 0.701114686742190,
204 -0.744773500950097, -0.956341185792092, -0.956341185792092, -0.744773500950097,
205 -0.744773500950097, 0.701114686742189, 0.701114686742189, -0.744773500950097,
206 0.280974603820889, -0.820754518409649, -0.820754518409649, 0.280974603820889,
207 -0.460220085411240, -0.820754518409649, -0.820754518409649, -0.460220085411240,
208 -0.460220085411240, 0.280974603820889, 0.280974603820889, -0.460220085411240,
209 0.380092839755442, -0.412599349012509, -0.412599349012509, 0.380092839755442,
210 -0.967493490742933, -0.412599349012509, -0.412599349012509, -0.967493490742933,
211 -0.967493490742933, 0.380092839755442, 0.380092839755442, -0.967493490742933}};
212 static const std::array<double, 36> cub2D_12_weights_data = {
213 {0.088694050812375, 0.088694050812375, 0.088694050812375, 0.083486638970495, 0.083486638970495,
214 0.083486638970495, 0.061949370456958, 0.061949370456958, 0.061949370456958, 0.096926744607805,
215 0.096926744607805, 0.096926744607805, 0.016284715813394, 0.016284715813394, 0.016284715813394,
216 0.047730162209543, 0.047730162209543, 0.047730162209543, 0.030740478172077, 0.030740478172077,
217 0.030740478172077, 0.030740478172077, 0.030740478172077, 0.030740478172077, 0.073364295183933,
218 0.073364295183933, 0.073364295183933, 0.073364295183933, 0.073364295183933, 0.073364295183933,
219 0.031692718542038, 0.031692718542038, 0.031692718542038, 0.031692718542038, 0.031692718542038,
220 0.031692718542038}};
221
222 // For cub2D_13: 40 points (40*3 = 120 elements)
223 static const std::array<double, 40 * 2> cub2D_13_nodes_data = {
224 {-0.333333333333333, -0.333333333333333, -0.178369512906405, -0.178369512906405,
225 -0.643260974187191, -0.178369512906405, -0.178369512906405, -0.643260974187191,
226 -0.542160866418819, -0.542160866418819, 0.084321732837639, -0.542160866418819,
227 -0.542160866418819, 0.084321732837639, -0.771083702251175, -0.771083702251175,
228 0.542167404502350, -0.771083702251175, -0.771083702251175, 0.542167404502350,
229 -0.951222762153923, -0.951222762153923, 0.902445524307847, -0.951222762153923,
230 -0.951222762153923, 0.902445524307847, -0.071124044893491, -0.071124044893491,
231 -0.857751910213018, -0.071124044893491, -0.071124044893491, -0.857751910213018,
232 0.089497598920545, -0.972567007080596, -0.972567007080596, 0.089497598920545,
233 -0.116930591839948, -0.972567007080596, -0.972567007080596, -0.116930591839948,
234 -0.116930591839948, 0.089497598920545, 0.089497598920545, -0.116930591839948,
235 0.708303576893352, -0.752827405974001, -0.752827405974001, 0.708303576893352,
236 -0.955476170919351, -0.752827405974001, -0.752827405974001, -0.955476170919351,
237 -0.955476170919351, 0.708303576893352, 0.708303576893352, -0.955476170919351,
238 0.400693795223418, -0.438009873048077, -0.438009873048077, 0.400693795223418,
239 -0.962683922175342, -0.438009873048076, -0.438009873048076, -0.962683922175342,
240 -0.962683922175342, 0.400693795223419, 0.400693795223419, -0.962683922175342,
241 -0.461147708177324, -0.809703416305633, -0.809703416305633, -0.461147708177324,
242 0.270851124482956, -0.809703416305633, -0.809703416305633, 0.270851124482956,
243 0.270851124482956, -0.461147708177324, -0.461147708177324, 0.270851124482956}};
244 static const std::array<double, 40> cub2D_13_weights_data = {
245 {0.097649880256618, 0.090830392435257, 0.090830392435257, 0.090830392435257,
246 0.093688172298398, 0.093688172298398, 0.093688172298398, 0.062636625766914,
247 0.062636625766914, 0.062636625766914, 0.015384123058757, 0.015384123058757,
248 0.015384123058757, 0.063336411850675, 0.063336411850675, 0.063336411850675,
249 0.017363112895214, 0.017363112895214, 0.017363112895214, 0.017363112895214,
250 0.017363112895214, 0.017363112895214, 0.030203519313196, 0.030203519313196,
251 0.030203519313196, 0.030203519313196, 0.030203519313196, 0.030203519313196,
252 0.032954120635442, 0.032954120635442, 0.032954120635442, 0.032954120635442,
253 0.032954120635442, 0.032954120635442, 0.073599737741711, 0.073599737741711,
254 0.073599737741711, 0.073599737741711, 0.073599737741711, 0.073599737741711}};
255
256 // For cub2D_14: 46 points (46*3 = 138 elements)
257 static const std::array<double, 46 * 2> cub2D_14_nodes_data = {
258 {-0.333333333333333, -0.333333333333333, -0.031437623162377, -0.031437623162377,
259 -0.937124753675245, -0.031437623162377, -0.031437623162377, -0.937124753675245,
260 -0.190179067155837, -0.190179067155837, -0.619641865688325, -0.190179067155837,
261 -0.190179067155837, -0.619641865688325, -0.544945017724160, -0.544945017724160,
262 0.089890035448320, -0.544945017724160, -0.544945017724160, 0.089890035448320,
263 -0.829084434528895, -0.829084434528895, 0.658168869057790, -0.829084434528895,
264 -0.829084434528895, 0.658168869057790, -0.961731843229187, -0.961731843229187,
265 0.923463686458374, -0.961731843229187, -0.961731843229187, 0.923463686458374,
266 -0.228055909294146, 0.200257489743243, 0.200257489743243, -0.228055909294146,
267 -0.972201580449098, 0.200257489743243, 0.200257489743243, -0.972201580449098,
268 -0.972201580449097, -0.228055909294146, -0.228055909294146, -0.972201580449097,
269 -0.801926305237733, 0.769518568627872, 0.769518568627872, -0.801926305237733,
270 -0.967592263390139, 0.769518568627872, 0.769518568627872, -0.967592263390139,
271 -0.967592263390139, -0.801926305237733, -0.801926305237733, -0.967592263390139,
272 -0.544893784145096, 0.504355701557747, 0.504355701557747, -0.544893784145096,
273 -0.959461917412651, 0.504355701557747, 0.504355701557747, -0.959461917412651,
274 -0.959461917412651, -0.544893784145095, -0.544893784145095, -0.959461917412651,
275 -0.288429073961769, 0.109399611316741, 0.109399611316741, -0.288429073961769,
276 -0.820970537354972, 0.109399611316741, 0.109399611316741, -0.820970537354972,
277 -0.820970537354972, -0.288429073961769, -0.288429073961769, -0.820970537354972,
278 -0.593507885280605, 0.397658756992448, 0.397658756992448, -0.593507885280605,
279 -0.804150871711842, 0.397658756992447, 0.397658756992447, -0.804150871711842,
280 -0.804150871711842, -0.593507885280605, -0.593507885280605, -0.804150871711842}};
281 static const std::array<double, 46> cub2D_14_weights_data = {
282 {0.086016161940337, 0.020861042581505, 0.020861042581505, 0.020861042581505, 0.084906577433761,
283 0.084906577433761, 0.084906577433761, 0.094412955694385, 0.094412955694385, 0.094412955694385,
284 0.036931420530108, 0.036931420530108, 0.036931420530108, 0.009566859223433, 0.009566859223433,
285 0.009566859223433, 0.023873332102599, 0.023873332102599, 0.023873332102599, 0.023873332102599,
286 0.023873332102599, 0.023873332102599, 0.018006541968931, 0.018006541968931, 0.018006541968931,
287 0.018006541968931, 0.018006541968931, 0.018006541968931, 0.030117913357456, 0.030117913357456,
288 0.030117913357456, 0.030117913357456, 0.030117913357456, 0.030117913357456, 0.067035335144205,
289 0.067035335144205, 0.067035335144205, 0.067035335144205, 0.067035335144205, 0.067035335144205,
290 0.056624756038490, 0.056624756038490, 0.056624756038490, 0.056624756038490, 0.056624756038490,
291 0.056624756038490}};
292
293 static const std::array<double, 54 * 2> cub2D_15_nodes_data = {
294 {-0.083438407261750, -0.083438407261750, -0.833123185476500, -0.083438407261750,
295 -0.083438407261750, -0.833123185476500, -0.192779070841739, -0.192779070841739,
296 -0.614441858316522, -0.192779070841739, -0.192779070841739, -0.614441858316522,
297 -0.413605664173949, -0.413605664173949, -0.172788671652101, -0.413605664173949,
298 -0.413605664173949, -0.172788671652101, -0.707064426114454, -0.707064426114454,
299 0.414128852228908, -0.707064426114454, -0.707064426114454, 0.414128852228908,
300 -0.887274264668793, -0.887274264668793, 0.774548529337586, -0.887274264668793,
301 -0.887274264668793, 0.774548529337586, -0.966849746283259, -0.966849746283259,
302 0.933699492566519, -0.966849746283259, -0.966849746283259, 0.933699492566519,
303 -0.520930891690411, 0.501106485071962, 0.501106485071962, -0.520930891690411,
304 -0.980175593381550, 0.501106485071962, 0.501106485071962, -0.980175593381550,
305 -0.980175593381550, -0.520930891690411, -0.520930891690411, -0.980175593381550,
306 -0.190242385363320, 0.158634844102864, 0.158634844102864, -0.190242385363320,
307 -0.968392458739544, 0.158634844102864, 0.158634844102864, -0.968392458739544,
308 -0.968392458739544, -0.190242385363320, -0.190242385363320, -0.968392458739544,
309 -0.809995773773910, 0.799708556139969, 0.799708556139969, -0.809995773773910,
310 -0.989712782366059, 0.799708556139969, 0.799708556139969, -0.989712782366059,
311 -0.989712782366059, -0.809995773773910, -0.809995773773910, -0.989712782366059,
312 -0.700493785355452, 0.602649133849474, 0.602649133849474, -0.700493785355452,
313 -0.902155348494022, 0.602649133849474, 0.602649133849474, -0.902155348494022,
314 -0.902155348494023, -0.700493785355452, -0.700493785355452, -0.902155348494023,
315 -0.426160775117330, 0.288623277852292, 0.288623277852292, -0.426160775117330,
316 -0.862462502734962, 0.288623277852292, 0.288623277852292, -0.862462502734962,
317 -0.862462502734962, -0.426160775117330, -0.426160775117330, -0.862462502734962,
318 -0.436328663801831, 0.099519827552432, 0.099519827552432, -0.436328663801831,
319 -0.663191163750602, 0.099519827552432, 0.099519827552432, -0.663191163750602,
320 -0.663191163750602, -0.436328663801831, -0.436328663801831, -0.663191163750602}};
321 static const std::array<double, 54> cub2D_15_weights_data = {
322 {0.065323637697611, 0.065323637697611, 0.065323637697611, 0.054825636062729, 0.054825636062729,
323 0.054825636062729, 0.053020073197407, 0.053020073197407, 0.053020073197407, 0.058431924272972,
324 0.058431924272972, 0.058431924272972, 0.021169216132488, 0.021169216132488, 0.021169216132488,
325 0.007229286128184, 0.007229286128184, 0.007229286128184, 0.017055496203419, 0.017055496203419,
326 0.017055496203419, 0.017055496203419, 0.017055496203419, 0.017055496203419, 0.027832353033384,
327 0.027832353033384, 0.027832353033384, 0.027832353033384, 0.027832353033384, 0.027832353033384,
328 0.008583865881470, 0.008583865881470, 0.008583865881470, 0.008583865881470, 0.008583865881470,
329 0.008583865881470, 0.032470658563550, 0.032470658563550, 0.032470658563550, 0.032470658563550,
330 0.032470658563550, 0.032470658563550, 0.051214681842525, 0.051214681842525, 0.051214681842525,
331 0.051214681842525, 0.051214681842525, 0.051214681842525, 0.066176391063291, 0.066176391063291,
332 0.066176391063291, 0.066176391063291, 0.066176391063291, 0.066176391063291}};
333
334 // For cub2D_16: 58 points (58*3 = 174 elements)
335 static const std::array<double, 58 * 2> cub2D_16_nodes_data = {
336 {-0.333333333333333, -0.333333333333333, -0.015796436959213, -0.015796436959213,
337 -0.968407126081574, -0.015796436959213, -0.015796436959213, -0.968407126081574,
338 -0.087376299046785, -0.087376299046785, -0.825247401906431, -0.087376299046785,
339 -0.087376299046785, -0.825247401906431, -0.640498098534045, -0.640498098534045,
340 0.280996197068091, -0.640498098534045, -0.640498098534045, 0.280996197068091,
341 -0.828211591878549, -0.828211591878549, 0.656423183757099, -0.828211591878549,
342 -0.828211591878549, 0.656423183757099, -0.977882767295650, -0.977882767295650,
343 0.955765534591299, -0.977882767295650, -0.977882767295650, 0.955765534591299,
344 -0.648594849699253, 0.619534954455185, 0.619534954455185, -0.648594849699253,
345 -0.970940104755933, 0.619534954455185, 0.619534954455185, -0.970940104755933,
346 -0.970940104755933, -0.648594849699253, -0.648594849699253, -0.970940104755933,
347 -0.355089058161032, 0.324703448463838, 0.324703448463838, -0.355089058161032,
348 -0.969614390302806, 0.324703448463838, 0.324703448463838, -0.969614390302806,
349 -0.969614390302806, -0.355089058161032, -0.355089058161032, -0.969614390302806,
350 -0.863082725186344, 0.829810165174004, 0.829810165174004, -0.863082725186344,
351 -0.966727439987660, 0.829810165174004, 0.829810165174004, -0.966727439987660,
352 -0.966727439987660, -0.863082725186344, -0.863082725186344, -0.966727439987660,
353 -0.650110471151428, 0.511910525190604, 0.511910525190604, -0.650110471151428,
354 -0.861800054039176, 0.511910525190604, 0.511910525190604, -0.861800054039176,
355 -0.861800054039176, -0.650110471151428, -0.650110471151428, -0.861800054039176,
356 -0.282624366842035, 0.131065359625217, 0.131065359625217, -0.282624366842035,
357 -0.848440992783182, 0.131065359625217, 0.131065359625217, -0.848440992783182,
358 -0.848440992783182, -0.282624366842035, -0.282624366842035, -0.848440992783182,
359 -0.500121711290305, 0.333566061453817, 0.333566061453817, -0.500121711290305,
360 -0.833444350163512, 0.333566061453817, 0.333566061453817, -0.833444350163512,
361 -0.833444350163512, -0.500121711290305, -0.500121711290305, -0.833444350163512,
362 -0.353308953197778, -0.027538833736648, -0.027538833736648, -0.353308953197778,
363 -0.619152213065573, -0.027538833736648, -0.027538833736648, -0.619152213065573,
364 -0.619152213065573, -0.353308953197778, -0.353308953197778, -0.619152213065573}};
365 static const std::array<double, 58> cub2D_16_weights_data = {
366 {0.092421202321849, 0.027991652734724, 0.027991652734724, 0.027991652734724, 0.036406763596424,
367 0.036406763596424, 0.036406763596424, 0.062729423327251, 0.062729423327251, 0.062729423327251,
368 0.032217170192673, 0.032217170192673, 0.032217170192673, 0.003676792575648, 0.003676792575648,
369 0.003676792575648, 0.019075686313307, 0.019075686313307, 0.019075686313307, 0.019075686313307,
370 0.019075686313307, 0.019075686313307, 0.025111336723323, 0.025111336723323, 0.025111336723323,
371 0.025111336723323, 0.025111336723323, 0.025111336723323, 0.014134510743040, 0.014134510743040,
372 0.014134510743040, 0.014134510743040, 0.014134510743040, 0.014134510743040, 0.025255543672496,
373 0.025255543672496, 0.025255543672496, 0.025255543672496, 0.025255543672496, 0.025255543672496,
374 0.038432852520849, 0.038432852520849, 0.038432852520849, 0.038432852520849, 0.038432852520849,
375 0.038432852520849, 0.032993291211606, 0.032993291211606, 0.032993291211606, 0.032993291211606,
376 0.032993291211606, 0.032993291211606, 0.081415677215044, 0.081415677215044, 0.081415677215044,
377 0.081415677215044, 0.081415677215044, 0.081415677215044}};
378
379 // For cub2D_17: 66 points (66*3 = 198 elements)
380 static const std::array<double, 66 * 2> cub2D_17_nodes_data = {
381 {-0.013565183960096, -0.013565183960096, -0.972869632079808, -0.013565183960096,
382 -0.013565183960096, -0.972869632079808, -0.918012666387151, -0.918012666387151,
383 0.836025332774302, -0.918012666387151, -0.918012666387151, 0.836025332774302,
384 -0.469265478050798, -0.469265478050798, -0.061469043898404, -0.469265478050798,
385 -0.469265478050798, -0.061469043898404, -0.278161974512876, -0.278161974512876,
386 -0.443676050974249, -0.278161974512876, -0.278161974512876, -0.443676050974249,
387 -0.743831619059579, -0.743831619059579, 0.487663238119159, -0.743831619059579,
388 -0.743831619059579, 0.487663238119159, -0.975086972700342, -0.975086972700342,
389 0.950173945400684, -0.975086972700342, -0.975086972700342, 0.950173945400684,
390 -0.331485915788080, 0.305875449252880, 0.305875449252880, -0.331485915788080,
391 -0.974389533464800, 0.305875449252880, 0.305875449252880, -0.974389533464800,
392 -0.974389533464800, -0.331485915788080, -0.331485915788080, -0.974389533464800,
393 -0.617368143234940, 0.598534426856625, 0.598534426856625, -0.617368143234940,
394 -0.981166283621686, 0.598534426856625, 0.598534426856625, -0.981166283621686,
395 -0.981166283621686, -0.617368143234940, -0.617368143234940, -0.981166283621686,
396 -0.846737941679184, 0.837351785097968, 0.837351785097968, -0.846737941679184,
397 -0.990613843418784, 0.837351785097968, 0.837351785097968, -0.990613843418784,
398 -0.990613843418784, -0.846737941679184, -0.846737941679184, -0.990613843418784,
399 -0.530582382227094, 0.412831673770520, 0.412831673770520, -0.530582382227094,
400 -0.882249291543426, 0.412831673770520, 0.412831673770520, -0.882249291543426,
401 -0.882249291543426, -0.530582382227094, -0.530582382227094, -0.882249291543426,
402 -0.230167008731505, 0.092655855430620, 0.092655855430620, -0.230167008731505,
403 -0.862488846699115, 0.092655855430620, 0.092655855430620, -0.862488846699115,
404 -0.862488846699115, -0.230167008731505, -0.230167008731505, -0.862488846699115,
405 -0.769841956364772, 0.681416462088999, 0.681416462088999, -0.769841956364772,
406 -0.911574505724228, 0.681416462088999, 0.681416462088999, -0.911574505724228,
407 -0.911574505724228, -0.769841956364772, -0.769841956364772, -0.911574505724228,
408 -0.502901760016855, 0.206946937904245, 0.206946937904245, -0.502901760016855,
409 -0.704045177887389, 0.206946937904245, 0.206946937904245, -0.704045177887389,
410 -0.704045177887389, -0.502901760016855, -0.502901760016855, -0.704045177887389,
411 -0.258115377755090, -0.067105414124881, -0.067105414124881, -0.258115377755090,
412 -0.674779208120030, -0.067105414124880, -0.067105414124880, -0.674779208120030,
413 -0.674779208120030, -0.258115377755090, -0.258115377755090, -0.674779208120030}};
414 static const std::array<double, 66> cub2D_17_weights_data = {
415 {0.022448424077156, 0.022448424077156, 0.022448424077156, 0.011377816766740, 0.011377816766740,
416 0.011377816766740, 0.056148078797670, 0.056148078797670, 0.056148078797670, 0.031804753050686,
417 0.031804753050686, 0.031804753050686, 0.042944604159838, 0.042944604159838, 0.042944604159838,
418 0.004138336267131, 0.004138336267131, 0.004138336267131, 0.020094111670483, 0.020094111670483,
419 0.020094111670483, 0.020094111670483, 0.020094111670483, 0.020094111670483, 0.013023443943004,
420 0.013023443943004, 0.013023443943004, 0.013023443943004, 0.013023443943004, 0.013023443943004,
421 0.005856954369545, 0.005856954369545, 0.005856954369545, 0.005856954369545, 0.005856954369545,
422 0.005856954369545, 0.037746172643499, 0.037746172643499, 0.037746172643499, 0.037746172643499,
423 0.037746172643499, 0.037746172643499, 0.048362752988591, 0.048362752988591, 0.048362752988591,
424 0.048362752988591, 0.048362752988591, 0.048362752988591, 0.023467126169388, 0.023467126169388,
425 0.023467126169388, 0.023467126169388, 0.023467126169388, 0.023467126169388, 0.054703428836887,
426 0.054703428836887, 0.054703428836887, 0.054703428836887, 0.054703428836887, 0.054703428836887,
427 0.045648336152327, 0.045648336152327, 0.045648336152327, 0.045648336152327, 0.045648336152327,
428 0.045648336152327}};
429
430 // For cub2D_18: 73 points (73*3 = 219 elements)
431 static const std::array<double, 73 * 2> cub2D_18_nodes_data = {
432 {-0.333333333333333, -0.333333333333333, -0.012131216528029, -0.012131216528029,
433 -0.975737566943942, -0.012131216528029, -0.012131216528029, -0.975737566943942,
434 -0.230136518749796, -0.230136518749796, -0.539726962500408, -0.230136518749796,
435 -0.230136518749796, -0.539726962500408, -0.499402807850562, -0.499402807850562,
436 -0.001194384298875, -0.499402807850563, -0.499402807850563, -0.001194384298875,
437 -0.710045241598598, -0.710045241598598, 0.420090483197196, -0.710045241598598,
438 -0.710045241598598, 0.420090483197196, -0.903019171569391, -0.903019171569391,
439 0.806038343138783, -0.903019171569391, -0.903019171569391, 0.806038343138783,
440 -0.972866921676664, -0.972866921676664, 0.945733843353328, -0.972866921676664,
441 -0.972866921676664, 0.945733843353328, -0.859848143426920, 0.852682278520227,
442 0.852682278520227, -0.859848143426920, -0.992834135093306, 0.852682278520227,
443 0.852682278520227, -0.992834135093306, -0.992834135093306, -0.859848143426920,
444 -0.859848143426920, -0.992834135093306, -0.592208428296456, 0.573110619333459,
445 0.573110619333459, -0.592208428296456, -0.980902191037003, 0.573110619333459,
446 0.573110619333459, -0.980902191037003, -0.980902191037003, -0.592208428296456,
447 -0.592208428296456, -0.980902191037003, -0.316660705097116, 0.294011442575493,
448 0.294011442575493, -0.316660705097116, -0.977350737478378, 0.294011442575493,
449 0.294011442575493, -0.977350737478378, -0.977350737478378, -0.316660705097116,
450 -0.316660705097116, -0.977350737478378, -0.762708275393600, 0.720805143081058,
451 0.720805143081058, -0.762708275393600, -0.958096867687458, 0.720805143081058,
452 0.720805143081058, -0.958096867687458, -0.958096867687458, -0.762708275393600,
453 -0.762708275393600, -0.958096867687458, -0.499464753852078, 0.389673957377540,
454 0.389673957377540, -0.499464753852078, -0.890209203525462, 0.389673957377540,
455 0.389673957377540, -0.890209203525462, -0.890209203525462, -0.499464753852078,
456 -0.499464753852078, -0.890209203525462, -0.730193961187213, 0.595225312221749,
457 0.595225312221749, -0.730193961187213, -0.865031351034536, 0.595225312221749,
458 0.595225312221749, -0.865031351034536, -0.865031351034535, -0.730193961187213,
459 -0.730193961187213, -0.865031351034535, -0.213662181077459, 0.092159471784540,
460 0.092159471784540, -0.213662181077459, -0.878497290707081, 0.092159471784540,
461 0.092159471784540, -0.878497290707081, -0.878497290707081, -0.213662181077459,
462 -0.213662181077459, -0.878497290707081, -0.268906542375276, -0.010964677486621,
463 -0.010964677486621, -0.268906542375276, -0.720128780138103, -0.010964677486621,
464 -0.010964677486621, -0.720128780138103, -0.720128780138103, -0.268906542375276,
465 -0.268906542375276, -0.720128780138103, -0.507963230765286, 0.233062121320884,
466 0.233062121320884, -0.507963230765286, -0.725098890555598, 0.233062121320884,
467 0.233062121320884, -0.725098890555598, -0.725098890555598, -0.507963230765286,
468 -0.507963230765286, -0.725098890555598}};
469 static const std::array<double, 73> cub2D_18_weights_data = {
470 {0.044365924378076, 0.019118866558615, 0.019118866558615, 0.019118866558615, 0.049294282264207,
471 0.049294282264207, 0.049294282264207, 0.060654125981259, 0.060654125981259, 0.060654125981259,
472 0.031366231844497, 0.031366231844497, 0.031366231844497, 0.016173035699059, 0.016173035699059,
473 0.016173035699059, 0.004750076743416, 0.004750076743416, 0.004750076743416, 0.004329998364046,
474 0.004329998364046, 0.004329998364046, 0.004329998364046, 0.004329998364046, 0.004329998364046,
475 0.012300136592151, 0.012300136592151, 0.012300136592151, 0.012300136592151, 0.012300136592151,
476 0.012300136592151, 0.017146550496094, 0.017146550496094, 0.017146550496094, 0.017146550496094,
477 0.017146550496094, 0.017146550496094, 0.010992784367686, 0.010992784367686, 0.010992784367686,
478 0.010992784367686, 0.010992784367686, 0.010992784367686, 0.033988423627451, 0.033988423627451,
479 0.033988423627451, 0.033988423627451, 0.033988423627451, 0.033988423627451, 0.025768775250048,
480 0.025768775250048, 0.025768775250048, 0.025768775250048, 0.025768775250048, 0.025768775250048,
481 0.040023698716305, 0.040023698716305, 0.040023698716305, 0.040023698716305, 0.040023698716305,
482 0.040023698716305, 0.045277248097616, 0.045277248097616, 0.045277248097616, 0.045277248097616,
483 0.045277248097616, 0.045277248097616, 0.045433087546729, 0.045433087546729, 0.045433087546729,
484 0.045433087546729, 0.045433087546729, 0.045433087546729}};
485
486 // For cub2D_19: 82 points (82*3 = 246 elements)
487 static const std::array<double, 82 * 2> cub2D_19_nodes_data = {
488 {-0.333333333333333, -0.333333333333333, -0.121193890022463, -0.121193890022463,
489 -0.757612219955075, -0.121193890022463, -0.121193890022463, -0.757612219955075,
490 -0.227921589064499, -0.227921589064499, -0.544156821871001, -0.227921589064499,
491 -0.227921589064499, -0.544156821871001, -0.480832787187258, -0.480832787187258,
492 -0.038334425625484, -0.480832787187258, -0.480832787187258, -0.038334425625484,
493 -0.607587000462791, -0.607587000462791, 0.215174000925582, -0.607587000462791,
494 -0.607587000462791, 0.215174000925582, -0.728032884013154, -0.728032884013154,
495 0.456065768026307, -0.728032884013154, -0.728032884013154, 0.456065768026307,
496 -0.884999963315497, -0.884999963315497, 0.769999926630994, -0.884999963315497,
497 -0.884999963315497, 0.769999926630994, -0.973927705240279, -0.973927705240279,
498 0.947855410480559, -0.973927705240279, -0.973927705240279, 0.947855410480559,
499 -0.419340397282846, 0.418549313572482, 0.418549313572482, -0.419340397282846,
500 -0.999208916289636, 0.418549313572482, 0.418549313572482, -0.999208916289636,
501 -0.999208916289636, -0.419340397282846, -0.419340397282846, -0.999208916289636,
502 -0.154285565801825, 0.131285016869205, 0.131285016869205, -0.154285565801825,
503 -0.976999451067380, 0.131285016869205, 0.131285016869205, -0.976999451067380,
504 -0.976999451067380, -0.154285565801825, -0.154285565801825, -0.976999451067380,
505 -0.864328042937615, 0.842262778125134, 0.842262778125134, -0.864328042937615,
506 -0.977934735187519, 0.842262778125134, 0.842262778125134, -0.977934735187519,
507 -0.977934735187519, -0.864328042937615, -0.864328042937615, -0.977934735187519,
508 -0.676980679779850, 0.654351228666662, 0.654351228666662, -0.676980679779850,
509 -0.977370548886812, 0.654351228666662, 0.654351228666662, -0.977370548886812,
510 -0.977370548886812, -0.676980679779850, -0.676980679779850, -0.977370548886812,
511 -0.451038034994882, 0.391933493150074, 0.391933493150074, -0.451038034994882,
512 -0.940895458155192, 0.391933493150074, 0.391933493150074, -0.940895458155192,
513 -0.940895458155192, -0.451038034994882, -0.451038034994882, -0.940895458155192,
514 -0.755079003035426, 0.643775758022122, 0.643775758022122, -0.755079003035426,
515 -0.888696754986697, 0.643775758022122, 0.643775758022122, -0.888696754986697,
516 -0.888696754986697, -0.755079003035426, -0.755079003035426, -0.888696754986697,
517 -0.668500025831376, 0.544622467980326, 0.544622467980326, -0.668500025831376,
518 -0.876122442148950, 0.544622467980326, 0.544622467980326, -0.876122442148950,
519 -0.876122442148950, -0.668500025831376, -0.668500025831376, -0.876122442148950,
520 -0.205954158284095, 0.090524206162520, 0.090524206162520, -0.205954158284095,
521 -0.884570047878425, 0.090524206162520, 0.090524206162520, -0.884570047878425,
522 -0.884570047878425, -0.205954158284095, -0.205954158284095, -0.884570047878425,
523 -0.488476686471250, 0.295757669634562, 0.295757669634562, -0.488476686471250,
524 -0.807280983163311, 0.295757669634562, 0.295757669634562, -0.807280983163311,
525 -0.807280983163311, -0.488476686471250, -0.488476686471250, -0.807280983163311,
526 -0.342507806805715, 0.042214391480752, 0.042214391480752, -0.342507806805715,
527 -0.699706584675037, 0.042214391480751, 0.042214391480751, -0.699706584675037,
528 -0.699706584675037, -0.342507806805715, -0.342507806805715, -0.699706584675037}};
529 static const std::array<double, 82> cub2D_19_weights_data = {
530 {0.041424760048010, 0.031784855337689, 0.031784855337689, 0.031784855337689, 0.048406599909930,
531 0.048406599909930, 0.048406599909930, 0.048177661858475, 0.048177661858475, 0.048177661858475,
532 0.042691162490028, 0.042691162490028, 0.042691162490028, 0.031889013978028, 0.031889013978028,
533 0.031889013978028, 0.015529272923518, 0.015529272923518, 0.015529272923518, 0.004442852871415,
534 0.004442852871415, 0.004442852871415, 0.004599409024561, 0.004599409024561, 0.004599409024561,
535 0.004599409024561, 0.004599409024561, 0.004599409024561, 0.016608327001253, 0.016608327001253,
536 0.016608327001253, 0.016608327001253, 0.016608327001253, 0.016608327001253, 0.008508350664254,
537 0.008508350664254, 0.008508350664254, 0.008508350664254, 0.008508350664254, 0.008508350664254,
538 0.012752760516072, 0.012752760516072, 0.012752760516072, 0.012752760516072, 0.012752760516072,
539 0.012752760516072, 0.024864731137205, 0.024864731137205, 0.024864731137205, 0.024864731137205,
540 0.024864731137205, 0.024864731137205, 0.012779469878381, 0.012779469878381, 0.012779469878381,
541 0.012779469878381, 0.012779469878381, 0.012779469878381, 0.017801502950615, 0.017801502950615,
542 0.017801502950615, 0.017801502950615, 0.017801502950615, 0.017801502950615, 0.035738233266717,
543 0.035738233266717, 0.035738233266717, 0.035738233266717, 0.035738233266717, 0.035738233266717,
544 0.038344199404453, 0.038344199404453, 0.038344199404453, 0.038344199404453, 0.038344199404453,
545 0.038344199404453, 0.042971513130613, 0.042971513130613, 0.042971513130613, 0.042971513130613,
546 0.042971513130613, 0.042971513130613}};
547
548 // For cub2D_20: 85 points (85*3 = 255 elements)
549 static const std::array<double, 85 * 2> cub2D_20_nodes_data = {
550 {-0.333333333333333, -0.333333333333333, -0.001500649324429, -0.001500649324429,
551 -0.996998701351142, -0.001500649324429, -0.001500649324429, -0.996998701351142,
552 -0.094139751938951, -0.094139751938951, -0.811720496122098, -0.094139751938951,
553 -0.094139751938951, -0.811720496122098, -0.204472124089526, -0.204472124089526,
554 -0.591055751820947, -0.204472124089526, -0.204472124089526, -0.591055751820947,
555 -0.470999594934425, -0.470999594934425, -0.058000810131149, -0.470999594934425,
556 -0.470999594934425, -0.058000810131149, -0.577962071815846, -0.577962071815846,
557 0.155924143631693, -0.577962071815846, -0.577962071815846, 0.155924143631693,
558 -0.784528785657457, -0.784528785657457, 0.569057571314915, -0.784528785657457,
559 -0.784528785657457, 0.569057571314915, -0.921861824324395, -0.921861824324395,
560 0.843723648648789, -0.921861824324395, -0.921861824324395, 0.843723648648789,
561 -0.977651240541341, -0.977651240541341, 0.955302481082681, -0.977651240541341,
562 -0.977651240541341, 0.955302481082681, -0.872900668183296, 0.862201431808621,
563 0.862201431808621, -0.872900668183296, -0.989300763625325, 0.862201431808621,
564 0.862201431808621, -0.989300763625325, -0.989300763625325, -0.872900668183295,
565 -0.872900668183295, -0.989300763625325, -0.685786162118586, 0.669876527986188,
566 0.669876527986188, -0.685786162118586, -0.984090365867602, 0.669876527986188,
567 0.669876527986188, -0.984090365867602, -0.984090365867602, -0.685786162118586,
568 -0.685786162118586, -0.984090365867602, -0.208715771271252, 0.187870974708724,
569 0.187870974708724, -0.208715771271252, -0.979155203437472, 0.187870974708724,
570 0.187870974708724, -0.979155203437472, -0.979155203437472, -0.208715771271252,
571 -0.208715771271252, -0.979155203437472, -0.453664858574179, 0.431736028981932,
572 0.431736028981932, -0.453664858574179, -0.978071170407753, 0.431736028981932,
573 0.431736028981932, -0.978071170407753, -0.978071170407753, -0.453664858574179,
574 -0.453664858574179, -0.978071170407753, -0.796429235029966, 0.719295810859041,
575 0.719295810859041, -0.796429235029966, -0.922866575829075, 0.719295810859041,
576 0.719295810859041, -0.922866575829075, -0.922866575829075, -0.796429235029966,
577 -0.796429235029966, -0.922866575829075, -0.106682901647172, 0.035521886012736,
578 0.035521886012736, -0.106682901647172, -0.928838984365563, 0.035521886012736,
579 0.035521886012736, -0.928838984365563, -0.928838984365564, -0.106682901647172,
580 -0.106682901647172, -0.928838984365564, -0.601978411700994, 0.502636778975466,
581 0.502636778975466, -0.601978411700994, -0.900658367274472, 0.502636778975466,
582 0.502636778975466, -0.900658367274472, -0.900658367274472, -0.601978411700994,
583 -0.601978411700994, -0.900658367274472, -0.351477632615435, 0.234438182446771,
584 0.234438182446771, -0.351477632615435, -0.882960549831337, 0.234438182446771,
585 0.234438182446771, -0.882960549831337, -0.882960549831337, -0.351477632615435,
586 -0.351477632615435, -0.882960549831337, -0.582937273579734, 0.339941699570946,
587 0.339941699570946, -0.582937273579734, -0.757004425991211, 0.339941699570946,
588 0.339941699570946, -0.757004425991211, -0.757004425991211, -0.582937273579734,
589 -0.582937273579734, -0.757004425991211, -0.353658866927485, 0.072237177039608,
590 0.072237177039608, -0.353658866927485, -0.718578310112123, 0.072237177039608,
591 0.072237177039608, -0.718578310112123, -0.718578310112123, -0.353658866927485,
592 -0.353658866927485, -0.718578310112123}};
593 static const std::array<double, 85> cub2D_20_weights_data = {
594 {0.055220853995399, 0.003558059094653, 0.003558059094653, 0.003558059094653,
595 0.040224796227922, 0.040224796227922, 0.040224796227922, 0.053635694518663,
596 0.053635694518663, 0.053635694518663, 0.049046267603004, 0.049046267603004,
597 0.049046267603004, 0.032789156821391, 0.032789156821391, 0.032789156821391,
598 0.029591814797299, 0.029591814797299, 0.029591814797299, 0.009158564555409,
599 0.009158564555409, 0.009158564555409, 0.003303653031152, 0.003303653031152,
600 0.003303653031152, 0.004698341817151, 0.004698341817151, 0.004698341817151,
601 0.004698341817151, 0.004698341817151, 0.004698341817151, 0.008931851508364,
602 0.008931851508364, 0.008931851508364, 0.008931851508364, 0.008931851508364,
603 0.008931851508364, 0.012199133615816, 0.012199133615816, 0.012199133615816,
604 0.012199133615816, 0.012199133615816, 0.012199133615816, 0.013782162654376,
605 0.013782162654376, 0.013782162654376, 0.013782162654376, 0.013782162654376,
606 0.013782162654376, 0.015994950144956, 0.015994950144956, 0.015994950144956,
607 0.015994950144956, 0.015994950144956, 0.015994950144956, 0.014772268570672,
608 0.014772268570672, 0.014772268570672, 0.014772268570672, 0.014772268570672,
609 0.014772268570672, 0.025598663757297, 0.025598663757297, 0.025598663757297,
610 0.025598663757297, 0.025598663757297, 0.025598663757297, 0.034516142351393,
611 0.034516142351393, 0.034516142351393, 0.034516142351393, 0.034516142351393,
612 0.034516142351393, 0.037345891805871, 0.037345891805871, 0.037345891805871,
613 0.037345891805871, 0.037345891805871, 0.037345891805871, 0.045636448116791,
614 0.045636448116791, 0.045636448116791, 0.045636448116791, 0.045636448116791,
615 0.045636448116791}};
616
617 // For cub2D_21: 93 points (93*3 = 279 elements)
618 static const std::array<double, 93 * 2> cub2D_21_nodes_data = {
619 {-0.006427416686680, -0.006427416686680, -0.987145166626641, -0.006427416686680,
620 -0.006427416686680, -0.987145166626641, -0.037371238381685, -0.037371238381685,
621 -0.925257523236629, -0.037371238381685, -0.037371238381685, -0.925257523236629,
622 -0.101972641308225, -0.101972641308225, -0.796054717383551, -0.101972641308225,
623 -0.101972641308225, -0.796054717383551, -0.405469125577621, -0.405469125577621,
624 -0.189061748844758, -0.405469125577621, -0.405469125577621, -0.189061748844758,
625 -0.556282620757932, -0.556282620757932, 0.112565241515865, -0.556282620757932,
626 -0.556282620757932, 0.112565241515865, -0.787490889149774, -0.787490889149774,
627 0.574981778299548, -0.787490889149774, -0.787490889149774, 0.574981778299548,
628 -0.892713038713217, -0.892713038713217, 0.785426077426434, -0.892713038713217,
629 -0.892713038713217, 0.785426077426434, -0.975095902008750, 0.956581360464913,
630 0.956581360464913, -0.975095902008750, -0.981485458456163, 0.956581360464913,
631 0.956581360464913, -0.981485458456163, -0.981485458456163, -0.975095902008750,
632 -0.975095902008750, -0.981485458456163, -0.734190363492767, 0.718759150923754,
633 0.718759150923754, -0.734190363492767, -0.984568787430988, 0.718759150923754,
634 0.718759150923754, -0.984568787430988, -0.984568787430988, -0.734190363492767,
635 -0.734190363492767, -0.984568787430988, -0.279909645448207, 0.260066127858194,
636 0.260066127858194, -0.279909645448207, -0.980156482409987, 0.260066127858194,
637 0.260066127858194, -0.980156482409987, -0.980156482409987, -0.279909645448207,
638 -0.279909645448207, -0.980156482409987, -0.527626383829046, 0.508213994286434,
639 0.508213994286434, -0.527626383829046, -0.980587610457388, 0.508213994286434,
640 0.508213994286434, -0.980587610457388, -0.980587610457388, -0.527626383829046,
641 -0.527626383829046, -0.980587610457388, -0.887945885434766, 0.867094084690673,
642 0.867094084690673, -0.887945885434766, -0.979148199255907, 0.867094084690673,
643 0.867094084690673, -0.979148199255907, -0.979148199255907, -0.887945885434766,
644 -0.887945885434766, -0.979148199255907, -0.738154400021390, 0.655149643679198,
645 0.655149643679198, -0.738154400021390, -0.916995243657807, 0.655149643679198,
646 0.655149643679198, -0.916995243657807, -0.916995243657807, -0.738154400021390,
647 -0.738154400021390, -0.916995243657807, -0.296840355384531, 0.194393499586184,
648 0.194393499586184, -0.296840355384531, -0.897553144201652, 0.194393499586184,
649 0.194393499586184, -0.897553144201652, -0.897553144201652, -0.296840355384531,
650 -0.296840355384531, -0.897553144201652, -0.531632641825188, 0.431035654635683,
651 0.431035654635683, -0.531632641825188, -0.899403012810496, 0.431035654635683,
652 0.431035654635683, -0.899403012810496, -0.899403012810496, -0.531632641825188,
653 -0.531632641825188, -0.899403012810496, -0.682130525363537, 0.500223407469218,
654 0.500223407469218, -0.682130525363537, -0.818092882105681, 0.500223407469218,
655 0.500223407469218, -0.818092882105681, -0.818092882105681, -0.682130525363537,
656 -0.682130525363537, -0.818092882105681, -0.376270450471865, 0.138207573987544,
657 0.138207573987544, -0.376270450471865, -0.761937123515678, 0.138207573987544,
658 0.138207573987544, -0.761937123515678, -0.761937123515678, -0.376270450471865,
659 -0.376270450471865, -0.761937123515678, -0.590719081005038, 0.339375331943743,
660 0.339375331943743, -0.590719081005038, -0.748656250938705, 0.339375331943743,
661 0.339375331943743, -0.748656250938705, -0.748656250938705, -0.590719081005038,
662 -0.590719081005038, -0.748656250938705, -0.305527033262063, -0.081590222620926,
663 -0.081590222620926, -0.305527033262063, -0.612882744117011, -0.081590222620926,
664 -0.081590222620926, -0.612882744117011, -0.612882744117011, -0.305527033262063,
665 -0.305527033262063, -0.612882744117011}};
666
667 static const std::array<double, 93> cub2D_21_weights_data = {
668 {0.009411977990382, 0.009411977990382, 0.009411977990382, 0.023551229711283, 0.023551229711283,
669 0.023551229711283, 0.041353961937512, 0.041353961937512, 0.041353961937512, 0.045947520102707,
670 0.045947520102707, 0.045947520102707, 0.047724273523632, 0.047724273523632, 0.047724273523632,
671 0.019906824503099, 0.019906824503099, 0.019906824503099, 0.014287994054933, 0.014287994054933,
672 0.014287994054933, 0.001538784565604, 0.001538784565604, 0.001538784565604, 0.001538784565604,
673 0.001538784565604, 0.001538784565604, 0.007257720730941, 0.007257720730941, 0.007257720730941,
674 0.007257720730941, 0.007257720730941, 0.007257720730941, 0.013303360825119, 0.013303360825119,
675 0.013303360825119, 0.013303360825119, 0.013303360825119, 0.013303360825119, 0.011413497063052,
676 0.011413497063052, 0.011413497063052, 0.011413497063052, 0.011413497063052, 0.011413497063052,
677 0.006552521291655, 0.006552521291655, 0.006552521291655, 0.006552521291655, 0.006552521291655,
678 0.006552521291655, 0.017432381135646, 0.017432381135646, 0.017432381135646, 0.017432381135646,
679 0.017432381135646, 0.017432381135646, 0.027402609499462, 0.027402609499462, 0.027402609499462,
680 0.027402609499462, 0.027402609499462, 0.027402609499462, 0.025014173853794, 0.025014173853794,
681 0.025014173853794, 0.025014173853794, 0.025014173853794, 0.025014173853794, 0.008690112508894,
682 0.008690112508894, 0.008690112508894, 0.008690112508894, 0.008690112508894, 0.008690112508894,
683 0.037386369243416, 0.037386369243416, 0.037386369243416, 0.037386369243416, 0.037386369243416,
684 0.037386369243416, 0.032509611084921, 0.032509611084921, 0.032509611084921, 0.032509611084921,
685 0.032509611084921, 0.032509611084921, 0.043740300619054, 0.043740300619054, 0.043740300619054,
686 0.043740300619054, 0.043740300619054, 0.043740300619054}};
687
688 // For cub2D_22: 100 points (100*3 = 300 elements)
689 static const std::array<double, 100 * 2> cub2D_22_nodes_data = {
690 {-0.333333333333333, -0.333333333333333, -0.005980679319437, -0.005980679319437,
691 -0.988038641361126, -0.005980679319437, -0.005980679319437, -0.988038641361126,
692 -0.112289615572167, -0.112289615572167, -0.775420768855665, -0.112289615572167,
693 -0.112289615572167, -0.775420768855665, -0.209082673923590, -0.209082673923590,
694 -0.581834652152820, -0.209082673923590, -0.209082673923590, -0.581834652152820,
695 -0.467712894350161, -0.467712894350161, -0.064574211299679, -0.467712894350161,
696 -0.467712894350161, -0.064574211299679, -0.616276252022817, -0.616276252022817,
697 0.232552504045635, -0.616276252022817, -0.616276252022817, 0.232552504045635,
698 -0.755246756631224, -0.755246756631224, 0.510493513262448, -0.755246756631224,
699 -0.755246756631224, 0.510493513262448, -0.893562558892192, -0.893562558892192,
700 0.787125117784384, -0.893562558892192, -0.893562558892192, 0.787125117784384,
701 -0.943105536827199, -0.943105536827199, 0.886211073654399, -0.943105536827199,
702 -0.943105536827199, 0.886211073654399, -0.991786296535875, -0.991786296535875,
703 0.983572593071750, -0.991786296535875, -0.991786296535875, 0.983572593071750,
704 -0.413667191986728, 0.401491377065593, 0.401491377065593, -0.413667191986728,
705 -0.987824185078864, 0.401491377065593, 0.401491377065593, -0.987824185078864,
706 -0.987824185078865, -0.413667191986728, -0.413667191986728, -0.987824185078865,
707 -0.932052869826067, 0.918490219898898, 0.918490219898898, -0.932052869826067,
708 -0.986437350072830, 0.918490219898898, 0.918490219898898, -0.986437350072830,
709 -0.986437350072830, -0.932052869826067, -0.932052869826067, -0.986437350072830,
710 -0.640599464469824, 0.623868058857117, 0.623868058857117, -0.640599464469824,
711 -0.983268594387293, 0.623868058857116, 0.623868058857116, -0.983268594387293,
712 -0.983268594387293, -0.640599464469824, -0.640599464469824, -0.983268594387293,
713 -0.158411570812104, 0.140890429939385, 0.140890429939385, -0.158411570812104,
714 -0.982478859127282, 0.140890429939385, 0.140890429939385, -0.982478859127282,
715 -0.982478859127282, -0.158411570812104, -0.158411570812104, -0.982478859127282,
716 -0.814806216564922, 0.793459188393794, 0.793459188393794, -0.814806216564922,
717 -0.978652971828873, 0.793459188393795, 0.793459188393795, -0.978652971828873,
718 -0.978652971828873, -0.814806216564922, -0.814806216564922, -0.978652971828873,
719 -0.363960589331557, 0.295112627690632, 0.295112627690632, -0.363960589331557,
720 -0.931152038359075, 0.295112627690632, 0.295112627690632, -0.931152038359075,
721 -0.931152038359075, -0.363960589331557, -0.363960589331557, -0.931152038359075,
722 -0.570323384314285, 0.491002374048080, 0.491002374048080, -0.570323384314285,
723 -0.920678989733795, 0.491002374048080, 0.491002374048080, -0.920678989733795,
724 -0.920678989733795, -0.570323384314285, -0.570323384314285, -0.920678989733795,
725 -0.134636707603169, 0.047157943371727, 0.047157943371727, -0.134636707603169,
726 -0.912521235768557, 0.047157943371727, 0.047157943371727, -0.912521235768557,
727 -0.912521235768557, -0.134636707603169, -0.134636707603169, -0.912521235768557,
728 -0.752804662376914, 0.649201355096884, 0.649201355096884, -0.752804662376914,
729 -0.896396692719970, 0.649201355096884, 0.649201355096884, -0.896396692719970,
730 -0.896396692719970, -0.752804662376914, -0.752804662376914, -0.896396692719970,
731 -0.328638645186542, 0.161176552903625, 0.161176552903625, -0.328638645186542,
732 -0.832537907717083, 0.161176552903625, 0.161176552903625, -0.832537907717083,
733 -0.832537907717083, -0.328638645186542, -0.328638645186542, -0.832537907717083,
734 -0.559939069093864, 0.361861076343249, 0.361861076343249, -0.559939069093864,
735 -0.801922007249385, 0.361861076343249, 0.361861076343249, -0.801922007249385,
736 -0.801922007249385, -0.559939069093864, -0.559939069093864, -0.801922007249385,
737 -0.388196135129182, 0.068617773977901, 0.068617773977901, -0.388196135129182,
738 -0.680421638848718, 0.068617773977901, 0.068617773977901, -0.680421638848718,
739 -0.680421638848718, -0.388196135129182, -0.388196135129182, -0.680421638848718}};
740 static const std::array<double, 100> cub2D_22_weights_data = {
741 {0.052134891986775, 0.002127559342619, 0.002127559342619, 0.002127559342619,
742 0.040243429730281, 0.040243429730281, 0.040243429730281, 0.048340550896214,
743 0.048340550896214, 0.048340550896214, 0.047378470721283, 0.047378470721283,
744 0.047378470721283, 0.040231109011798, 0.040231109011798, 0.040231109011798,
745 0.027899919845537, 0.027899919845537, 0.027899919845537, 0.012350949744993,
746 0.012350949744993, 0.012350949744993, 0.003039705316805, 0.003039705316805,
747 0.003039705316805, 0.000691671630889, 0.000691671630889, 0.000691671630889,
748 0.008022198405286, 0.008022198405286, 0.008022198405286, 0.008022198405286,
749 0.008022198405286, 0.008022198405286, 0.003090974933637, 0.003090974933637,
750 0.003090974933637, 0.003090974933637, 0.003090974933637, 0.003090974933637,
751 0.008631214056178, 0.008631214056178, 0.008631214056178, 0.008631214056178,
752 0.008631214056178, 0.008631214056178, 0.010897457944070, 0.010897457944070,
753 0.010897457944070, 0.010897457944070, 0.010897457944070, 0.010897457944070,
754 0.008001551263950, 0.008001551263950, 0.008001551263950, 0.008001551263950,
755 0.008001551263950, 0.008001551263950, 0.017745434082141, 0.017745434082141,
756 0.017745434082141, 0.017745434082141, 0.017745434082141, 0.017745434082141,
757 0.017950672107247, 0.017950672107247, 0.017950672107247, 0.017950672107247,
758 0.017950672107247, 0.017950672107247, 0.019228676191702, 0.019228676191702,
759 0.019228676191702, 0.019228676191702, 0.019228676191702, 0.019228676191702,
760 0.019100455942623, 0.019100455942623, 0.019100455942623, 0.019100455942623,
761 0.019100455942623, 0.019100455942623, 0.028083739150636, 0.028083739150636,
762 0.028083739150636, 0.028083739150636, 0.028083739150636, 0.028083739150636,
763 0.031874915632607, 0.031874915632607, 0.031874915632607, 0.031874915632607,
764 0.031874915632607, 0.031874915632607, 0.040865211838584, 0.040865211838584,
765 0.040865211838584, 0.040865211838584, 0.040865211838584, 0.040865211838584}};
766
767 // For cub2D_23: 106 points (106*3 = 318 elements)
768 static const std::array<double, 106 * 2> cub2D_23_nodes_data = {
769 {-0.333333333333333, -0.333333333333333, -0.023538910955543, -0.023538910955543,
770 -0.952922178088914, -0.023538910955543, -0.023538910955543, -0.952922178088914,
771 -0.112255282121933, -0.112255282121933, -0.775489435756134, -0.112255282121933,
772 -0.112255282121933, -0.775489435756134, -0.212088442838205, -0.212088442838205,
773 -0.575823114323591, -0.212088442838205, -0.212088442838205, -0.575823114323591,
774 -0.467032671065063, -0.467032671065063, -0.065934657869875, -0.467032671065063,
775 -0.467032671065063, -0.065934657869875, -0.602458675644835, -0.602458675644835,
776 0.204917351289670, -0.602458675644835, -0.602458675644835, 0.204917351289670,
777 -0.729340080155585, -0.729340080155585, 0.458680160311169, -0.729340080155585,
778 -0.729340080155585, 0.458680160311169, -0.835032835950571, -0.835032835950571,
779 0.670065671901142, -0.835032835950571, -0.835032835950571, 0.670065671901142,
780 -0.916650365183127, -0.916650365183127, 0.833300730366254, -0.916650365183127,
781 -0.916650365183127, 0.833300730366254, -0.982250743407210, -0.982250743407210,
782 0.964501486814420, -0.982250743407210, -0.982250743407210, 0.964501486814420,
783 -0.105601712649592, 0.098292547426640, 0.098292547426640, -0.105601712649592,
784 -0.992690834777047, 0.098292547426640, 0.098292547426640, -0.992690834777047,
785 -0.992690834777047, -0.105601712649592, -0.105601712649592, -0.992690834777047,
786 -0.775227228315076, 0.773362241907340, 0.773362241907340, -0.775227228315076,
787 -0.998135013592264, 0.773362241907340, 0.773362241907340, -0.998135013592264,
788 -0.998135013592264, -0.775227228315076, -0.775227228315076, -0.998135013592264,
789 -0.399056075238285, 0.392811698367078, 0.392811698367078, -0.399056075238285,
790 -0.993755623128794, 0.392811698367078, 0.392811698367078, -0.993755623128794,
791 -0.993755623128794, -0.399056075238285, -0.399056075238285, -0.993755623128794,
792 -0.907633572417643, 0.891831436837026, 0.891831436837026, -0.907633572417643,
793 -0.984197864419384, 0.891831436837026, 0.891831436837026, -0.984197864419384,
794 -0.984197864419383, -0.907633572417642, -0.907633572417642, -0.984197864419383,
795 -0.610008084404048, 0.588812673873118, 0.588812673873118, -0.610008084404048,
796 -0.978804589469070, 0.588812673873118, 0.588812673873118, -0.978804589469070,
797 -0.978804589469070, -0.610008084404048, -0.610008084404048, -0.978804589469070,
798 -0.243171741354056, 0.207960140279272, 0.207960140279272, -0.243171741354056,
799 -0.964788398925216, 0.207960140279272, 0.207960140279272, -0.964788398925216,
800 -0.964788398925216, -0.243171741354055, -0.243171741354055, -0.964788398925216,
801 -0.789506197850739, 0.739925802118596, 0.739925802118596, -0.789506197850739,
802 -0.950419604267857, 0.739925802118596, 0.739925802118596, -0.950419604267857,
803 -0.950419604267857, -0.789506197850739, -0.789506197850739, -0.950419604267857,
804 -0.455884762353173, 0.385117794610837, 0.385117794610837, -0.455884762353173,
805 -0.929233032257664, 0.385117794610837, 0.385117794610837, -0.929233032257664,
806 -0.929233032257664, -0.455884762353173, -0.455884762353173, -0.929233032257664,
807 -0.112482048478797, 0.019740291196956, 0.019740291196956, -0.112482048478797,
808 -0.907258242718159, 0.019740291196956, 0.019740291196956, -0.907258242718159,
809 -0.907258242718159, -0.112482048478797, -0.112482048478797, -0.907258242718159,
810 -0.664205324633765, 0.550530931038120, 0.550530931038120, -0.664205324633765,
811 -0.886325606404355, 0.550530931038120, 0.550530931038120, -0.886325606404355,
812 -0.886325606404354, -0.664205324633765, -0.664205324633765, -0.886325606404354,
813 -0.295594853518405, 0.152149871080588, 0.152149871080588, -0.295594853518405,
814 -0.856555017562183, 0.152149871080588, 0.152149871080588, -0.856555017562183,
815 -0.856555017562183, -0.295594853518405, -0.295594853518405, -0.856555017562183,
816 -0.525935282564036, 0.319991164262401, 0.319991164262401, -0.525935282564036,
817 -0.794055881698366, 0.319991164262401, 0.319991164262401, -0.794055881698366,
818 -0.794055881698366, -0.525935282564036, -0.525935282564036, -0.794055881698366,
819 -0.368673747852155, 0.056982821883363, 0.056982821883363, -0.368673747852155,
820 -0.688309074031208, 0.056982821883363, 0.056982821883363, -0.688309074031208,
821 -0.688309074031208, -0.368673747852155, -0.368673747852155, -0.688309074031208}};
822 static const std::array<double, 106> cub2D_23_weights_data = {
823 {0.049993627092845, 0.008227775544650, 0.008227775544650, 0.008227775544650, 0.037662477311797,
824 0.037662477311797, 0.037662477311797, 0.046916667243031, 0.046916667243031, 0.046916667243031,
825 0.047191879210718, 0.047191879210718, 0.047191879210718, 0.039689081561875, 0.039689081561875,
826 0.039689081561875, 0.029223692430473, 0.029223692430473, 0.029223692430473, 0.018566057479642,
827 0.018566057479642, 0.018566057479642, 0.008784960019827, 0.008784960019827, 0.008784960019827,
828 0.002061552741126, 0.002061552741126, 0.002061552741126, 0.004448377162851, 0.004448377162851,
829 0.004448377162851, 0.004448377162851, 0.004448377162851, 0.004448377162851, 0.002318973002522,
830 0.002318973002522, 0.002318973002522, 0.002318973002522, 0.002318973002522, 0.002318973002522,
831 0.005127488569570, 0.005127488569570, 0.005127488569570, 0.005127488569570, 0.005127488569570,
832 0.005127488569570, 0.004167853762943, 0.004167853762943, 0.004167853762943, 0.004167853762943,
833 0.004167853762943, 0.004167853762943, 0.010245094978581, 0.010245094978581, 0.010245094978581,
834 0.010245094978581, 0.010245094978581, 0.010245094978581, 0.012823590639281, 0.012823590639281,
835 0.012823590639281, 0.012823590639281, 0.012823590639281, 0.012823590639281, 0.011635516794817,
836 0.011635516794817, 0.011635516794817, 0.011635516794817, 0.011635516794817, 0.011635516794817,
837 0.019844273900077, 0.019844273900077, 0.019844273900077, 0.019844273900077, 0.019844273900077,
838 0.019844273900077, 0.011754407449188, 0.011754407449188, 0.011754407449188, 0.011754407449188,
839 0.011754407449188, 0.011754407449188, 0.021600208906600, 0.021600208906600, 0.021600208906600,
840 0.021600208906600, 0.021600208906600, 0.021600208906600, 0.028495796363599, 0.028495796363599,
841 0.028495796363599, 0.028495796363599, 0.028495796363599, 0.028495796363599, 0.031988381018369,
842 0.031988381018369, 0.031988381018369, 0.031988381018369, 0.031988381018369, 0.031988381018369,
843 0.041389027831224, 0.041389027831224, 0.041389027831224, 0.041389027831224, 0.041389027831224,
844 0.041389027831224}};
845
846 // For cub2D_24: 118 points (118*3 = 354 elements)
847 static const std::array<double, 118 * 2> cub2D_24_nodes_data = {
848 {-0.333333333333333, -0.333333333333333, -0.031382760283421, -0.031382760283421,
849 -0.937234479433159, -0.031382760283421, -0.031382760283421, -0.937234479433159,
850 -0.120096233850662, -0.120096233850662, -0.759807532298676, -0.120096233850662,
851 -0.120096233850662, -0.759807532298676, -0.217343938317536, -0.217343938317536,
852 -0.565312123364928, -0.217343938317536, -0.217343938317536, -0.565312123364928,
853 -0.429818284439074, -0.429818284439074, -0.140363431121852, -0.429818284439074,
854 -0.429818284439074, -0.140363431121852, -0.522392801883300, -0.522392801883300,
855 0.044785603766601, -0.522392801883300, -0.522392801883300, 0.044785603766601,
856 -0.704274510649686, -0.704274510649686, 0.408549021299373, -0.704274510649686,
857 -0.704274510649686, 0.408549021299373, -0.843105586121546, -0.843105586121546,
858 0.686211172243092, -0.843105586121546, -0.843105586121546, 0.686211172243092,
859 -0.936285318267427, -0.936285318267427, 0.872570636534854, -0.936285318267427,
860 -0.936285318267427, 0.872570636534854, -0.983008712604130, -0.983008712604130,
861 0.966017425208259, -0.983008712604130, -0.983008712604130, 0.966017425208259,
862 -0.133936561710478, 0.120327965916980, 0.120327965916980, -0.133936561710478,
863 -0.986391404206501, 0.120327965916980, 0.120327965916980, -0.986391404206501,
864 -0.986391404206501, -0.133936561710478, -0.133936561710478, -0.986391404206501,
865 -0.589559941056661, 0.574991625876557, 0.574991625876557, -0.589559941056661,
866 -0.985431684819897, 0.574991625876557, 0.574991625876557, -0.985431684819897,
867 -0.985431684819897, -0.589559941056661, -0.589559941056661, -0.985431684819897,
868 -0.375079684130172, 0.361371712031196, 0.361371712031196, -0.375079684130172,
869 -0.986292027901024, 0.361371712031196, 0.361371712031196, -0.986292027901024,
870 -0.986292027901024, -0.375079684130172, -0.375079684130172, -0.986292027901024,
871 -0.906832105591067, 0.897244066241012, 0.897244066241012, -0.906832105591067,
872 -0.990411960649945, 0.897244066241012, 0.897244066241012, -0.990411960649945,
873 -0.990411960649945, -0.906832105591067, -0.906832105591067, -0.990411960649945,
874 -0.768281564078976, 0.757477531703546, 0.757477531703546, -0.768281564078976,
875 -0.989195967624570, 0.757477531703546, 0.757477531703546, -0.989195967624570,
876 -0.989195967624570, -0.768281564078975, -0.768281564078975, -0.989195967624570,
877 -0.498678726055310, 0.424585822926150, 0.424585822926150, -0.498678726055310,
878 -0.925907096870839, 0.424585822926150, 0.424585822926150, -0.925907096870839,
879 -0.925907096870839, -0.498678726055310, -0.498678726055310, -0.925907096870839,
880 -0.279607664483490, 0.208396882316209, 0.208396882316209, -0.279607664483490,
881 -0.928789217832719, 0.208396882316209, 0.208396882316209, -0.928789217832719,
882 -0.928789217832719, -0.279607664483490, -0.279607664483490, -0.928789217832719,
883 -0.837737372642508, 0.780926628976898, 0.780926628976898, -0.837737372642508,
884 -0.943189256334389, 0.780926628976898, 0.780926628976898, -0.943189256334389,
885 -0.943189256334389, -0.837737372642508, -0.837737372642508, -0.943189256334389,
886 -0.693711793201882, 0.625024627714433, 0.625024627714433, -0.693711793201882,
887 -0.931312834512551, 0.625024627714433, 0.625024627714433, -0.931312834512551,
888 -0.931312834512551, -0.693711793201882, -0.693711793201882, -0.931312834512551,
889 0.004700993829951, -0.135567929734853, -0.135567929734853, 0.004700993829951,
890 -0.869133064095098, -0.135567929734853, -0.135567929734853, -0.869133064095098,
891 -0.869133064095098, 0.004700993829951, 0.004700993829951, -0.869133064095098,
892 -0.521976982650353, 0.349105045944945, 0.349105045944945, -0.521976982650353,
893 -0.827128063294591, 0.349105045944945, 0.349105045944945, -0.827128063294591,
894 -0.827128063294591, -0.521976982650353, -0.521976982650353, -0.827128063294591,
895 -0.326968721136217, 0.144732602043697, 0.144732602043697, -0.326968721136217,
896 -0.817763880907480, 0.144732602043697, 0.144732602043697, -0.817763880907480,
897 -0.817763880907480, -0.326968721136217, -0.326968721136217, -0.817763880907480,
898 -0.696116803866709, 0.531011336134871, 0.531011336134871, -0.696116803866709,
899 -0.834894532268162, 0.531011336134871, 0.531011336134871, -0.834894532268162,
900 -0.834894532268162, -0.696116803866709, -0.696116803866709, -0.834894532268162,
901 -0.536404917748559, 0.226734558438523, 0.226734558438523, -0.536404917748559,
902 -0.690329640689964, 0.226734558438523, 0.226734558438523, -0.690329640689964,
903 -0.690329640689964, -0.536404917748559, -0.536404917748559, -0.690329640689964,
904 -0.344489563789357, 0.009282127094255, 0.009282127094255, -0.344489563789357,
905 -0.664792563304898, 0.009282127094255, 0.009282127094255, -0.664792563304898,
906 -0.664792563304898, -0.344489563789357, -0.344489563789357, -0.664792563304898}};
907 static const std::array<double, 118> cub2D_24_weights_data = {
908 {0.031330242175782, 0.014717653847587, 0.014717653847587, 0.014717653847587, 0.030963348398970,
909 0.030963348398970, 0.030963348398970, 0.037986940843648, 0.037986940843648, 0.037986940843648,
910 0.033466254011049, 0.033466254011049, 0.033466254011049, 0.029203686754054, 0.029203686754054,
911 0.029203686754054, 0.022147482605586, 0.022147482605586, 0.022147482605586, 0.015827753677335,
912 0.015827753677335, 0.015827753677335, 0.005897827695084, 0.005897827695084, 0.005897827695084,
913 0.001905131297570, 0.001905131297570, 0.001905131297570, 0.008627443386199, 0.008627443386199,
914 0.008627443386199, 0.008627443386199, 0.008627443386199, 0.008627443386199, 0.007292016855628,
915 0.007292016855628, 0.007292016855628, 0.007292016855628, 0.007292016855628, 0.007292016855628,
916 0.008117703702749, 0.008117703702749, 0.008117703702749, 0.008117703702749, 0.008117703702749,
917 0.008117703702749, 0.002858359515171, 0.002858359515171, 0.002858359515171, 0.002858359515171,
918 0.002858359515171, 0.002858359515171, 0.004596788633153, 0.004596788633153, 0.004596788633153,
919 0.004596788633153, 0.004596788633153, 0.004596788633153, 0.017097477649229, 0.017097477649229,
920 0.017097477649229, 0.017097477649229, 0.017097477649229, 0.017097477649229, 0.018575372163249,
921 0.018575372163249, 0.018575372163249, 0.018575372163249, 0.018575372163249, 0.018575372163249,
922 0.008711688567270, 0.008711688567270, 0.008711688567270, 0.008711688567270, 0.008711688567270,
923 0.008711688567270, 0.013292883787775, 0.013292883787775, 0.013292883787775, 0.013292883787775,
924 0.013292883787775, 0.013292883787775, 0.012281001510740, 0.012281001510740, 0.012281001510740,
925 0.012281001510740, 0.012281001510740, 0.012281001510740, 0.021820885555420, 0.021820885555420,
926 0.021820885555420, 0.021820885555420, 0.021820885555420, 0.021820885555420, 0.027371090249668,
927 0.027371090249668, 0.027371090249668, 0.027371090249668, 0.027371090249668, 0.027371090249668,
928 0.018737543889147, 0.018737543889147, 0.018737543889147, 0.018737543889147, 0.018737543889147,
929 0.018737543889147, 0.028700757241388, 0.028700757241388, 0.028700757241388, 0.028700757241388,
930 0.028700757241388, 0.028700757241388, 0.033972574031807, 0.033972574031807, 0.033972574031807,
931 0.033972574031807, 0.033972574031807, 0.033972574031807}};
932
933 // For cub2D_25: 126 points (126*3 = 378 elements)
934 static const std::array<double, 126 * 2> cub2D_25_nodes_data = {
935 {-0.027946483073174, -0.027946483073174, -0.944107033853652, -0.027946483073174,
936 -0.027946483073174, -0.944107033853652, -0.131178601327651, -0.131178601327651,
937 -0.737642797344697, -0.131178601327651, -0.131178601327651, -0.737642797344697,
938 -0.220221729512072, -0.220221729512072, -0.559556540975855, -0.220221729512072,
939 -0.220221729512072, -0.559556540975855, -0.403113531960391, -0.403113531960391,
940 -0.193772936079218, -0.403113531960391, -0.403113531960391, -0.193772936079218,
941 -0.531911655325256, -0.531911655325256, 0.063823310650513, -0.531911655325256,
942 -0.531911655325256, 0.063823310650513, -0.697063330781965, -0.697063330781965,
943 0.394126661563930, -0.697063330781965, -0.697063330781965, 0.394126661563930,
944 -0.774532212908013, -0.774532212908013, 0.549064425816026, -0.774532212908013,
945 -0.774532212908013, 0.549064425816026, -0.844568615816947, -0.844568615816947,
946 0.689137231633895, -0.844568615816948, -0.844568615816948, 0.689137231633895,
947 -0.930213812771406, -0.930213812771406, 0.860427625542812, -0.930213812771406,
948 -0.930213812771406, 0.860427625542812, -0.985483630758135, -0.985483630758135,
949 0.970967261516271, -0.985483630758135, -0.985483630758135, 0.970967261516271,
950 -0.545571095693272, 0.542986390284387, 0.542986390284387, -0.545571095693272,
951 -0.997415294591116, 0.542986390284387, 0.542986390284387, -0.997415294591116,
952 -0.997415294591116, -0.545571095693272, -0.545571095693272, -0.997415294591116,
953 -0.129978890292857, 0.119179487748624, 0.119179487748624, -0.129978890292857,
954 -0.989200597455768, 0.119179487748624, 0.119179487748624, -0.989200597455768,
955 -0.989200597455768, -0.129978890292857, -0.129978890292857, -0.989200597455768,
956 -0.359380801455591, 0.346612795387641, 0.346612795387641, -0.359380801455591,
957 -0.987231993932050, 0.346612795387641, 0.346612795387641, -0.987231993932050,
958 -0.987231993932050, -0.359380801455591, -0.359380801455591, -0.987231993932050,
959 -0.816499355439990, 0.806442932436004, 0.806442932436004, -0.816499355439990,
960 -0.989943576996014, 0.806442932436004, 0.806442932436004, -0.989943576996014,
961 -0.989943576996014, -0.816499355439990, -0.816499355439990, -0.989943576996014,
962 -0.923978328282551, 0.910324811038988, 0.910324811038988, -0.923978328282551,
963 -0.986346482756436, 0.910324811038988, 0.910324811038988, -0.986346482756436,
964 -0.986346482756436, -0.923978328282551, -0.923978328282551, -0.986346482756436,
965 -0.685149563029377, 0.665117163749518, 0.665117163749518, -0.685149563029377,
966 -0.979967600720141, 0.665117163749517, 0.665117163749517, -0.979967600720141,
967 -0.979967600720141, -0.685149563029376, -0.685149563029376, -0.979967600720141,
968 -0.520220680442934, 0.468705054096154, 0.468705054096154, -0.520220680442934,
969 -0.948484373653220, 0.468705054096154, 0.468705054096154, -0.948484373653220,
970 -0.948484373653220, -0.520220680442934, -0.520220680442934, -0.948484373653220,
971 -0.276113763747879, 0.215657967508047, 0.215657967508047, -0.276113763747879,
972 -0.939544203760168, 0.215657967508047, 0.215657967508047, -0.939544203760168,
973 -0.939544203760168, -0.276113763747879, -0.276113763747879, -0.939544203760168,
974 -0.832896078090343, 0.771886097876019, 0.771886097876019, -0.832896078090343,
975 -0.938990019785676, 0.771886097876019, 0.771886097876019, -0.938990019785676,
976 -0.938990019785676, -0.832896078090343, -0.832896078090343, -0.938990019785676,
977 -0.703113558535164, 0.611200463810025, 0.611200463810025, -0.703113558535164,
978 -0.908086905274861, 0.611200463810025, 0.611200463810025, -0.908086905274861,
979 -0.908086905274861, -0.703113558535164, -0.703113558535164, -0.908086905274861,
980 -0.432520582544930, 0.297634981464375, 0.297634981464375, -0.432520582544930,
981 -0.865114398919445, 0.297634981464375, 0.297634981464375, -0.865114398919445,
982 -0.865114398919445, -0.432520582544930, -0.432520582544930, -0.865114398919445,
983 -0.186201249762425, 0.046111066930604, 0.046111066930604, -0.186201249762425,
984 -0.859909817168179, 0.046111066930604, 0.046111066930604, -0.859909817168179,
985 -0.859909817168179, -0.186201249762425, -0.186201249762425, -0.859909817168179,
986 -0.611772025950215, 0.443948976669982, 0.443948976669982, -0.611772025950215,
987 -0.832176950719767, 0.443948976669982, 0.443948976669982, -0.832176950719767,
988 -0.832176950719767, -0.611772025950215, -0.611772025950215, -0.832176950719767,
989 -0.351731305998594, 0.110980234644288, 0.110980234644288, -0.351731305998594,
990 -0.759248928645695, 0.110980234644288, 0.110980234644288, -0.759248928645695,
991 -0.759248928645695, -0.351731305998594, -0.351731305998594, -0.759248928645695,
992 -0.541445032888038, 0.245311234573305, 0.245311234573305, -0.541445032888038,
993 -0.703866201685267, 0.245311234573305, 0.245311234573305, -0.703866201685267,
994 -0.703866201685267, -0.541445032888038, -0.541445032888038, -0.703866201685267,
995 -0.348763754808032, -0.034779976926618, -0.034779976926618, -0.348763754808032,
996 -0.616456268265350, -0.034779976926618, -0.034779976926618, -0.616456268265350,
997 -0.616456268265350, -0.348763754808032, -0.348763754808032, -0.616456268265350}};
998 static const std::array<double, 126> cub2D_25_weights_data = {
999 {0.016011163760041, 0.016011163760041, 0.016011163760041, 0.031894153664781, 0.031894153664781,
1000 0.031894153664781, 0.026218282461591, 0.026218282461591, 0.026218282461591, 0.039166001931271,
1001 0.039166001931271, 0.039166001931271, 0.032941770883075, 0.032941770883075, 0.032941770883075,
1002 0.017094558148184, 0.017094558148184, 0.017094558148184, 0.016323771714453, 0.016323771714453,
1003 0.016323771714453, 0.012242293079968, 0.012242293079968, 0.012242293079968, 0.005816996529873,
1004 0.005816996529873, 0.005816996529873, 0.001384550491324, 0.001384550491324, 0.001384550491324,
1005 0.002496578398555, 0.002496578398555, 0.002496578398555, 0.002496578398555, 0.002496578398555,
1006 0.002496578398555, 0.006809505817606, 0.006809505817606, 0.006809505817606, 0.006809505817606,
1007 0.006809505817606, 0.006809505817606, 0.006719308652128, 0.006719308652128, 0.006719308652128,
1008 0.006719308652128, 0.006719308652128, 0.006719308652128, 0.003432313078994, 0.003432313078994,
1009 0.003432313078994, 0.003432313078994, 0.003432313078994, 0.003432313078994, 0.002961712633431,
1010 0.002961712633431, 0.002961712633431, 0.002961712633431, 0.002961712633431, 0.002961712633431,
1011 0.007022625221457, 0.007022625221457, 0.007022625221457, 0.007022625221457, 0.007022625221457,
1012 0.007022625221457, 0.014787100299413, 0.014787100299413, 0.014787100299413, 0.014787100299413,
1013 0.014787100299413, 0.014787100299413, 0.015966174954753, 0.015966174954753, 0.015966174954753,
1014 0.015966174954753, 0.015966174954753, 0.015966174954753, 0.008711925226316, 0.008711925226316,
1015 0.008711925226316, 0.008711925226316, 0.008711925226316, 0.008711925226316, 0.014730113402836,
1016 0.014730113402836, 0.014730113402836, 0.014730113402836, 0.014730113402836, 0.014730113402836,
1017 0.021927145692839, 0.021927145692839, 0.021927145692839, 0.021927145692839, 0.021927145692839,
1018 0.021927145692839, 0.023499923487082, 0.023499923487082, 0.023499923487082, 0.023499923487082,
1019 0.023499923487082, 0.023499923487082, 0.020031201427597, 0.020031201427597, 0.020031201427597,
1020 0.020031201427597, 0.020031201427597, 0.020031201427597, 0.026619281575257, 0.026619281575257,
1021 0.026619281575257, 0.026619281575257, 0.026619281575257, 0.026619281575257, 0.028308893010452,
1022 0.028308893010452, 0.028308893010452, 0.028308893010452, 0.028308893010452, 0.028308893010452,
1023 0.029762759122336, 0.029762759122336, 0.029762759122336, 0.029762759122336, 0.029762759122336,
1024 0.029762759122336}};
1025
1026 // For cub2D_26: 138 points (138*3 = 414 elements)
1027 static const std::array<double, 138 * 2> cub2D_26_nodes_data = {
1028 {-0.027285103318006, -0.027285103318006, -0.945429793363989, -0.027285103318006,
1029 -0.027285103318006, -0.945429793363989, -0.068629018183452, -0.068629018183452,
1030 -0.862741963633096, -0.068629018183452, -0.068629018183452, -0.862741963633096,
1031 -0.136174624247252, -0.136174624247252, -0.727650751505495, -0.136174624247252,
1032 -0.136174624247252, -0.727650751505495, -0.214440393597162, -0.214440393597162,
1033 -0.571119212805675, -0.214440393597162, -0.214440393597162, -0.571119212805675,
1034 -0.392927303733924, -0.392927303733924, -0.214145392532152, -0.392927303733924,
1035 -0.392927303733924, -0.214145392532152, -0.541283541373341, -0.541283541373341,
1036 0.082567082746682, -0.541283541373341, -0.541283541373341, 0.082567082746682,
1037 -0.710171670270578, -0.710171670270578, 0.420343340541156, -0.710171670270578,
1038 -0.710171670270578, 0.420343340541156, -0.832251071789951, -0.832251071789951,
1039 0.664502143579902, -0.832251071789951, -0.832251071789951, 0.664502143579902,
1040 -0.931928355163542, -0.931928355163542, 0.863856710327084, -0.931928355163542,
1041 -0.931928355163542, 0.863856710327084, -0.987078078630829, -0.987078078630829,
1042 0.974156157261657, -0.987078078630829, -0.987078078630829, 0.974156157261657,
1043 -0.932113855389598, 0.919072286067742, 0.919072286067742, -0.932113855389598,
1044 -0.986958430678145, 0.919072286067742, 0.919072286067742, -0.986958430678145,
1045 -0.986958430678145, -0.932113855389597, -0.932113855389597, -0.986958430678145,
1046 -0.331832115907669, 0.318412220533634, 0.318412220533634, -0.331832115907669,
1047 -0.986580104625965, 0.318412220533634, 0.318412220533634, -0.986580104625965,
1048 -0.986580104625965, -0.331832115907669, -0.331832115907669, -0.986580104625965,
1049 -0.117284648816543, 0.105635324925259, 0.105635324925259, -0.117284648816543,
1050 -0.988350676108717, 0.105635324925259, 0.105635324925259, -0.988350676108717,
1051 -0.988350676108717, -0.117284648816543, -0.117284648816543, -0.988350676108717,
1052 -0.528179583523521, 0.515363521190658, 0.515363521190658, -0.528179583523521,
1053 -0.987183937667137, 0.515363521190658, 0.515363521190658, -0.987183937667137,
1054 -0.987183937667137, -0.528179583523521, -0.528179583523521, -0.987183937667137,
1055 -0.698183069548291, 0.685666877859863, 0.685666877859863, -0.698183069548291,
1056 -0.987483808311572, 0.685666877859863, 0.685666877859863, -0.987483808311572,
1057 -0.987483808311572, -0.698183069548291, -0.698183069548291, -0.987483808311572,
1058 -0.834663613179069, 0.821127985248516, 0.821127985248516, -0.834663613179069,
1059 -0.986464372069447, 0.821127985248516, 0.821127985248516, -0.986464372069447,
1060 -0.986464372069447, -0.834663613179069, -0.834663613179069, -0.986464372069447,
1061 -0.700166221086294, 0.634916644768372, 0.634916644768372, -0.700166221086294,
1062 -0.934750423682077, 0.634916644768372, 0.634916644768372, -0.934750423682077,
1063 -0.934750423682078, -0.700166221086294, -0.700166221086294, -0.934750423682078,
1064 -0.160245113591115, 0.096801406370527, 0.096801406370527, -0.160245113591115,
1065 -0.936556292779412, 0.096801406370527, 0.096801406370527, -0.936556292779412,
1066 -0.936556292779412, -0.160245113591115, -0.160245113591115, -0.936556292779412,
1067 -0.348814552390868, 0.279444440434072, 0.279444440434072, -0.348814552390868,
1068 -0.930629888043204, 0.279444440434072, 0.279444440434072, -0.930629888043204,
1069 -0.930629888043204, -0.348814552390868, -0.348814552390868, -0.930629888043204,
1070 -0.835149343614232, 0.764834325997890, 0.764834325997890, -0.835149343614232,
1071 -0.929684982383659, 0.764834325997890, 0.764834325997890, -0.929684982383659,
1072 -0.929684982383659, -0.835149343614232, -0.835149343614232, -0.929684982383659,
1073 -0.534046892746188, 0.466663082505331, 0.466663082505331, -0.534046892746188,
1074 -0.932616189759143, 0.466663082505331, 0.466663082505331, -0.932616189759143,
1075 -0.932616189759143, -0.534046892746188, -0.534046892746188, -0.932616189759143,
1076 -0.704373154566392, 0.546726033293271, 0.546726033293271, -0.704373154566392,
1077 -0.842352878726879, 0.546726033293271, 0.546726033293271, -0.842352878726879,
1078 -0.842352878726879, -0.704373154566392, -0.704373154566392, -0.842352878726879,
1079 -0.220224863280788, 0.060870104244893, 0.060870104244893, -0.220224863280788,
1080 -0.840645240964104, 0.060870104244893, 0.060870104244893, -0.840645240964104,
1081 -0.840645240964104, -0.220224863280788, -0.220224863280788, -0.840645240964104,
1082 -0.394989254221112, 0.230609434358343, 0.230609434358343, -0.394989254221112,
1083 -0.835620180137232, 0.230609434358343, 0.230609434358343, -0.835620180137232,
1084 -0.835620180137232, -0.394989254221112, -0.394989254221112, -0.835620180137232,
1085 -0.557563751773578, 0.393274056332418, 0.393274056332418, -0.557563751773578,
1086 -0.835710304558840, 0.393274056332418, 0.393274056332418, -0.835710304558840,
1087 -0.835710304558840, -0.557563751773578, -0.557563751773578, -0.835710304558840,
1088 -0.350522450436603, 0.060630141977535, 0.060630141977535, -0.350522450436603,
1089 -0.710107691540932, 0.060630141977535, 0.060630141977535, -0.710107691540932,
1090 -0.710107691540932, -0.350522450436603, -0.350522450436603, -0.710107691540932,
1091 -0.544246685468649, 0.246315777233803, 0.246315777233803, -0.544246685468649,
1092 -0.702069091765154, 0.246315777233803, 0.246315777233803, -0.702069091765154,
1093 -0.702069091765154, -0.544246685468649, -0.544246685468649, -0.702069091765154,
1094 -0.373996265063702, -0.064072130507071, -0.064072130507071, -0.373996265063702,
1095 -0.561931604429227, -0.064072130507071, -0.064072130507071, -0.561931604429227,
1096 -0.561931604429227, -0.373996265063702, -0.373996265063702, -0.561931604429227}};
1097 static const std::array<double, 138> cub2D_26_weights_data = {
1098 {0.005361616431413, 0.005361616431413, 0.005361616431413, 0.012732191427031, 0.012732191427031,
1099 0.012732191427031, 0.029707048808635, 0.029707048808635, 0.029707048808635, 0.026709487358142,
1100 0.026709487358142, 0.026709487358142, 0.031691197689589, 0.031691197689589, 0.031691197689589,
1101 0.028281596577704, 0.028281596577704, 0.028281596577704, 0.022460561269283, 0.022460561269283,
1102 0.022460561269283, 0.013160382318625, 0.013160382318625, 0.013160382318625, 0.005828465225510,
1103 0.005828465225510, 0.005828465225510, 0.001098762787251, 0.001098762787251, 0.001098762787251,
1104 0.002557622023150, 0.002557622023150, 0.002557622023150, 0.002557622023150, 0.002557622023150,
1105 0.002557622023150, 0.007088900226242, 0.007088900226242, 0.007088900226242, 0.007088900226242,
1106 0.007088900226242, 0.007088900226242, 0.006588000446609, 0.006588000446609, 0.006588000446609,
1107 0.006588000446609, 0.006588000446609, 0.006588000446609, 0.006069708653929, 0.006069708653929,
1108 0.006069708653929, 0.006069708653929, 0.006069708653929, 0.006069708653929, 0.004942128706706,
1109 0.004942128706706, 0.004942128706706, 0.004942128706706, 0.004942128706706, 0.004942128706706,
1110 0.004076340070443, 0.004076340070443, 0.004076340070443, 0.004076340070443, 0.004076340070443,
1111 0.004076340070443, 0.011120280239045, 0.011120280239045, 0.011120280239045, 0.011120280239045,
1112 0.011120280239045, 0.011120280239045, 0.012755358640694, 0.012755358640694, 0.012755358640694,
1113 0.012755358640694, 0.012755358640694, 0.012755358640694, 0.014549157045387, 0.014549157045387,
1114 0.014549157045387, 0.014549157045387, 0.014549157045387, 0.014549157045387, 0.009121880355576,
1115 0.009121880355576, 0.009121880355576, 0.009121880355576, 0.009121880355576, 0.009121880355576,
1116 0.013582808914065, 0.013582808914065, 0.013582808914065, 0.013582808914065, 0.013582808914065,
1117 0.013582808914065, 0.015585248954434, 0.015585248954434, 0.015585248954434, 0.015585248954434,
1118 0.015585248954434, 0.015585248954434, 0.018960151369388, 0.018960151369388, 0.018960151369388,
1119 0.018960151369388, 0.018960151369388, 0.018960151369388, 0.019206200353033, 0.019206200353033,
1120 0.019206200353033, 0.019206200353033, 0.019206200353033, 0.019206200353033, 0.018121839059318,
1121 0.018121839059318, 0.018121839059318, 0.018121839059318, 0.018121839059318, 0.018121839059318,
1122 0.028403705951863, 0.028403705951863, 0.028403705951863, 0.028403705951863, 0.028403705951863,
1123 0.028403705951863, 0.026986162760930, 0.026986162760930, 0.026986162760930, 0.026986162760930,
1124 0.026986162760930, 0.026986162760930, 0.025102184615930, 0.025102184615930, 0.025102184615930,
1125 0.025102184615930, 0.025102184615930, 0.025102184615930}};
1126
1127 // For cub2D_27: 145 points (145*3 = 435 elements)
1128 static const std::array<double, 145 * 2> cub2D_27_nodes_data = {
1129 {-0.333333333333333, -0.333333333333333, -0.029244446609137, -0.029244446609137,
1130 -0.941511106781726, -0.029244446609137, -0.029244446609137, -0.941511106781726,
1131 -0.132843721814340, -0.132843721814340, -0.734312556371321, -0.132843721814340,
1132 -0.132843721814340, -0.734312556371321, -0.224940014502969, -0.224940014502969,
1133 -0.550119970994063, -0.224940014502969, -0.224940014502969, -0.550119970994063,
1134 -0.427786783949924, -0.427786783949924, -0.144426432100151, -0.427786783949924,
1135 -0.427786783949924, -0.144426432100151, -0.532776206162091, -0.532776206162091,
1136 0.065552412324182, -0.532776206162091, -0.532776206162091, 0.065552412324182,
1137 -0.690368113175391, -0.690368113175391, 0.380736226350782, -0.690368113175391,
1138 -0.690368113175391, 0.380736226350782, -0.781499070170348, -0.781499070170348,
1139 0.562998140340695, -0.781499070170348, -0.781499070170348, 0.562998140340695,
1140 -0.862704525220276, -0.862704525220276, 0.725409050440551, -0.862704525220276,
1141 -0.862704525220276, 0.725409050440551, -0.932961091535336, -0.932961091535336,
1142 0.865922183070671, -0.932961091535336, -0.932961091535336, 0.865922183070671,
1143 -0.986811381964774, -0.986811381964774, 0.973622763929549, -0.986811381964774,
1144 -0.986811381964774, 0.973622763929549, -0.717055503863097, 0.716419063026126,
1145 0.716419063026126, -0.717055503863097, -0.999363559163030, 0.716419063026126,
1146 0.716419063026126, -0.999363559163030, -0.999363559163030, -0.717055503863097,
1147 -0.717055503863097, -0.999363559163030, -0.838822221132805, 0.827544031058903,
1148 0.827544031058903, -0.838822221132805, -0.988721809926098, 0.827544031058903,
1149 0.827544031058903, -0.988721809926098, -0.988721809926098, -0.838822221132805,
1150 -0.838822221132805, -0.988721809926098, -0.537630806497654, 0.526128943172145,
1151 0.526128943172145, -0.537630806497654, -0.988498136674491, 0.526128943172145,
1152 0.526128943172145, -0.988498136674491, -0.988498136674491, -0.537630806497654,
1153 -0.537630806497654, -0.988498136674491, -0.113842988120976, 0.103273580134309,
1154 0.103273580134309, -0.113842988120976, -0.989430592013333, 0.103273580134310,
1155 0.103273580134310, -0.989430592013333, -0.989430592013333, -0.113842988120976,
1156 -0.113842988120976, -0.989430592013333, -0.330849908839651, 0.320515152715889,
1157 0.320515152715889, -0.330849908839651, -0.989665243876238, 0.320515152715889,
1158 0.320515152715889, -0.989665243876238, -0.989665243876238, -0.330849908839651,
1159 -0.330849908839651, -0.989665243876238, -0.931869179489789, 0.919222453867072,
1160 0.919222453867072, -0.931869179489789, -0.987353274377283, 0.919222453867072,
1161 0.919222453867072, -0.987353274377283, -0.987353274377283, -0.931869179489789,
1162 -0.931869179489789, -0.987353274377283, -0.695123977280935, 0.663705924287710,
1163 0.663705924287710, -0.695123977280935, -0.968581947006775, 0.663705924287710,
1164 0.663705924287710, -0.968581947006775, -0.968581947006775, -0.695123977280935,
1165 -0.695123977280935, -0.968581947006775, -0.831869809255826, 0.777736654895860,
1166 0.777736654895860, -0.831869809255826, -0.945866845640035, 0.777736654895860,
1167 0.777736654895860, -0.945866845640035, -0.945866845640035, -0.831869809255826,
1168 -0.831869809255826, -0.945866845640035, -0.423211420319719, 0.374995160760160,
1169 0.374995160760160, -0.423211420319719, -0.951783740440441, 0.374995160760160,
1170 0.374995160760160, -0.951783740440441, -0.951783740440441, -0.423211420319719,
1171 -0.423211420319719, -0.951783740440441, -0.223962554104902, 0.171509638849087,
1172 0.171509638849087, -0.223962554104902, -0.947547084744185, 0.171509638849087,
1173 0.171509638849087, -0.947547084744185, -0.947547084744185, -0.223962554104902,
1174 -0.223962554104902, -0.947547084744185, -0.566926820194262, 0.490923426439871,
1175 0.490923426439871, -0.566926820194262, -0.923996606245609, 0.490923426439871,
1176 0.490923426439871, -0.923996606245609, -0.923996606245609, -0.566926820194262,
1177 -0.566926820194262, -0.923996606245609, -0.350787336349322, 0.245677528944182,
1178 0.245677528944182, -0.350787336349322, -0.894890192594860, 0.245677528944182,
1179 0.245677528944182, -0.894890192594860, -0.894890192594860, -0.350787336349322,
1180 -0.350787336349322, -0.894890192594860, -0.729613610936203, 0.622255871516285,
1181 0.622255871516285, -0.729613610936203, -0.892642260580081, 0.622255871516285,
1182 0.622255871516285, -0.892642260580081, -0.892642260580081, -0.729613610936203,
1183 -0.729613610936203, -0.892642260580081, -0.176209680235251, 0.035410146457445,
1184 0.035410146457445, -0.176209680235251, -0.859200466222194, 0.035410146457445,
1185 0.035410146457445, -0.859200466222194, -0.859200466222194, -0.176209680235251,
1186 -0.176209680235251, -0.859200466222194, -0.469171656648510, 0.304686011244002,
1187 0.304686011244002, -0.469171656648510, -0.835514354595492, 0.304686011244002,
1188 0.304686011244002, -0.835514354595492, -0.835514354595492, -0.469171656648510,
1189 -0.469171656648510, -0.835514354595492, -0.623736093891471, 0.443479545725970,
1190 0.443479545725970, -0.623736093891471, -0.819743451834499, 0.443479545725970,
1191 0.443479545725970, -0.819743451834499, -0.819743451834499, -0.623736093891471,
1192 -0.623736093891471, -0.819743451834499, -0.336632062394500, 0.104847567508036,
1193 0.104847567508036, -0.336632062394500, -0.768215505113536, 0.104847567508036,
1194 0.104847567508036, -0.768215505113536, -0.768215505113536, -0.336632062394500,
1195 -0.336632062394500, -0.768215505113536, -0.530404689974552, 0.224195004863778,
1196 0.224195004863778, -0.530404689974552, -0.693790314889227, 0.224195004863778,
1197 0.224195004863778, -0.693790314889227, -0.693790314889227, -0.530404689974552,
1198 -0.530404689974552, -0.693790314889227, -0.350831684137242, -0.019508133770036,
1199 -0.019508133770036, -0.350831684137242, -0.629660182092722, -0.019508133770036,
1200 -0.019508133770036, -0.629660182092722, -0.629660182092722, -0.350831684137242,
1201 -0.350831684137242, -0.629660182092722}};
1202 static const std::array<double, 145> cub2D_27_weights_data = {
1203 {0.029215421142604, 0.013615273717612, 0.013615273717612, 0.013615273717612,
1204 0.030951102870660, 0.030951102870660, 0.030951102870660, 0.031733186724762,
1205 0.031733186724762, 0.031733186724762, 0.031559855928489, 0.031559855928489,
1206 0.031559855928489, 0.027863700370354, 0.027863700370354, 0.027863700370354,
1207 0.019750305737275, 0.019750305737275, 0.019750305737275, 0.015635498945203,
1208 0.015635498945203, 0.015635498945203, 0.010432865446986, 0.010432865446986,
1209 0.010432865446986, 0.005852724472600, 0.005852724472600, 0.005852724472600,
1210 0.001134879007165, 0.001134879007165, 0.001134879007165, 0.001375795459783,
1211 0.001375795459783, 0.001375795459783, 0.001375795459783, 0.001375795459783,
1212 0.001375795459783, 0.003088879415937, 0.003088879415937, 0.003088879415937,
1213 0.003088879415937, 0.003088879415937, 0.003088879415937, 0.005625149324346,
1214 0.005625149324346, 0.005625149324346, 0.005625149324346, 0.005625149324346,
1215 0.005625149324346, 0.005913105372899, 0.005913105372899, 0.005913105372899,
1216 0.005913105372899, 0.005913105372899, 0.005913105372899, 0.005565783438844,
1217 0.005565783438844, 0.005565783438844, 0.005565783438844, 0.005565783438844,
1218 0.005565783438844, 0.002449540456172, 0.002449540456172, 0.002449540456172,
1219 0.002449540456172, 0.002449540456172, 0.002449540456172, 0.007906643758942,
1220 0.007906643758942, 0.007906643758942, 0.007906643758942, 0.007906643758942,
1221 0.007906643758942, 0.007221969465327, 0.007221969465327, 0.007221969465327,
1222 0.007221969465327, 0.007221969465327, 0.007221969465327, 0.008707930088036,
1223 0.008707930088036, 0.008707930088036, 0.008707930088036, 0.008707930088036,
1224 0.008707930088036, 0.011256464740666, 0.011256464740666, 0.011256464740666,
1225 0.011256464740666, 0.011256464740666, 0.011256464740666, 0.013269437724243,
1226 0.013269437724243, 0.013269437724243, 0.013269437724243, 0.013269437724243,
1227 0.013269437724243, 0.013046146795576, 0.013046146795576, 0.013046146795576,
1228 0.013046146795576, 0.013046146795576, 0.013046146795576, 0.012947418329903,
1229 0.012947418329903, 0.012947418329903, 0.012947418329903, 0.012947418329903,
1230 0.012947418329903, 0.021313811627966, 0.021313811627966, 0.021313811627966,
1231 0.021313811627966, 0.021313811627966, 0.021313811627966, 0.017176891528936,
1232 0.017176891528936, 0.017176891528936, 0.017176891528936, 0.017176891528936,
1233 0.017176891528936, 0.017763399981969, 0.017763399981969, 0.017763399981969,
1234 0.017763399981969, 0.017763399981969, 0.017763399981969, 0.023828398561090,
1235 0.023828398561090, 0.023828398561090, 0.023828398561090, 0.023828398561090,
1236 0.023828398561090, 0.026764788789016, 0.026764788789016, 0.026764788789016,
1237 0.026764788789016, 0.026764788789016, 0.026764788789016, 0.028977845006028,
1238 0.028977845006028, 0.028977845006028, 0.028977845006028, 0.028977845006028,
1239 0.028977845006028}};
1240
1241 // For cub2D_28: 225 points (225*3 = 675 elements)
1242 static const std::array<double, 225 * 2> cub2D_28_nodes_data = {
1243 {-0.988064607832230, 0.987992518020485, -0.937649986705898, 0.937273392400706,
1244 -0.849117911767581, 0.848206583410427, -0.726072255922453, 0.724417731360170,
1245 -0.573547944561595, 0.570972172608539, -0.397788705468703, 0.394151347077563,
1246 -0.205989917758162, 0.201194093997435, -0.006003740989757, 0.000000000000000,
1247 0.193982435778648, -0.201194093997435, 0.385781223489189, -0.394151347077563,
1248 0.561540462582081, -0.570972172608539, 0.714064773942939, -0.724417731360170,
1249 0.837110429788067, -0.848206583410427, 0.925642504726384, -0.937273392400706,
1250 0.976057125852715, -0.987992518020485, -0.988369112325678, 0.987992518020485,
1251 -0.939240706051164, 0.937273392400706, -0.852967326449712, 0.848206583410427,
1252 -0.733060901773317, 0.724417731360170, -0.584427902697520, 0.570972172608539,
1253 -0.413152762435777, 0.394151347077563, -0.226247286304345, 0.201194093997435,
1254 -0.031363303799647, 0.000000000000000, 0.163520678705051, -0.201194093997435,
1255 0.350426154836483, -0.394151347077563, 0.521701295098226, -0.570972172608539,
1256 0.670334294174023, -0.724417731360170, 0.790240718850418, -0.848206583410427,
1257 0.876514098451870, -0.937273392400706, 0.925642504726384, -0.987992518020485,
1258 -0.988903846377640, 0.987992518020485, -0.942034135439991, 0.937273392400706,
1259 -0.859727204070395, 0.848206583410427, -0.745333518414343, 0.724417731360170,
1260 -0.603533972474414, 0.570972172608539, -0.440133265559207, 0.394151347077563,
1261 -0.261820832829464, 0.201194093997435, -0.075896708294786, 0.000000000000000,
1262 0.110027416239891, -0.201194093997435, 0.288339848969634, -0.394151347077563,
1263 0.451740555884842, -0.570972172608539, 0.593540101824770, -0.724417731360170,
1264 0.707933787480822, -0.848206583410427, 0.790240718850418, -0.937273392400706,
1265 0.837110429788067, -0.987992518020485, -0.989647042582769, 0.987992518020485,
1266 -0.945916562813853, 0.937273392400706, -0.869122370464600, 0.848206583410427,
1267 -0.762390524754508, 0.724417731360170, -0.630088403599617, 0.570972172608539,
1268 -0.477631920189938, 0.394151347077563, -0.311262465886975, 0.201194093997435,
1269 -0.137791134319915, 0.000000000000000, 0.035680197247145, -0.201194093997435,
1270 0.202049651550108, -0.394151347077563, 0.354506134959787, -0.570972172608539,
1271 0.486808256114678, -0.724417731360170, 0.593540101824770, -0.848206583410427,
1272 0.670334294174023, -0.937273392400706, 0.714064773942939, -0.987992518020485,
1273 -0.990568289973542, 0.987992518020485, -0.950729122489687, 0.937273392400706,
1274 -0.880768383276303, 0.848206583410427, -0.783533962351248, 0.724417731360170,
1275 -0.663004610946658, 0.570972172608539, -0.524114312723242, 0.394151347077563,
1276 -0.372549075177309, 0.201194093997435, -0.214513913695731, 0.000000000000000,
1277 -0.056478752214152, -0.201194093997435, 0.095086485331781, -0.394151347077563,
1278 0.233976783555196, -0.570972172608539, 0.354506134959787, -0.724417731360170,
1279 0.451740555884842, -0.848206583410427, 0.521701295098226, -0.937273392400706,
1280 0.561540462582081, -0.987992518020485, -0.991629876411625, 0.987992518020485,
1281 -0.956274807758919, 0.937273392400706, -0.894188501892071, 0.848206583410427,
1282 -0.807898304472545, 0.724417731360170, -0.700935138254217, 0.570972172608539,
1283 -0.577677642201529, 0.394151347077563, -0.443171835046505, 0.201194093997435,
1284 -0.302924326461218, 0.000000000000000, -0.162676817875932, -0.201194093997435,
1285 -0.028171010720908, -0.394151347077563, 0.095086485331781, -0.570972172608539,
1286 0.202049651550108, -0.724417731360170, 0.288339848969634, -0.848206583410427,
1287 0.350426154836483, -0.937273392400706, 0.385781223489189, -0.987992518020485,
1288 -0.992788341781213, 0.987992518020485, -0.962326584707617, 0.937273392400706,
1289 -0.908833322242456, 0.848206583410427, -0.834486103249711, 0.724417731360170,
1290 -0.742327153788413, 0.570972172608539, -0.636129088126634, 0.394151347077563,
1291 -0.520239531729724, 0.201194093997435, -0.399402953001283, 0.000000000000000,
1292 -0.278566374272841, -0.201194093997435, -0.162676817875932, -0.394151347077563,
1293 -0.056478752214152, -0.570972172608539, 0.035680197247145, -0.724417731360170,
1294 0.110027416239891, -0.848206583410427, 0.163520678705051, -0.937273392400706,
1295 0.193982435778648, -0.987992518020485, -0.993996259010243, 0.987992518020485,
1296 -0.968636696200353, 0.937273392400706, -0.924103291705214, 0.848206583410427,
1297 -0.862208865680085, 0.724417731360170, -0.785486086304269, 0.570972172608539,
1298 -0.697075673538782, 0.394151347077563, -0.600597046998717, 0.201194093997435,
1299 -0.500000000000000, 0.000000000000000, -0.399402953001283, -0.201194093997435,
1300 -0.302924326461218, -0.394151347077563, -0.214513913695731, -0.570972172608539,
1301 -0.137791134319915, -0.724417731360170, -0.075896708294786, -0.848206583410427,
1302 -0.031363303799647, -0.937273392400706, -0.006003740989757, -0.987992518020485,
1303 -0.995204176239272, 0.987992518020485, -0.974946807693089, 0.937273392400706,
1304 -0.939373261167971, 0.848206583410427, -0.889931628110459, 0.724417731360170,
1305 -0.828645018820126, 0.570972172608539, -0.758022258950930, 0.394151347077563,
1306 -0.680954562267710, 0.201194093997435, -0.600597046998717, 0.000000000000000,
1307 -0.520239531729724, -0.201194093997435, -0.443171835046505, -0.394151347077563,
1308 -0.372549075177309, -0.570972172608539, -0.311262465886975, -0.724417731360170,
1309 -0.261820832829464, -0.848206583410427, -0.226247286304345, -0.937273392400706,
1310 -0.205989917758162, -0.987992518020485, -0.996362641608860, 0.987992518020485,
1311 -0.980998584641787, 0.937273392400706, -0.954018081518357, 0.848206583410427,
1312 -0.916519426887625, 0.724417731360170, -0.870037034354322, 0.570972172608539,
1313 -0.816473704876034, 0.394151347077563, -0.758022258950930, 0.201194093997435,
1314 -0.697075673538782, 0.000000000000000, -0.636129088126634, -0.201194093997435,
1315 -0.577677642201529, -0.394151347077563, -0.524114312723242, -0.570972172608539,
1316 -0.477631920189938, -0.724417731360170, -0.440133265559207, -0.848206583410427,
1317 -0.413152762435777, -0.937273392400706, -0.397788705468703, -0.987992518020485,
1318 -0.997424228046943, 0.987992518020485, -0.986544269911019, 0.937273392400706,
1319 -0.967438200134124, 0.848206583410427, -0.940883769008922, 0.724417731360170,
1320 -0.907967561661881, 0.570972172608539, -0.870037034354322, 0.394151347077563,
1321 -0.828645018820126, 0.201194093997435, -0.785486086304269, 0.000000000000000,
1322 -0.742327153788413, -0.201194093997435, -0.700935138254217, -0.394151347077563,
1323 -0.663004610946658, -0.570972172608539, -0.630088403599617, -0.724417731360170,
1324 -0.603533972474414, -0.848206583410427, -0.584427902697520, -0.937273392400706,
1325 -0.573547944561595, -0.987992518020485, -0.998345475437717, 0.987992518020485,
1326 -0.991356829586853, 0.937273392400706, -0.979084212945827, 0.848206583410427,
1327 -0.962027206605662, 0.724417731360170, -0.940883769008922, 0.570972172608539,
1328 -0.916519426887625, 0.394151347077563, -0.889931628110459, 0.201194093997435,
1329 -0.862208865680085, 0.000000000000000, -0.834486103249711, -0.201194093997435,
1330 -0.807898304472545, -0.394151347077563, -0.783533962351248, -0.570972172608539,
1331 -0.762390524754508, -0.724417731360170, -0.745333518414343, -0.848206583410427,
1332 -0.733060901773317, -0.937273392400706, -0.726072255922453, -0.987992518020485,
1333 -0.999088671642846, 0.987992518020485, -0.995239256960715, 0.937273392400706,
1334 -0.988479379340032, 0.848206583410427, -0.979084212945827, 0.724417731360170,
1335 -0.967438200134124, 0.570972172608539, -0.954018081518357, 0.394151347077563,
1336 -0.939373261167971, 0.201194093997435, -0.924103291705214, 0.000000000000000,
1337 -0.908833322242456, -0.201194093997435, -0.894188501892071, -0.394151347077563,
1338 -0.880768383276303, -0.570972172608539, -0.869122370464600, -0.724417731360170,
1339 -0.859727204070395, -0.848206583410427, -0.852967326449712, -0.937273392400706,
1340 -0.849117911767581, -0.987992518020485, -0.999623405694808, 0.987992518020485,
1341 -0.998032686349542, 0.937273392400706, -0.995239256960715, 0.848206583410427,
1342 -0.991356829586853, 0.724417731360170, -0.986544269911019, 0.570972172608539,
1343 -0.980998584641787, 0.394151347077563, -0.974946807693089, 0.201194093997435,
1344 -0.968636696200353, 0.000000000000000, -0.962326584707617, -0.201194093997435,
1345 -0.956274807758919, -0.394151347077563, -0.950729122489687, -0.570972172608539,
1346 -0.945916562813853, -0.724417731360170, -0.942034135439991, -0.848206583410427,
1347 -0.939240706051164, -0.937273392400706, -0.937649986705898, -0.987992518020485,
1348 -0.999927910188256, 0.987992518020485, -0.999623405694808, 0.937273392400706,
1349 -0.999088671642846, 0.848206583410427, -0.998345475437717, 0.724417731360170,
1350 -0.997424228046943, 0.570972172608539, -0.996362641608860, 0.394151347077563,
1351 -0.995204176239272, 0.201194093997435, -0.993996259010243, 0.000000000000000,
1352 -0.992788341781213, -0.201194093997435, -0.991629876411625, -0.394151347077563,
1353 -0.990568289973542, -0.570972172608539, -0.989647042582769, -0.724417731360170,
1354 -0.988903846377640, -0.848206583410427, -0.988369112325678, -0.937273392400706,
1355 -0.988064607832230, -0.987992518020485}};
1356 static const std::array<double, 225> cub2D_28_weights_data = {
1357 {0.000005678109445, 0.000067869690329, 0.000250117104238, 0.000591434111178,
1358 0.001096877668021, 0.001734258212849, 0.002437321168702, 0.003114968848543,
1359 0.003665090319212, 0.003990796070869, 0.004016439454972, 0.003700816722647,
1360 0.003045376334904, 0.002096114396383, 0.000940083783827, 0.000012991999963,
1361 0.000155291655212, 0.000572289322752, 0.001353251821662, 0.002509749901695,
1362 0.003968131092565, 0.005576799256556, 0.007127315095696, 0.008386040063107,
1363 0.009131282674963, 0.009189956930633, 0.008467785129237, 0.006968081473429,
1364 0.004796088983887, 0.002150992086750, 0.000019785289042, 0.000236490940043,
1365 0.000871529379538, 0.002060843481789, 0.003822054138805, 0.006042997294437,
1366 0.008492809847469, 0.010854063244177, 0.012770953436328, 0.013905870348620,
1367 0.013995224344240, 0.012895441564853, 0.010611569151594, 0.007303879856139,
1368 0.003275708150100, 0.000025769562269, 0.000308020165519, 0.001135132803359,
1369 0.002684167732828, 0.004978075474027, 0.007870766747028, 0.011061551425453,
1370 0.014136991279319, 0.016633665503545, 0.018111850228555, 0.018228230300094,
1371 0.016795806403939, 0.013821152243283, 0.009513016785380, 0.004266481271556,
1372 0.000030699031605, 0.000366941459749, 0.001352272787635, 0.003197623195991,
1373 0.005930333418609, 0.009376368701824, 0.013177519790991, 0.016841261700383,
1374 0.019815525683434, 0.021576472924861, 0.021715115384404, 0.020008682578130,
1375 0.016465005695410, 0.011332765372579, 0.005082618091388, 0.000034371743072,
1376 0.000410840893588, 0.001514053388316, 0.003580174265665, 0.006639815197344,
1377 0.010498120595869, 0.014754026459451, 0.018856084049129, 0.022186177283618,
1378 0.024157797330925, 0.024313026429341, 0.022402442709917, 0.018434814254740,
1379 0.012688572873940, 0.005690682540646, 0.000036637297986, 0.000437920771488,
1380 0.001613849639200, 0.003816155355883, 0.007077467309460, 0.011190086338209,
1381 0.015726512989614, 0.020098950720122, 0.023648541379510, 0.025750117404859,
1382 0.025915578164965, 0.023879061573116, 0.019649913644597, 0.013524918548175,
1383 0.006065774189928, 0.000037402932316, 0.000447072297244, 0.001647575343713,
1384 0.003895904128496, 0.007225369917846, 0.011423933120557, 0.016055160539688,
1385 0.020518972050826, 0.024142740900556, 0.026288234977700, 0.026457153482920,
1386 0.024378078430143, 0.020060551144640, 0.013807557894147, 0.006192534764769,
1387 0.000036637297986, 0.000437920771488, 0.001613849639200, 0.003816155355883,
1388 0.007077467309460, 0.011190086338209, 0.015726512989614, 0.020098950720122,
1389 0.023648541379510, 0.025750117404859, 0.025915578164965, 0.023879061573116,
1390 0.019649913644597, 0.013524918548175, 0.006065774189928, 0.000034371743072,
1391 0.000410840893588, 0.001514053388316, 0.003580174265665, 0.006639815197344,
1392 0.010498120595869, 0.014754026459451, 0.018856084049129, 0.022186177283618,
1393 0.024157797330925, 0.024313026429341, 0.022402442709917, 0.018434814254740,
1394 0.012688572873940, 0.005690682540646, 0.000030699031605, 0.000366941459749,
1395 0.001352272787635, 0.003197623195991, 0.005930333418609, 0.009376368701824,
1396 0.013177519790991, 0.016841261700383, 0.019815525683434, 0.021576472924861,
1397 0.021715115384404, 0.020008682578130, 0.016465005695410, 0.011332765372579,
1398 0.005082618091388, 0.000025769562269, 0.000308020165519, 0.001135132803359,
1399 0.002684167732828, 0.004978075474027, 0.007870766747028, 0.011061551425453,
1400 0.014136991279319, 0.016633665503545, 0.018111850228555, 0.018228230300094,
1401 0.016795806403939, 0.013821152243283, 0.009513016785380, 0.004266481271556,
1402 0.000019785289042, 0.000236490940043, 0.000871529379538, 0.002060843481789,
1403 0.003822054138805, 0.006042997294437, 0.008492809847469, 0.010854063244177,
1404 0.012770953436328, 0.013905870348620, 0.013995224344240, 0.012895441564853,
1405 0.010611569151594, 0.007303879856139, 0.003275708150100, 0.000012991999963,
1406 0.000155291655212, 0.000572289322752, 0.001353251821662, 0.002509749901695,
1407 0.003968131092565, 0.005576799256556, 0.007127315095696, 0.008386040063107,
1408 0.009131282674963, 0.009189956930633, 0.008467785129237, 0.006968081473429,
1409 0.004796088983887, 0.002150992086750, 0.000005678109445, 0.000067869690329,
1410 0.000250117104238, 0.000591434111178, 0.001096877668021, 0.001734258212849,
1411 0.002437321168702, 0.003114968848543, 0.003665090319212, 0.003990796070869,
1412 0.004016439454972, 0.003700816722647, 0.003045376334904, 0.002096114396383,
1413 0.000940083783827}};
1414 } // namespace
1415
1416 namespace oiseau::utils::integration {
1417 8 std::pair<xt::xarray<double>, xt::xarray<double>> triangle_cubature(int order) {
1418
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 6 times.
8 if (order <= 0) {
1419 2 throw std::out_of_range("triangle_cubature: order must be a positive integer, but got " +
1420
2/4
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 2 times.
✗ Branch 7 not taken.
4 std::to_string(order));
1421 }
1422
3/29
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✓ Branch 28 taken 1 times.
6 switch (order) {
1423 ✗ case 1:
1424 ✗ return std::pair{xt::adapt(cub2D_1_nodes_data.data(), {1ul, 2ul}),
1425 ✗ xt::adapt(cub2D_1_weights_data.data(), {1ul})};
1426 ✗ case 2:
1427 ✗ return std::pair{xt::adapt(cub2D_2_nodes_data.data(), {3ul, 2ul}),
1428 ✗ xt::adapt(cub2D_2_weights_data.data(), {3ul})};
1429 2 case 3:
1430
1/2
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
6 return std::pair{xt::adapt(cub2D_3_nodes_data.data(), {6ul, 2ul}),
1431
2/4
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✓ Branch 6 taken 2 times.
✗ Branch 7 not taken.
4 xt::adapt(cub2D_3_weights_data.data(), {6ul})};
1432 ✗ case 4:
1433 ✗ return std::pair{xt::adapt(cub2D_4_nodes_data.data(), {6ul, 2ul}),
1434 ✗ xt::adapt(cub2D_4_weights_data.data(), {6ul})};
1435 3 case 5:
1436
1/2
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
9 return std::pair{xt::adapt(cub2D_5_nodes_data.data(), {7ul, 2ul}),
1437
2/4
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 6 taken 3 times.
✗ Branch 7 not taken.
6 xt::adapt(cub2D_5_weights_data.data(), {7ul})};
1438 ✗ case 6:
1439 ✗ return std::pair{xt::adapt(cub2D_6_nodes_data.data(), {12ul, 2ul}),
1440 ✗ xt::adapt(cub2D_6_weights_data.data(), {12ul})};
1441 ✗ case 7:
1442 ✗ return std::pair{xt::adapt(cub2D_7_nodes_data.data(), {15ul, 2ul}),
1443 ✗ xt::adapt(cub2D_7_weights_data.data(), {15ul})};
1444 ✗ case 8:
1445 ✗ return std::pair{xt::adapt(cub2D_8_nodes_data.data(), {16ul, 2ul}),
1446 ✗ xt::adapt(cub2D_8_weights_data.data(), {16ul})};
1447 ✗ case 9:
1448 ✗ return std::pair{xt::adapt(cub2D_9_nodes_data.data(), {19ul, 2ul}),
1449 ✗ xt::adapt(cub2D_9_weights_data.data(), {19ul})};
1450 ✗ case 10:
1451 ✗ return std::pair{xt::adapt(cub2D_10_nodes_data.data(), {25ul, 2ul}),
1452 ✗ xt::adapt(cub2D_10_weights_data.data(), {25ul})};
1453 ✗ case 11:
1454 ✗ return std::pair{xt::adapt(cub2D_11_nodes_data.data(), {28ul, 2ul}),
1455 ✗ xt::adapt(cub2D_11_weights_data.data(), {28ul})};
1456 ✗ case 12:
1457 ✗ return std::pair{xt::adapt(cub2D_12_nodes_data.data(), {36ul, 2ul}),
1458 ✗ xt::adapt(cub2D_12_weights_data.data(), {36ul})};
1459 ✗ case 13:
1460 ✗ return std::pair{xt::adapt(cub2D_13_nodes_data.data(), {40ul, 2ul}),
1461 ✗ xt::adapt(cub2D_13_weights_data.data(), {40ul})};
1462 ✗ case 14:
1463 ✗ return std::pair{xt::adapt(cub2D_14_nodes_data.data(), {46ul, 2ul}),
1464 ✗ xt::adapt(cub2D_14_weights_data.data(), {46ul})};
1465 ✗ case 15:
1466 ✗ return std::pair{xt::adapt(cub2D_15_nodes_data.data(), {54ul, 2ul}),
1467 ✗ xt::adapt(cub2D_15_weights_data.data(), {54ul})};
1468 ✗ case 16:
1469 ✗ return std::pair{xt::adapt(cub2D_16_nodes_data.data(), {58ul, 2ul}),
1470 ✗ xt::adapt(cub2D_16_weights_data.data(), {58ul})};
1471 ✗ case 17:
1472 ✗ return std::pair{xt::adapt(cub2D_17_nodes_data.data(), {66ul, 2ul}),
1473 ✗ xt::adapt(cub2D_17_weights_data.data(), {66ul})};
1474 ✗ case 18:
1475 ✗ return std::pair{xt::adapt(cub2D_18_nodes_data.data(), {73ul, 2ul}),
1476 ✗ xt::adapt(cub2D_18_weights_data.data(), {73ul})};
1477 ✗ case 19:
1478 ✗ return std::pair{xt::adapt(cub2D_19_nodes_data.data(), {82ul, 2ul}),
1479 ✗ xt::adapt(cub2D_19_weights_data.data(), {82ul})};
1480 ✗ case 20:
1481 ✗ return std::pair{xt::adapt(cub2D_20_nodes_data.data(), {85ul, 2ul}),
1482 ✗ xt::adapt(cub2D_20_weights_data.data(), {85ul})};
1483 ✗ case 21:
1484 ✗ return std::pair{xt::adapt(cub2D_21_nodes_data.data(), {93ul, 2ul}),
1485 ✗ xt::adapt(cub2D_21_weights_data.data(), {93ul})};
1486 ✗ case 22:
1487 ✗ return std::pair{xt::adapt(cub2D_22_nodes_data.data(), {100ul, 2ul}),
1488 ✗ xt::adapt(cub2D_22_weights_data.data(), {100ul})};
1489 ✗ case 23:
1490 ✗ return std::pair{xt::adapt(cub2D_23_nodes_data.data(), {106ul, 2ul}),
1491 ✗ xt::adapt(cub2D_23_weights_data.data(), {106ul})};
1492 ✗ case 24:
1493 ✗ return std::pair{xt::adapt(cub2D_24_nodes_data.data(), {118ul, 2ul}),
1494 ✗ xt::adapt(cub2D_24_weights_data.data(), {118ul})};
1495 ✗ case 25:
1496 ✗ return std::pair{xt::adapt(cub2D_25_nodes_data.data(), {126ul, 2ul}),
1497 ✗ xt::adapt(cub2D_25_weights_data.data(), {126ul})};
1498 ✗ case 26:
1499 ✗ return std::pair{xt::adapt(cub2D_26_nodes_data.data(), {138ul, 2ul}),
1500 ✗ xt::adapt(cub2D_26_weights_data.data(), {138ul})};
1501 ✗ case 27:
1502 ✗ return std::pair{xt::adapt(cub2D_27_nodes_data.data(), {145ul, 2ul}),
1503 ✗ xt::adapt(cub2D_27_weights_data.data(), {145ul})};
1504 ✗ case 28:
1505 ✗ return std::pair{xt::adapt(cub2D_28_nodes_data.data(), {225ul, 2ul}),
1506 ✗ xt::adapt(cub2D_28_weights_data.data(), {225ul})};
1507 1 default:
1508 // The mapped Gauss rules must cover degree order in each coordinate.
1509 1 const int nodes_per_axis = order / 2 + 1;
1510
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 auto [cubA, cubWA] = jacobi_gq(nodes_per_axis - 1, 0, 0);
1511
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 auto [cubB, cubWB] = jacobi_gq(nodes_per_axis - 1, 1, 0);
1512
2/4
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
1 auto r0 = xt::reshape_view(xt::tile(cubA, {nodes_per_axis}), {nodes_per_axis, nodes_per_axis});
1513 auto r1 = xt::transpose(
1514
2/4
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
1 xt::reshape_view(xt::tile(cubB, {nodes_per_axis}), {nodes_per_axis, nodes_per_axis}));
1515
3/6
✓ Branch 6 taken 1 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 1 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 1 times.
✗ Branch 13 not taken.
2 xt::xarray<double> cubR = xt::flatten(xt::eval((0.5 * ((1.0 + r0) * (1.0 - r1)) - 1.0)));
1516
3/6
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
2 xt::xarray<double> cubS = xt::flatten(xt::eval(r1));
1517
2/4
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 1 times.
✗ Branch 6 not taken.
2 xt::xarray<double> nodes = xt::stack(xt::xtuple(cubR, cubS), 1);
1518
3/6
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 8 taken 1 times.
✗ Branch 9 not taken.
2 xt::xarray<double> weights = 0.5 * xt::flatten(xt::linalg::outer(cubWB, cubWA));
1519
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 return std::pair{nodes, weights};
1520
2/8
✗ Branch 2 not taken.
✓ Branch 3 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 1 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
4 }
1521 }
1522
1523 29 std::pair<xt::xarray<double>, xt::xarray<double>> quadrature(int order) {
1524
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 27 times.
29 if (order <= 0) {
1525 2 throw std::out_of_range("quadrature: n must be a positive integer, but got " +
1526
2/4
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 2 times.
✗ Branch 7 not taken.
4 std::to_string(order));
1527 }
1528 // An n-point Gauss-Legendre rule is exact through degree 2*n - 1.
1529 27 const int n = order / 2 + 1;
1530
1531 // Recurrence coefficients for Legendre polynomials
1532
1/2
✓ Branch 2 taken 27 times.
✗ Branch 3 not taken.
27 xt::xarray<double> a = xt::zeros<double>({n});
1533
1/2
✓ Branch 2 taken 27 times.
✗ Branch 3 not taken.
27 xt::xarray<double> b = xt::zeros<double>({n - 1});
1534
2/2
✓ Branch 0 taken 104 times.
✓ Branch 1 taken 27 times.
131 for (int i = 1; i < n; ++i) {
1535
1/2
✓ Branch 1 taken 104 times.
✗ Branch 2 not taken.
104 b[i - 1] = static_cast<double>(i) / std::sqrt(4.0 * i * i - 1.0);
1536 }
1537
1538 // Jacobi matrix construction
1539
1/2
✓ Branch 2 taken 27 times.
✗ Branch 3 not taken.
27 xt::xarray<double> J = xt::zeros<double>({n, n});
1540
2/2
✓ Branch 0 taken 131 times.
✓ Branch 1 taken 27 times.
158 for (int i = 0; i < n; ++i) {
1541
2/4
✓ Branch 1 taken 131 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 131 times.
✗ Branch 5 not taken.
131 J(i, i) = a[i];
1542
2/2
✓ Branch 0 taken 104 times.
✓ Branch 1 taken 27 times.
131 if (i < n - 1) {
1543
2/4
✓ Branch 1 taken 104 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 104 times.
✗ Branch 5 not taken.
104 J(i, i + 1) = b[i];
1544
2/4
✓ Branch 1 taken 104 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 104 times.
✗ Branch 5 not taken.
104 J(i + 1, i) = b[i];
1545 }
1546 }
1547
1548 // Solve eigenvalue problem
1549
1/2
✓ Branch 1 taken 27 times.
✗ Branch 2 not taken.
27 auto eig_result = xt::linalg::eig(J);
1550
1/2
✓ Branch 3 taken 27 times.
✗ Branch 4 not taken.
27 xt::xarray<double> eigenvalues = xt::real(std::get<0>(eig_result));
1551
1/2
✓ Branch 3 taken 27 times.
✗ Branch 4 not taken.
27 xt::xarray<double> eigenvectors = xt::real(std::get<1>(eig_result));
1552
1/2
✓ Branch 1 taken 27 times.
✗ Branch 2 not taken.
27 xt::xarray<std::size_t> sorted_indices = xt::argsort(eigenvalues);
1553
1554
3/6
✓ Branch 1 taken 27 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 27 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 27 times.
✗ Branch 8 not taken.
27 xt::xarray<double> nodes = xt::view(eigenvalues, xt::keep(sorted_indices));
1555
3/6
✓ Branch 1 taken 27 times.
✗ Branch 2 not taken.
✓ Branch 5 taken 27 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 27 times.
✗ Branch 9 not taken.
27 xt::xarray<double> sorted_vectors = xt::view(eigenvectors, xt::all(), xt::keep(sorted_indices));
1556
1557 // // Weights are 2 * (first row of eigenvectors)^2
1558
2/4
✓ Branch 1 taken 27 times.
✗ Branch 2 not taken.
✓ Branch 6 taken 27 times.
✗ Branch 7 not taken.
27 xt::xarray<double> weights = 2.0 * xt::square(xt::row(sorted_vectors, 0));
1559
1560
1/2
✓ Branch 1 taken 27 times.
✗ Branch 2 not taken.
54 return std::make_pair(nodes, weights);
1561 27 }
1562
1563 281 std::pair<xt::xarray<double>, xt::xarray<double>> jacobi_gq(unsigned n, double alpha, double beta) {
1564
2/2
✓ Branch 0 taken 58 times.
✓ Branch 1 taken 223 times.
281 if (n == 0) {
1565
1/2
✓ Branch 1 taken 58 times.
✗ Branch 2 not taken.
58 xt::xarray<double> x = {(alpha - beta) / (alpha + beta + 2)};
1566
1/2
✓ Branch 1 taken 58 times.
✗ Branch 2 not taken.
58 xt::xarray<double> w = {2};
1567 116 return make_pair(std::move(x), std::move(w));
1568 58 }
1569
1/2
✓ Branch 5 taken 223 times.
✗ Branch 6 not taken.
223 xt::xarray<double> h1 = 2 * xt::linspace<double>(0, n, n + 1) + alpha + beta;
1570
2/4
✓ Branch 1 taken 223 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 223 times.
✗ Branch 5 not taken.
223 auto h1s = xt::view(h1, xt::range(0, n));
1571 223 auto lins = xt::arange<double>(1, n + 1);
1572 xt::xarray<double> m =
1573
1/2
✓ Branch 6 taken 223 times.
✗ Branch 7 not taken.
446 xt::diag(-1.0 / 2.0 * (std::pow(alpha, 2) - std::pow(beta, 2)) / (h1 + 2) / h1) +
1574
1/2
✓ Branch 3 taken 223 times.
✗ Branch 4 not taken.
669 xt::diag(2. / (h1s + 2) *
1575 892 xt::sqrt(lins * (lins + alpha + beta) * (lins + alpha) * (lins + beta) /
1576 1115 (h1s + 1) / (h1s + 3)),
1577
1/2
✓ Branch 2 taken 223 times.
✗ Branch 3 not taken.
223 1);
1578
3/4
✓ Branch 0 taken 1 times.
✓ Branch 1 taken 222 times.
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
223 if (alpha + beta == 0) m(0, 0) = 0;
1579
1/2
✓ Branch 2 taken 223 times.
✗ Branch 3 not taken.
223 m += xt::transpose(m);
1580
1/2
✓ Branch 1 taken 223 times.
✗ Branch 2 not taken.
223 auto [d, v] = xt::linalg::eigh(m);
1581 223 double cte = std::pow(2, (alpha + beta + 1)) / (alpha + beta + 1) * std::tgamma(alpha + 1) *
1582 223 std::tgamma(beta + 1) / std::tgamma(alpha + beta + 1);
1583
3/6
✓ Branch 2 taken 223 times.
✗ Branch 3 not taken.
✓ Branch 7 taken 223 times.
✗ Branch 8 not taken.
✓ Branch 13 taken 223 times.
✗ Branch 14 not taken.
223 xt::xarray<double> w = cte * xt::square(xt::view(v, 0, xt::all())), x = d;
1584
1/2
✓ Branch 1 taken 223 times.
✗ Branch 2 not taken.
223 return {x, w};
1585
1/4
✗ Branch 2 not taken.
✓ Branch 3 taken 223 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
669 }
1586
1587 382 xt::xarray<double> jacobi_gl(unsigned n, double alpha, double beta) {
1588
2/2
✓ Branch 0 taken 104 times.
✓ Branch 1 taken 278 times.
382 if (n == 1) {
1589
1/2
✓ Branch 1 taken 104 times.
✗ Branch 2 not taken.
104 return xt::xarray<double>{-1.0, 1.0};
1590 }
1591
1/2
✓ Branch 1 taken 278 times.
✗ Branch 2 not taken.
278 auto [x, _] = jacobi_gq(n - 2, alpha + 1.0, beta + 1.0);
1592
2/4
✓ Branch 5 taken 278 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 278 times.
✗ Branch 9 not taken.
278 return xt::concatenate(xt::xtuple(-xt::ones<double>({1}), x, xt::ones<double>({1})));
1593
1/4
✗ Branch 0 not taken.
✓ Branch 1 taken 278 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
556 }
1594
1595 } // namespace oiseau::utils::integration
1596