// only simple data elements, so
// use sizeof operator
return sizeof (*this);
- };
+ }
:
Function<dim> (1),
fourier_coefficients (fourier_coefficients)
- {};
+ {}
{
Assert (component==0, ExcIndexRange(component,0,1));
return std::cos(fourier_coefficients * p);
- };
+ }
{
Assert (component==0, ExcIndexRange(component,0,1));
return -fourier_coefficients * std::sin(fourier_coefficients * p);
- };
+ }
{
Assert (component==0, ExcIndexRange(component,0,1));
return fourier_coefficients.square() * (-std::cos(fourier_coefficients * p));
- };
+ }
:
Function<dim> (1),
fourier_coefficients (fourier_coefficients)
- {};
+ {}
{
Assert (component==0, ExcIndexRange(component,0,1));
return std::sin(fourier_coefficients * p);
- };
+ }
{
Assert (component==0, ExcIndexRange(component,0,1));
return fourier_coefficients * std::cos(fourier_coefficients * p);
- };
+ }
{
Assert (component==0, ExcIndexRange(component,0,1));
return fourier_coefficients.square() * (-std::sin(fourier_coefficients * p));
- };
+ }
Assert (fourier_coefficients.size() > 0, ExcInvalidArraySize());
Assert (fourier_coefficients.size() == weights.size(),
ExcInvalidArraySize());
- };
+ }
sum += weights[s] * std::sin(fourier_coefficients[s] * p);
return sum;
- };
+ }
sum += fourier_coefficients[s] * std::cos(fourier_coefficients[s] * p);
return sum;
- };
+ }
sum -= fourier_coefficients[s].square() * std::sin(fourier_coefficients[s] * p);
return sum;
- };
+ }
Assert (fourier_coefficients.size() > 0, ExcInvalidArraySize());
Assert (fourier_coefficients.size() == weights.size(),
ExcInvalidArraySize());
- };
+ }
sum += weights[s] * std::cos(fourier_coefficients[s] * p);
return sum;
- };
+ }
sum -= fourier_coefficients[s] * std::sin(fourier_coefficients[s] * p);
return sum;
- };
+ }
sum -= fourier_coefficients[s].square() * std::cos(fourier_coefficients[s] * p);
return sum;
- };
+ }
// explicit instantiations