1 #ifndef DUNE_Q22DLOCALBASIS_HH
2 #define DUNE_Q22DLOCALBASIS_HH
4 #warning This file is deprecated and will be removed after Dune 2.2. \
5 Please use q2localbasis.hh instead!
7 #include <dune/common/fmatrix.hh>
23 template<
class D,
class R>
38 std::vector<typename Traits::RangeType>& out)
const
43 R X0=2*x*x-3*x+1, X1=-4*x*x+4*x, X2=2*x*x-x;
44 R Y0=2*y*y-3*y+1, Y1=-4*y*y+4*y, Y2=2*y*y-y;
62 std::vector<typename Traits::JacobianType>& out)
const
67 R X0=2*x*x-3*x+1, X1=-4*x*x+4*x, X2=2*x*x-x;
68 R Y0=2*y*y-3*y+1, Y1=-4*y*y+4*y, Y2=2*y*y-y;
69 R DX0=4*x-3, DX1=-8*x+4, DX2=4*x-1;
70 R DY0=4*y-3, DY1=-8*y+4, DY2=4*y-1;
72 out[2][0][0] = DX0*Y2; out[7][0][0] = DX1*Y2; out[3][0][0] = DX2*Y2;
73 out[2][0][1] = X0*DY2; out[7][0][1] = X1*DY2; out[3][0][1] = X2*DY2;
75 out[4][0][0] = DX0*Y1; out[8][0][0] = DX1*Y1; out[5][0][0] = DX2*Y1;
76 out[4][0][1] = X0*DY1; out[8][0][1] = X1*DY1; out[5][0][1] = X2*DY1;
78 out[0][0][0] = DX0*Y0; out[6][0][0] = DX1*Y0; out[1][0][0] = DX2*Y0;
79 out[0][0][1] = X0*DY0; out[6][0][1] = X1*DY0; out[1][0][1] = X2*DY0;