7double q_0_basis_value_1d_single_0(
double x) {
15void q_0_basis_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &result_0){
16result_0.resize(uv.rows(), 1);
19 for (Eigen::Index i = 0; i < uv.rows(); ++i)
20 result_0(i, 0) = q_0_basis_value_1d_single_0(uv(i, 0));
22 default: assert(
false);
25double q_1_basis_value_1d_single_0(
double x) {
31double q_1_basis_value_1d_single_1(
double x) {
39void q_1_basis_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &result_0){
40result_0.resize(uv.rows(), 1);
43 for (Eigen::Index i = 0; i < uv.rows(); ++i)
44 result_0(i, 0) = q_1_basis_value_1d_single_0(uv(i, 0));
47 for (Eigen::Index i = 0; i < uv.rows(); ++i)
48 result_0(i, 0) = q_1_basis_value_1d_single_1(uv(i, 0));
50 default: assert(
false);
53double q_2_basis_value_1d_single_0(
double x) {
55result = 1.0*(
x - 1)*(2.0*
x - 1.0);
59double q_2_basis_value_1d_single_1(
double x) {
61result = -4.0*
x*(
x - 1);
65double q_2_basis_value_1d_single_2(
double x) {
67result =
x*(2.0*
x - 1.0);
73void q_2_basis_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &result_0){
74result_0.resize(uv.rows(), 1);
77 for (Eigen::Index i = 0; i < uv.rows(); ++i)
78 result_0(i, 0) = q_2_basis_value_1d_single_0(uv(i, 0));
81 for (Eigen::Index i = 0; i < uv.rows(); ++i)
82 result_0(i, 0) = q_2_basis_value_1d_single_1(uv(i, 0));
85 for (Eigen::Index i = 0; i < uv.rows(); ++i)
86 result_0(i, 0) = q_2_basis_value_1d_single_2(uv(i, 0));
88 default: assert(
false);
91double q_3_basis_value_1d_single_0(
double x) {
93result = -4.5*pow(
x, 3) + 9.0*pow(
x, 2) - 5.5*
x + 1.0;
97double q_3_basis_value_1d_single_1(
double x) {
99result = 4.4999999999999991*
x*(
x - 1)*(3.0*
x - 2.0);
103double q_3_basis_value_1d_single_2(
double x) {
105result = -
x*(13.499999999999996*pow(
x, 2) - 17.999999999999996*
x + 4.4999999999999991);
109double q_3_basis_value_1d_single_3(
double x) {
111result =
x*(4.4999999999999991*pow(
x, 2) - 4.4999999999999982*
x + 0.99999999999999956);
117void q_3_basis_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &result_0){
118result_0.resize(uv.rows(), 1);
121 for (Eigen::Index i = 0; i < uv.rows(); ++i)
122 result_0(i, 0) = q_3_basis_value_1d_single_0(uv(i, 0));
125 for (Eigen::Index i = 0; i < uv.rows(); ++i)
126 result_0(i, 0) = q_3_basis_value_1d_single_1(uv(i, 0));
129 for (Eigen::Index i = 0; i < uv.rows(); ++i)
130 result_0(i, 0) = q_3_basis_value_1d_single_2(uv(i, 0));
133 for (Eigen::Index i = 0; i < uv.rows(); ++i)
134 result_0(i, 0) = q_3_basis_value_1d_single_3(uv(i, 0));
136 default: assert(
false);
139double q_m2_basis_value_1d_single_0(
double x) {
141result = 1.0*(
x - 1)*(2.0*
x - 1.0);
145double q_m2_basis_value_1d_single_1(
double x) {
147result = -4.0*
x*(
x - 1);
151double q_m2_basis_value_1d_single_2(
double x) {
153result =
x*(2.0*
x - 1.0);
159void q_m2_basis_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &result_0){
160result_0.resize(uv.rows(), 1);
163 for (Eigen::Index i = 0; i < uv.rows(); ++i)
164 result_0(i, 0) = q_m2_basis_value_1d_single_0(uv(i, 0));
167 for (Eigen::Index i = 0; i < uv.rows(); ++i)
168 result_0(i, 0) = q_m2_basis_value_1d_single_1(uv(i, 0));
171 for (Eigen::Index i = 0; i < uv.rows(); ++i)
172 result_0(i, 0) = q_m2_basis_value_1d_single_2(uv(i, 0));
174 default: assert(
false);
177double q_4_basis_value_1d_single_0(
double x) {
179result = 1.0*(
x - 1)*(1.3333333333333333*
x - 1.0)*(2.0*
x - 1.0)*(4.0*
x - 1.0);
183double q_4_basis_value_1d_single_1(
double x) {
185result = -
x*(42.666666666666664*pow(
x, 3) - 96.0*pow(
x, 2) + 69.333333333333329*
x - 16.0);
189double q_4_basis_value_1d_single_2(
double x) {
191double helper_0 = 4.0*
x;
192result = helper_0*(helper_0 - 3.0)*(helper_0 - 1.0)*(
x - 1);
196double q_4_basis_value_1d_single_3(
double x) {
198result = -
x*(42.666666666666664*pow(
x, 3) - 74.666666666666657*pow(
x, 2) + 37.333333333333329*
x - 5.333333333333333);
202double q_4_basis_value_1d_single_4(
double x) {
204result =
x*(10.666666666666666*pow(
x, 3) - 16.0*pow(
x, 2) + 7.333333333333333*
x - 1.0);
210void q_4_basis_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &result_0){
211result_0.resize(uv.rows(), 1);
214 for (Eigen::Index i = 0; i < uv.rows(); ++i)
215 result_0(i, 0) = q_4_basis_value_1d_single_0(uv(i, 0));
218 for (Eigen::Index i = 0; i < uv.rows(); ++i)
219 result_0(i, 0) = q_4_basis_value_1d_single_1(uv(i, 0));
222 for (Eigen::Index i = 0; i < uv.rows(); ++i)
223 result_0(i, 0) = q_4_basis_value_1d_single_2(uv(i, 0));
226 for (Eigen::Index i = 0; i < uv.rows(); ++i)
227 result_0(i, 0) = q_4_basis_value_1d_single_3(uv(i, 0));
230 for (Eigen::Index i = 0; i < uv.rows(); ++i)
231 result_0(i, 0) = q_4_basis_value_1d_single_4(uv(i, 0));
233 default: assert(
false);
236double q_5_basis_value_1d_single_0(
double x) {
238result = -26.041666666666671*pow(
x, 5) + 78.125*pow(
x, 4) - 88.541666666666671*pow(
x, 3) + 46.875*pow(
x, 2) - 11.416666666666668*
x + 1.0;
242double q_5_basis_value_1d_single_1(
double x) {
244result = 6.25*
x*(
x - 1)*(1.6666666666666665*
x - 1.3333333333333333)*(2.5*
x - 1.5)*(5.0*
x - 2.0);
248double q_5_basis_value_1d_single_2(
double x) {
250result = -
x*(260.41666666666674*pow(
x, 4) - 677.08333333333348*pow(
x, 3) + 614.58333333333348*pow(
x, 2) - 222.91666666666674*
x + 25.000000000000007);
254double q_5_basis_value_1d_single_3(
double x) {
256result = 4.166666666666667*
x*(
x - 1)*(2.5*
x - 0.5)*(4.9999999999999982*
x - 3.9999999999999987)*(5.0000000000000009*
x - 2.0000000000000004);
260double q_5_basis_value_1d_single_4(
double x) {
262result = -
x*(130.20833333333329*pow(
x, 4) - 286.45833333333326*pow(
x, 3) + 213.5416666666666*pow(
x, 2) - 63.541666666666636*
x + 6.2499999999999982);
266double q_5_basis_value_1d_single_5(
double x) {
268result =
x*(26.041666666666675*pow(
x, 4) - 52.08333333333335*pow(
x, 3) + 36.458333333333343*pow(
x, 2) - 10.41666666666667*
x + 1.0000000000000002);
274void q_5_basis_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &result_0){
275result_0.resize(uv.rows(), 1);
278 for (Eigen::Index i = 0; i < uv.rows(); ++i)
279 result_0(i, 0) = q_5_basis_value_1d_single_0(uv(i, 0));
282 for (Eigen::Index i = 0; i < uv.rows(); ++i)
283 result_0(i, 0) = q_5_basis_value_1d_single_1(uv(i, 0));
286 for (Eigen::Index i = 0; i < uv.rows(); ++i)
287 result_0(i, 0) = q_5_basis_value_1d_single_2(uv(i, 0));
290 for (Eigen::Index i = 0; i < uv.rows(); ++i)
291 result_0(i, 0) = q_5_basis_value_1d_single_3(uv(i, 0));
294 for (Eigen::Index i = 0; i < uv.rows(); ++i)
295 result_0(i, 0) = q_5_basis_value_1d_single_4(uv(i, 0));
298 for (Eigen::Index i = 0; i < uv.rows(); ++i)
299 result_0(i, 0) = q_5_basis_value_1d_single_5(uv(i, 0));
301 default: assert(
false);
304double q_6_basis_value_1d_single_0(
double x) {
306result = 1.0*(
x - 1)*(1.2*
x - 1.0)*(1.5*
x - 1.0)*(2.0*
x - 1.0)*(3.0*
x - 1.0)*(6.0*
x - 1.0);
310double q_6_basis_value_1d_single_1(
double x) {
312result = -
x*(388.79999999999984*pow(
x, 5) - 1295.9999999999995*pow(
x, 4) + 1673.9999999999993*pow(
x, 3) - 1043.9999999999995*pow(
x, 2) + 313.19999999999987*
x - 35.999999999999986);
316double q_6_basis_value_1d_single_2(
double x) {
318result = 4.4999999999999991*
x*(
x - 1)*(2.0*
x - 1.6666666666666667)*(3.0*
x - 2.0)*(5.9999999999999991*
x - 2.9999999999999996)*(6.0*
x - 1.0);
322double q_6_basis_value_1d_single_3(
double x) {
324result = -
x*(1295.9999999999998*pow(
x, 5) - 3887.9999999999991*pow(
x, 4) + 4355.9999999999982*pow(
x, 3) - 2231.9999999999991*pow(
x, 2) + 507.99999999999983*
x - 39.999999999999986);
328double q_6_basis_value_1d_single_4(
double x) {
330result = 4.4999999999999991*
x*(
x - 1)*(2.0*
x - 0.33333333333333331)*(3.0*
x - 1.0)*(5.9999999999999973*
x - 4.9999999999999982)*(6.0000000000000018*
x - 3.0000000000000009);
334double q_6_basis_value_1d_single_5(
double x) {
336result = -
x*(388.79999999999984*pow(
x, 5) - 1036.7999999999997*pow(
x, 4) + 1025.9999999999995*pow(
x, 3) - 467.99999999999983*pow(
x, 2) + 97.199999999999946*
x - 7.1999999999999957);
340double q_6_basis_value_1d_single_6(
double x) {
342result =
x*(64.799999999999997*pow(
x, 5) - 162.0*pow(
x, 4) + 153.0*pow(
x, 3) - 67.5*pow(
x, 2) + 13.699999999999998*
x - 0.99999999999999967);
348void q_6_basis_value_1d(
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &result_0){
349result_0.resize(uv.rows(), 1);
352 for (Eigen::Index i = 0; i < uv.rows(); ++i)
353 result_0(i, 0) = q_6_basis_value_1d_single_0(uv(i, 0));
356 for (Eigen::Index i = 0; i < uv.rows(); ++i)
357 result_0(i, 0) = q_6_basis_value_1d_single_1(uv(i, 0));
360 for (Eigen::Index i = 0; i < uv.rows(); ++i)
361 result_0(i, 0) = q_6_basis_value_1d_single_2(uv(i, 0));
364 for (Eigen::Index i = 0; i < uv.rows(); ++i)
365 result_0(i, 0) = q_6_basis_value_1d_single_3(uv(i, 0));
368 for (Eigen::Index i = 0; i < uv.rows(); ++i)
369 result_0(i, 0) = q_6_basis_value_1d_single_4(uv(i, 0));
372 for (Eigen::Index i = 0; i < uv.rows(); ++i)
373 result_0(i, 0) = q_6_basis_value_1d_single_5(uv(i, 0));
376 for (Eigen::Index i = 0; i < uv.rows(); ++i)
377 result_0(i, 0) = q_6_basis_value_1d_single_6(uv(i, 0));
379 default: assert(
false);
384void q_basis_value_1d(
const int q,
const int local_index,
const Eigen::MatrixXd &uv, Eigen::MatrixXd &
val){
386 case 0: q_0_basis_value_1d(local_index, uv,
val);
break;
387 case 1: q_1_basis_value_1d(local_index, uv,
val);
break;
388 case 2: q_2_basis_value_1d(local_index, uv,
val);
break;
389 case 3: q_3_basis_value_1d(local_index, uv,
val);
break;
390 case -2: q_m2_basis_value_1d(local_index, uv,
val);
break;
391 case 4: q_4_basis_value_1d(local_index, uv,
val);
break;
392 case 5: q_5_basis_value_1d(local_index, uv,
val);
break;
393 case 6: q_6_basis_value_1d(local_index, uv,
val);
break;
394 default: assert(
false);
void q_basis_value_1d(const int q, const int local_index, const Eigen::MatrixXd &uv, Eigen::MatrixXd &val)