7void q_0_basis_grad_value_1d_single_0(
double x,
double *
val) {
13void q_0_basis_grad_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &
val){
14val.resize(uv.rows(), 1);
18 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
19 q_0_basis_grad_value_1d_single_0(uv(i, 0), gradient);
20 val(i, 0) = gradient[0];
23 default: assert(
false);
27void q_1_basis_grad_value_1d_single_0(
double x,
double *
val) {
31void q_1_basis_grad_value_1d_single_1(
double x,
double *
val) {
37void q_1_basis_grad_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &
val){
38val.resize(uv.rows(), 1);
42 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
43 q_1_basis_grad_value_1d_single_0(uv(i, 0), gradient);
44 val(i, 0) = gradient[0];
48 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
49 q_1_basis_grad_value_1d_single_1(uv(i, 0), gradient);
50 val(i, 0) = gradient[0];
53 default: assert(
false);
57void q_2_basis_grad_value_1d_single_0(
double x,
double *
val) {
58{
val[0] = 4.0*
x - 3.0;}
61void q_2_basis_grad_value_1d_single_1(
double x,
double *
val) {
62{
val[0] = 4.0 - 8.0*
x;}
65void q_2_basis_grad_value_1d_single_2(
double x,
double *
val) {
66{
val[0] = 4.0*
x - 1.0;}
71void q_2_basis_grad_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &
val){
72val.resize(uv.rows(), 1);
76 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
77 q_2_basis_grad_value_1d_single_0(uv(i, 0), gradient);
78 val(i, 0) = gradient[0];
82 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
83 q_2_basis_grad_value_1d_single_1(uv(i, 0), gradient);
84 val(i, 0) = gradient[0];
88 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
89 q_2_basis_grad_value_1d_single_2(uv(i, 0), gradient);
90 val(i, 0) = gradient[0];
93 default: assert(
false);
97void q_3_basis_grad_value_1d_single_0(
double x,
double *
val) {
98{
val[0] = -13.5*pow(
x, 2) + 18.0*
x - 5.5;}
101void q_3_basis_grad_value_1d_single_1(
double x,
double *
val) {
102{
val[0] = 40.499999999999986*pow(
x, 2) - 44.999999999999986*
x + 8.9999999999999982;}
105void q_3_basis_grad_value_1d_single_2(
double x,
double *
val) {
106{
val[0] = -40.499999999999986*pow(
x, 2) + 35.999999999999993*
x - 4.4999999999999991;}
109void q_3_basis_grad_value_1d_single_3(
double x,
double *
val) {
110{
val[0] = 13.499999999999996*pow(
x, 2) - 8.9999999999999964*
x + 0.99999999999999956;}
115void q_3_basis_grad_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &
val){
116val.resize(uv.rows(), 1);
120 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
121 q_3_basis_grad_value_1d_single_0(uv(i, 0), gradient);
122 val(i, 0) = gradient[0];
126 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
127 q_3_basis_grad_value_1d_single_1(uv(i, 0), gradient);
128 val(i, 0) = gradient[0];
132 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
133 q_3_basis_grad_value_1d_single_2(uv(i, 0), gradient);
134 val(i, 0) = gradient[0];
138 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
139 q_3_basis_grad_value_1d_single_3(uv(i, 0), gradient);
140 val(i, 0) = gradient[0];
143 default: assert(
false);
147void q_m2_basis_grad_value_1d_single_0(
double x,
double *
val) {
148{
val[0] = 4.0*
x - 3.0;}
151void q_m2_basis_grad_value_1d_single_1(
double x,
double *
val) {
152{
val[0] = 4.0 - 8.0*
x;}
155void q_m2_basis_grad_value_1d_single_2(
double x,
double *
val) {
156{
val[0] = 4.0*
x - 1.0;}
161void q_m2_basis_grad_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &
val){
162val.resize(uv.rows(), 1);
166 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
167 q_m2_basis_grad_value_1d_single_0(uv(i, 0), gradient);
168 val(i, 0) = gradient[0];
172 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
173 q_m2_basis_grad_value_1d_single_1(uv(i, 0), gradient);
174 val(i, 0) = gradient[0];
178 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
179 q_m2_basis_grad_value_1d_single_2(uv(i, 0), gradient);
180 val(i, 0) = gradient[0];
183 default: assert(
false);
187void q_4_basis_grad_value_1d_single_0(
double x,
double *
val) {
188{
val[0] = 42.666666666666664*pow(
x, 3) - 80.0*pow(
x, 2) + 46.666666666666657*
x - 8.3333333333333339;}
191void q_4_basis_grad_value_1d_single_1(
double x,
double *
val) {
192{
val[0] = -170.66666666666666*pow(
x, 3) + 288.0*pow(
x, 2) - 138.66666666666666*
x + 16.0;}
195void q_4_basis_grad_value_1d_single_2(
double x,
double *
val) {
196{
val[0] = 256.0*pow(
x, 3) - 384.0*pow(
x, 2) + 152.0*
x - 12.0;}
199void q_4_basis_grad_value_1d_single_3(
double x,
double *
val) {
200{
val[0] = -170.66666666666666*pow(
x, 3) + 223.99999999999997*pow(
x, 2) - 74.666666666666657*
x + 5.333333333333333;}
203void q_4_basis_grad_value_1d_single_4(
double x,
double *
val) {
204{
val[0] = 42.666666666666664*pow(
x, 3) - 48.0*pow(
x, 2) + 14.666666666666666*
x - 1.0;}
209void q_4_basis_grad_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &
val){
210val.resize(uv.rows(), 1);
214 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
215 q_4_basis_grad_value_1d_single_0(uv(i, 0), gradient);
216 val(i, 0) = gradient[0];
220 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
221 q_4_basis_grad_value_1d_single_1(uv(i, 0), gradient);
222 val(i, 0) = gradient[0];
226 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
227 q_4_basis_grad_value_1d_single_2(uv(i, 0), gradient);
228 val(i, 0) = gradient[0];
232 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
233 q_4_basis_grad_value_1d_single_3(uv(i, 0), gradient);
234 val(i, 0) = gradient[0];
238 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
239 q_4_basis_grad_value_1d_single_4(uv(i, 0), gradient);
240 val(i, 0) = gradient[0];
243 default: assert(
false);
247void q_5_basis_grad_value_1d_single_0(
double x,
double *
val) {
248{
val[0] = -130.20833333333337*pow(
x, 4) + 312.5*pow(
x, 3) - 265.625*pow(
x, 2) + 93.75*
x - 11.416666666666668;}
251void q_5_basis_grad_value_1d_single_1(
double x,
double *
val) {
252{
val[0] = 651.04166666666652*pow(
x, 4) - 1458.333333333333*pow(
x, 3) + 1109.3749999999998*pow(
x, 2) - 320.83333333333331*
x + 25.0;}
255void q_5_basis_grad_value_1d_single_2(
double x,
double *
val) {
256{
val[0] = -1302.0833333333337*pow(
x, 4) + 2708.3333333333339*pow(
x, 3) - 1843.7500000000005*pow(
x, 2) + 445.83333333333348*
x - 25.000000000000007;}
259void q_5_basis_grad_value_1d_single_3(
double x,
double *
val) {
260{
val[0] = 1302.0833333333333*pow(
x, 4) - 2500.0*pow(
x, 3) + 1531.25*pow(
x, 2) - 324.99999999999994*
x + 16.666666666666664;}
263void q_5_basis_grad_value_1d_single_4(
double x,
double *
val) {
264{
val[0] = -651.0416666666664*pow(
x, 4) + 1145.833333333333*pow(
x, 3) - 640.62499999999977*pow(
x, 2) + 127.08333333333327*
x - 6.2499999999999982;}
267void q_5_basis_grad_value_1d_single_5(
double x,
double *
val) {
268{
val[0] = 130.20833333333337*pow(
x, 4) - 208.3333333333334*pow(
x, 3) + 109.37500000000003*pow(
x, 2) - 20.833333333333339*
x + 1.0000000000000002;}
273void q_5_basis_grad_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &
val){
274val.resize(uv.rows(), 1);
278 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
279 q_5_basis_grad_value_1d_single_0(uv(i, 0), gradient);
280 val(i, 0) = gradient[0];
284 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
285 q_5_basis_grad_value_1d_single_1(uv(i, 0), gradient);
286 val(i, 0) = gradient[0];
290 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
291 q_5_basis_grad_value_1d_single_2(uv(i, 0), gradient);
292 val(i, 0) = gradient[0];
296 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
297 q_5_basis_grad_value_1d_single_3(uv(i, 0), gradient);
298 val(i, 0) = gradient[0];
302 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
303 q_5_basis_grad_value_1d_single_4(uv(i, 0), gradient);
304 val(i, 0) = gradient[0];
308 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
309 q_5_basis_grad_value_1d_single_5(uv(i, 0), gradient);
310 val(i, 0) = gradient[0];
313 default: assert(
false);
317void q_6_basis_grad_value_1d_single_0(
double x,
double *
val) {
318{
val[0] = 388.80000000000001*pow(
x, 5) - 1134.0*pow(
x, 4) + 1260.0*pow(
x, 3) - 661.5*pow(
x, 2) + 162.39999999999998*
x - 14.699999999999999;}
321void q_6_basis_grad_value_1d_single_1(
double x,
double *
val) {
322{
val[0] = -2332.7999999999988*pow(
x, 5) + 6479.9999999999982*pow(
x, 4) - 6695.9999999999973*pow(
x, 3) + 3131.9999999999986*pow(
x, 2) - 626.39999999999975*
x + 35.999999999999986;}
325void q_6_basis_grad_value_1d_single_2(
double x,
double *
val) {
326{
val[0] = 5831.9999999999982*pow(
x, 5) - 15389.999999999993*pow(
x, 4) + 14795.999999999993*pow(
x, 3) - 6223.4999999999982*pow(
x, 2) + 1052.9999999999995*
x - 44.999999999999986;}
329void q_6_basis_grad_value_1d_single_3(
double x,
double *
val) {
330{
val[0] = -7775.9999999999991*pow(
x, 5) + 19439.999999999996*pow(
x, 4) - 17423.999999999993*pow(
x, 3) + 6695.9999999999973*pow(
x, 2) - 1015.9999999999997*
x + 39.999999999999986;}
333void q_6_basis_grad_value_1d_single_4(
double x,
double *
val) {
334{
val[0] = 5831.9999999999982*pow(
x, 5) - 13769.999999999996*pow(
x, 4) + 11555.999999999996*pow(
x, 3) - 4144.4999999999982*pow(
x, 2) + 593.99999999999989*
x - 22.499999999999993;}
337void q_6_basis_grad_value_1d_single_5(
double x,
double *
val) {
338{
val[0] = -2332.7999999999988*pow(
x, 5) + 5183.9999999999982*pow(
x, 4) - 4103.9999999999982*pow(
x, 3) + 1403.9999999999995*pow(
x, 2) - 194.39999999999989*
x + 7.1999999999999957;}
341void q_6_basis_grad_value_1d_single_6(
double x,
double *
val) {
342{
val[0] = 388.80000000000001*pow(
x, 5) - 810.0*pow(
x, 4) + 612.0*pow(
x, 3) - 202.5*pow(
x, 2) + 27.399999999999995*
x - 0.99999999999999967;}
347void q_6_basis_grad_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &
val){
348val.resize(uv.rows(), 1);
352 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
353 q_6_basis_grad_value_1d_single_0(uv(i, 0), gradient);
354 val(i, 0) = gradient[0];
358 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
359 q_6_basis_grad_value_1d_single_1(uv(i, 0), gradient);
360 val(i, 0) = gradient[0];
364 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
365 q_6_basis_grad_value_1d_single_2(uv(i, 0), gradient);
366 val(i, 0) = gradient[0];
370 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
371 q_6_basis_grad_value_1d_single_3(uv(i, 0), gradient);
372 val(i, 0) = gradient[0];
376 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
377 q_6_basis_grad_value_1d_single_4(uv(i, 0), gradient);
378 val(i, 0) = gradient[0];
382 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
383 q_6_basis_grad_value_1d_single_5(uv(i, 0), gradient);
384 val(i, 0) = gradient[0];
388 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
389 q_6_basis_grad_value_1d_single_6(uv(i, 0), gradient);
390 val(i, 0) = gradient[0];
393 default: assert(
false);
401 case 0: q_0_basis_grad_value_1d(local_index, uv,
val);
break;
402 case 1: q_1_basis_grad_value_1d(local_index, uv,
val);
break;
403 case 2: q_2_basis_grad_value_1d(local_index, uv,
val);
break;
404 case 3: q_3_basis_grad_value_1d(local_index, uv,
val);
break;
405 case -2: q_m2_basis_grad_value_1d(local_index, uv,
val);
break;
406 case 4: q_4_basis_grad_value_1d(local_index, uv,
val);
break;
407 case 5: q_5_basis_grad_value_1d(local_index, uv,
val);
break;
408 case 6: q_6_basis_grad_value_1d(local_index, uv,
val);
break;
409 default: assert(
false);
void q_grad_basis_value_1d(const int q, const int local_index, const Eigen::MatrixXd &uv, Eigen::MatrixXd &val)