Lines Matching refs:Linear

87     SBasis result(out_size, Linear());
109 SBasis result(out_size, Linear());
167 SBasis c(a.size(), Linear());
196 SBasis c(n, Linear());
200 c[i] = Linear(0,0);
212 SBasis shift(Linear const &a, int sh) {
214 SBasis c(n, Linear());
217 c[i] = Linear(0,0);
228 SBasis c(a.size() + b.size(), Linear(0,0));
234 c[i+1/*shift*/] += Linear(-tri);
258 c.resize(a.size() + b.size(), Linear(0,0));
262 c[i+1/*shift*/] += Linear(-tri);
283 SBasis c(1, Linear(0,0));
286 SBasis c(a.size() + b.size(), Linear(0,0));
297 a.resize(c.size() + 1, Linear(0,0));
298 a[0] = Linear(0,0);
321 c.resize(a.size(), Linear(0,0));
375 c.resize(k, Linear(0,0));
376 c[0] = Linear(std::sqrt(a[0][0]), std::sqrt(a[0][1]));
380 Linear ci(r[i][0]/(2*c[0][0]), r[i][1]/(2*c[0][1]));
398 SBasis reciprocal(Linear const &a, int k) {
401 c.resize(k, Linear(0,0));
405 c[i] = Linear(r_s0k/a[0], r_s0k/a[1]);
423 r.resize(k, Linear(0,0));
424 c.resize(k, Linear(0,0));
427 Linear ci(r[i][0]/b[0][0], r[i][1]/b[0][1]); //H0
445 SBasis s = multiply((SBasis(Linear(1,1))-b), b);
449 r = multiply_add(r, s, SBasis(Linear(a[i][0])) - b*a[i][0] + b*a[i][1]);
461 SBasis s = multiply((SBasis(Linear(1,1))-b), b);
465 r = multiply_add(r, s, SBasis(Linear(a[i][0])) - b*a[i][0] + b*a[i][1]);
474 SBasis ret = compose(t, Linear(from, to));
513 SBasis c(k, Linear()); // c(v) := 0
515 c[0] = Linear(0,1);
516 Linear t1(1+a[1][0], 1-a[1][1]); // t_1
517 c[1] = Linear(-a[1][0]/t1[0], -a[1][1]/t1[1]);
519 SBasis r = Linear(0,1); // r(u) := r_0(u) := u
520 Linear t1(1./(1+a[1][0]), 1./(1-a[1][1])); // 1./t_1
521 Linear one(1,1);
522 Linear t1i = one; // t_1^0
533 //c.resize(k+1, Linear(0,0));
543 r.resize(i+1, Linear(0,0));
544 Linear ci(r[i][0]*t1i[0], r[i][1]*t1i[1]); // c_i(v) := H_0(r_i(u)/(t_1)^i; u)
567 c = Linear(0,1); // linear
579 SBasis sin(Linear b, int k) {
580 SBasis s(k+2, Linear());
581 s[0] = Linear(std::sin(b[0]), std::sin(b[1]));
584 s[1] = Linear(std::cos(b[0])*t2 - tr, -std::cos(b[1])*t2 + tr);
588 Linear bo(4*(i+1)*s[i+1][0] - 2*s[i+1][1],
605 SBasis cos(Linear bo, int k) {
606 return sin(Linear(bo[0] + M_PI/2,
620 SBasis result(order, Linear(0.)); //result
622 SBasis Pk=Linear(1)-g,Qk=g,sg=Pk*Qk;
625 Pk.resize(order,Linear(0.));
626 Qk.resize(order,Linear(0.));
627 r.resize(order,Linear(0.));
651 result[k] = Linear(a,b);
657 Pk.resize(order,Linear(0.)); // truncates if too high order, expands with zeros if too low
658 Qk.resize(order,Linear(0.));
659 r.resize(order,Linear(0.));