// ---------------------------------------------------------------------
//
-// Copyright (C) 1998 - 2014 by the deal.II authors
+// Copyright (C) 1998 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
* following methods:
* @code
* // access to one component at one point
- * double value (const Point<dim, Number> &p,
+ * double value (const Point<dim> &p,
* const unsigned int component = 0) const;
*
* // return all components at one point
- * void vector_value (const Point<dim, Number> &p,
+ * void vector_value (const Point<dim> &p,
* Vector<double> &value) const;
* @endcode
*
* components at a list of points at once:
* @code
* // access to one component at several points
- * void value_list (const std::vector<Point<dim, Number> > &point_list,
+ * void value_list (const std::vector<Point<dim> > &point_list,
* std::vector<double> &value_list,
* const unsigned int component = 0) const;
*
* // return all components at several points
- * void vector_value_list (const std::vector<Point<dim, Number> > &point_list,
+ * void vector_value_list (const std::vector<Point<dim> > &point_list,
* std::vector<Vector<double> > &value_list) const;
* @endcode
*
* component you want to have evaluated; it defaults to zero, i.e. the first
* component.
*/
- virtual Number value (const Point<dim, Number> &p,
+ virtual Number value (const Point<dim> &p,
const unsigned int component = 0) const;
/**
*
* The default implementation will call value() for each component.
*/
- virtual void vector_value (const Point<dim, Number> &p,
+ virtual void vector_value (const Point<dim> &p,
Vector<Number> &values) const;
/**
* By default, this function repeatedly calls value() for each point
* separately, to fill the output array.
*/
- virtual void value_list (const std::vector<Point<dim, Number> > &points,
+ virtual void value_list (const std::vector<Point<dim> > &points,
std::vector<Number> &values,
const unsigned int component = 0) const;
* By default, this function repeatedly calls vector_value() for each point
* separately, to fill the output array.
*/
- virtual void vector_value_list (const std::vector<Point<dim, Number> > &points,
+ virtual void vector_value_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &values) const;
/**
* value_list() for each component. In order to improve performance, this
* can be reimplemented in derived classes to speed up performance.
*/
- virtual void vector_values (const std::vector<Point<dim, Number> > &points,
+ virtual void vector_values (const std::vector<Point<dim> > &points,
std::vector<std::vector<Number> > &values) const;
/**
* Return the gradient of the specified component of the function at the
* given point.
*/
- virtual Tensor<1,dim, Number> gradient (const Point<dim, Number> &p,
+ virtual Tensor<1,dim, Number> gradient (const Point<dim> &p,
const unsigned int component = 0) const;
/**
* Return the gradient of all components of the function at the given point.
*/
- virtual void vector_gradient (const Point<dim, Number> &p,
+ virtual void vector_gradient (const Point<dim> &p,
std::vector<Tensor<1,dim, Number> > &gradients) const;
/**
* already has the right size, i.e. the same size as the <tt>points</tt>
* array.
*/
- virtual void gradient_list (const std::vector<Point<dim, Number> > &points,
+ virtual void gradient_list (const std::vector<Point<dim> > &points,
std::vector<Tensor<1,dim, Number> > &gradients,
const unsigned int component = 0) const;
* value_list() for each component. In order to improve performance, this
* can be reimplemented in derived classes to speed up performance.
*/
- virtual void vector_gradients (const std::vector<Point<dim, Number> > &points,
+ virtual void vector_gradients (const std::vector<Point<dim> > &points,
std::vector<std::vector<Tensor<1,dim, Number> > > &gradients) const;
/**
* The outer loop over <tt>gradients</tt> is over the points in the list,
* the inner loop over the different components of the function.
*/
- virtual void vector_gradient_list (const std::vector<Point<dim, Number> > &points,
+ virtual void vector_gradient_list (const std::vector<Point<dim> > &points,
std::vector<std::vector<Tensor<1,dim, Number> > > &gradients) const;
/**
* Compute the Laplacian of a given component at point <tt>p</tt>.
*/
- virtual Number laplacian (const Point<dim, Number> &p,
+ virtual Number laplacian (const Point<dim> &p,
const unsigned int component = 0) const;
/**
* Compute the Laplacian of all components at point <tt>p</tt> and store
* them in <tt>values</tt>.
*/
- virtual void vector_laplacian (const Point<dim, Number> &p,
+ virtual void vector_laplacian (const Point<dim> &p,
Vector<Number> &values) const;
/**
* Compute the Laplacian of one component at a set of points.
*/
- virtual void laplacian_list (const std::vector<Point<dim, Number> > &points,
+ virtual void laplacian_list (const std::vector<Point<dim> > &points,
std::vector<Number> &values,
const unsigned int component = 0) const;
/**
* Compute the Laplacians of all components at a set of points.
*/
- virtual void vector_laplacian_list (const std::vector<Point<dim, Number> > &points,
+ virtual void vector_laplacian_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &values) const;
/**
*/
virtual ~ZeroFunction ();
- virtual Number value (const Point<dim, Number> &p,
+ virtual Number value (const Point<dim> &p,
const unsigned int component) const;
- virtual void vector_value (const Point<dim, Number> &p,
+ virtual void vector_value (const Point<dim> &p,
Vector<Number> &return_value) const;
- virtual void value_list (const std::vector<Point<dim, Number> > &points,
+ virtual void value_list (const std::vector<Point<dim> > &points,
std::vector<Number> &values,
const unsigned int component = 0) const;
- virtual void vector_value_list (const std::vector<Point<dim, Number> > &points,
+ virtual void vector_value_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &values) const;
- virtual Tensor<1,dim, Number> gradient (const Point<dim, Number> &p,
+ virtual Tensor<1,dim, Number> gradient (const Point<dim> &p,
const unsigned int component = 0) const;
- virtual void vector_gradient (const Point<dim, Number> &p,
+ virtual void vector_gradient (const Point<dim> &p,
std::vector<Tensor<1,dim, Number> > &gradients) const;
- virtual void gradient_list (const std::vector<Point<dim, Number> > &points,
+ virtual void gradient_list (const std::vector<Point<dim> > &points,
std::vector<Tensor<1,dim, Number> > &gradients,
const unsigned int component = 0) const;
- virtual void vector_gradient_list (const std::vector<Point<dim, Number> > &points,
+ virtual void vector_gradient_list (const std::vector<Point<dim> > &points,
std::vector<std::vector<Tensor<1,dim, Number> > > &gradients) const;
};
*/
virtual ~ConstantFunction ();
- virtual Number value (const Point<dim, Number> &p,
+ virtual Number value (const Point<dim> &p,
const unsigned int component) const;
- virtual void vector_value (const Point<dim, Number> &p,
+ virtual void vector_value (const Point<dim> &p,
Vector<Number> &return_value) const;
- virtual void value_list (const std::vector<Point<dim, Number> > &points,
+ virtual void value_list (const std::vector<Point<dim> > &points,
std::vector<Number> &values,
const unsigned int component = 0) const;
- virtual void vector_value_list (const std::vector<Point<dim, Number> > &points,
+ virtual void vector_value_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &values) const;
std::size_t memory_consumption () const;
/**
* Return the value of the function at the given point for all components.
*/
- virtual void vector_value (const Point<dim, Number> &p,
+ virtual void vector_value (const Point<dim> &p,
Vector<Number> &return_value) const;
/**
* already has the right size, i.e. the same size as the <tt>points</tt>
* array.
*/
- virtual void vector_value_list (const std::vector<Point<dim, Number> > &points,
+ virtual void vector_value_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &values) const;
/**
/**
* This class provides a way to convert a scalar function of the kind
* @code
- * Number foo (const Point<dim, Number> &);
+ * Number foo (const Point<dim> &);
* @endcode
* into an object of type Function@<dim@>. Since the argument returns a
* scalar, the result is clearly a Function object for which
* template <int dim, typename Number>
* class Norm : public Function<dim, Number> {
* public:
- * virtual Number value (const Point<dim, Number> &p,
+ * virtual Number value (const Point<dim> &p,
* const unsigned int component) const {
* Assert (component == 0, ExcMessage ("This object is scalar!"));
* return p.norm();
* and then pass the <code>my_norm_object</code> around, or you could write it
* like so:
* @code
- * ScalarFunctionFromFunctionObject<dim, Number> my_norm_object (&Point<dim, Number>::norm);
+ * ScalarFunctionFromFunctionObject<dim, Number> my_norm_object (&Point<dim>::norm);
* @endcode
*
* Similarly, to generate an object that computes the distance to a point
* template <int dim, typename Number>
* class DistanceTo : public Function<dim, Number> {
* public:
- * DistanceTo (const Point<dim, Number> &q) : q(q) {}
- * virtual Number value (const Point<dim, Number> &p,
+ * DistanceTo (const Point<dim> &q) : q(q) {}
+ * virtual Number value (const Point<dim> &p,
* const unsigned int component) const {
* Assert (component == 0, ExcMessage ("This object is scalar!"));
* return q.distance(p);
* }
* private:
- * const Point<dim, Number> q;
+ * const Point<dim> q;
* };
*
* Point<2> q (2,3);
* or we could write it like so:
* @code
* ScalarFunctionFromFunctionObject<dim, Number>
- * my_distance_object (std_cxx11::bind (&Point<dim, Number>::distance,
+ * my_distance_object (std_cxx11::bind (&Point<dim>::distance,
* q,
* std_cxx11::_1));
* @endcode
* convert this into an object that matches the Function<dim, Number>
* interface.
*/
- ScalarFunctionFromFunctionObject (const std_cxx11::function<Number (const Point<dim, Number> &)> &function_object);
+ ScalarFunctionFromFunctionObject (const std_cxx11::function<Number (const Point<dim> &)> &function_object);
/**
* Return the value of the function at the given point. Returns the value
* the function given to the constructor produces for this point.
*/
- virtual Number value (const Point<dim, Number> &p,
+ virtual Number value (const Point<dim> &p,
const unsigned int component = 0) const;
private:
* The function object which we call when this class's value() or
* value_list() functions are called.
*/
- const std_cxx11::function<Number (const Point<dim, Number> &)> function_object;
+ const std_cxx11::function<Number (const Point<dim> &)> function_object;
};
* @param selected_component The single component that should be filled by
* the first argument.
*/
- VectorFunctionFromScalarFunctionObject (const std_cxx11::function<Number (const Point<dim, Number> &)> &function_object,
+ VectorFunctionFromScalarFunctionObject (const std_cxx11::function<Number (const Point<dim> &)> &function_object,
const unsigned int selected_component,
const unsigned int n_components);
* Return the value of the function at the given point. Returns the value
* the function given to the constructor produces for this point.
*/
- virtual Number value (const Point<dim, Number> &p,
+ virtual Number value (const Point<dim> &p,
const unsigned int component = 0) const;
/**
*
* <tt>values</tt> shall have the right size beforehand, i.e. #n_components.
*/
- virtual void vector_value (const Point<dim, Number> &p,
+ virtual void vector_value (const Point<dim> &p,
Vector<Number> &values) const;
private:
* The function object which we call when this class's value() or
* value_list() functions are called.
*/
- const std_cxx11::function<Number (const Point<dim, Number> &)> function_object;
+ const std_cxx11::function<Number (const Point<dim> &)> function_object;
/**
* The vector component whose value is to be filled by the given scalar
/**
* Return a single component of a vector-valued function at a given point.
*/
- virtual Number value (const Point<dim, Number> &p,
+ virtual Number value (const Point<dim> &p,
const unsigned int component = 0) const;
/**
*
* <tt>values</tt> shall have the right size beforehand, i.e. #n_components.
*/
- virtual void vector_value (const Point<dim, Number> &p,
+ virtual void vector_value (const Point<dim> &p,
Vector<Number> &values) const;
/**
* element of the vector will be passed to vector_value() to evaluate the
* function
*/
- virtual void vector_value_list (const std::vector<Point<dim, Number> > &points,
+ virtual void vector_value_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &value_list) const;
private:
// ---------------------------------------------------------------------
//
-// Copyright (C) 1999 - 2014 by the deal.II authors
+// Copyright (C) 1999 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
/**
* Return the value of the function at the given point.
*/
- virtual value_type value (const Point<dim, Number> &p) const;
+ virtual value_type value (const Point<dim> &p) const;
/**
* Set <tt>values</tt> to the point values of the function at the
* <tt>points</tt>. It is assumed that <tt>values</tt> already has the
* right size, i.e. the same size as the <tt>points</tt> array.
*/
- virtual void value_list (const std::vector<Point<dim, Number> > &points,
+ virtual void value_list (const std::vector<Point<dim> > &points,
std::vector<value_type> &values) const;
/**
* Return the gradient of the function at the given point.
*/
- virtual gradient_type gradient (const Point<dim, Number> &p) const;
+ virtual gradient_type gradient (const Point<dim> &p) const;
/**
* Set <tt>gradients</tt> to the gradients of the function at the
* <tt>points</tt>. It is assumed that <tt>values</tt> already has the
* right size, i.e. the same size as the <tt>points</tt> array.
*/
- virtual void gradient_list (const std::vector<Point<dim, Number> > &points,
+ virtual void gradient_list (const std::vector<Point<dim> > &points,
std::vector<gradient_type> &gradients) const;
/**
virtual ~ConstantTensorFunction ();
- virtual typename dealii::TensorFunction<rank, dim, Number>::value_type value (const Point<dim, Number> &p) const;
+ virtual typename dealii::TensorFunction<rank, dim, Number>::value_type value (const Point<dim> &p) const;
- virtual void value_list (const std::vector<Point<dim, Number> > &points,
+ virtual void value_list (const std::vector<Point<dim> > &points,
std::vector<typename dealii::TensorFunction<rank, dim, Number>::value_type> &values) const;
- virtual typename dealii::TensorFunction<rank, dim, Number>::gradient_type gradient (const Point<dim, Number> &p) const;
+ virtual typename dealii::TensorFunction<rank, dim, Number>::gradient_type gradient (const Point<dim> &p) const;
- virtual void gradient_list (const std::vector<Point<dim, Number> > &points,
+ virtual void gradient_list (const std::vector<Point<dim> > &points,
std::vector<typename dealii::TensorFunction<rank, dim, Number>::gradient_type> &gradients) const;
private:
// ---------------------------------------------------------------------
//
-// Copyright (C) 1998 - 2014 by the deal.II authors
+// Copyright (C) 1998 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
template <int dim, typename Number>
-Number Function<dim, Number>::value (const Point<dim, Number> &,
+Number Function<dim, Number>::value (const Point<dim> &,
const unsigned int) const
{
Assert (false, ExcPureFunctionCalled());
template <int dim, typename Number>
-void Function<dim, Number>::vector_value (const Point<dim, Number> &p,
+void Function<dim, Number>::vector_value (const Point<dim> &p,
Vector<Number> &v) const
{
AssertDimension(v.size(), this->n_components);
template <int dim, typename Number>
-void Function<dim, Number>::value_list (const std::vector<Point<dim, Number> > &points,
+void Function<dim, Number>::value_list (const std::vector<Point<dim> > &points,
std::vector<Number> &values,
const unsigned int component) const
{
template <int dim, typename Number>
-void Function<dim, Number>::vector_value_list (const std::vector<Point<dim, Number> > &points,
+void Function<dim, Number>::vector_value_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &values) const
{
// check whether component is in
template <int dim, typename Number>
void Function<dim, Number>::vector_values (
- const std::vector<Point<dim, Number> > &points,
+ const std::vector<Point<dim> > &points,
std::vector<std::vector<Number> > &values) const
{
const unsigned int n = this->n_components;
template <int dim, typename Number>
-Tensor<1,dim,Number> Function<dim, Number>::gradient (const Point<dim, Number> &,
+Tensor<1,dim,Number> Function<dim, Number>::gradient (const Point<dim> &,
const unsigned int) const
{
Assert (false, ExcPureFunctionCalled());
- return Point<dim, Number>();
+ return Point<dim>();
}
template <int dim, typename Number>
void Function<dim, Number>::vector_gradient (
- const Point<dim, Number> &p,
+ const Point<dim> &p,
std::vector<Tensor<1,dim,Number> > &v) const
{
AssertDimension(v.size(), this->n_components);
template <int dim, typename Number>
-void Function<dim, Number>::gradient_list (const std::vector<Point<dim, Number> > &points,
+void Function<dim, Number>::gradient_list (const std::vector<Point<dim> > &points,
std::vector<Tensor<1,dim,Number> > &gradients,
const unsigned int component) const
{
template <int dim, typename Number>
-void Function<dim, Number>::vector_gradient_list (const std::vector<Point<dim, Number> > &points,
+void Function<dim, Number>::vector_gradient_list (const std::vector<Point<dim> > &points,
std::vector<std::vector<Tensor<1,dim,Number> > > &gradients) const
{
Assert (gradients.size() == points.size(),
template <int dim, typename Number>
void Function<dim, Number>::vector_gradients (
- const std::vector<Point<dim, Number> > &points,
+ const std::vector<Point<dim> > &points,
std::vector<std::vector<Tensor<1,dim,Number> > > &values) const
{
const unsigned int n = this->n_components;
template <int dim, typename Number>
-Number Function<dim, Number>::laplacian (const Point<dim, Number> &,
+Number Function<dim, Number>::laplacian (const Point<dim> &,
const unsigned int) const
{
Assert (false, ExcPureFunctionCalled());
template <int dim, typename Number>
-void Function<dim, Number>::vector_laplacian (const Point<dim, Number> &,
+void Function<dim, Number>::vector_laplacian (const Point<dim> &,
Vector<Number> &) const
{
Assert (false, ExcPureFunctionCalled());
template <int dim, typename Number>
-void Function<dim, Number>::laplacian_list (const std::vector<Point<dim, Number> > &points,
+void Function<dim, Number>::laplacian_list (const std::vector<Point<dim> > &points,
std::vector<Number> &laplacians,
const unsigned int component) const
{
template <int dim, typename Number>
-void Function<dim, Number>::vector_laplacian_list (const std::vector<Point<dim, Number> > &points,
+void Function<dim, Number>::vector_laplacian_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &laplacians) const
{
// check whether component is in
template <int dim, typename Number>
-Number ZeroFunction<dim, Number>::value (const Point<dim, Number> &,
+Number ZeroFunction<dim, Number>::value (const Point<dim> &,
const unsigned int) const
{
return 0.;
template <int dim, typename Number>
-void ZeroFunction<dim, Number>::vector_value (const Point<dim, Number> &,
+void ZeroFunction<dim, Number>::vector_value (const Point<dim> &,
Vector<Number> &return_value) const
{
Assert (return_value.size() == this->n_components,
template <int dim, typename Number>
-void ZeroFunction<dim, Number>::value_list (const std::vector<Point<dim, Number> > &points,
+void ZeroFunction<dim, Number>::value_list (const std::vector<Point<dim> > &points,
std::vector<Number> &values,
const unsigned int /*component*/) const
{
template <int dim, typename Number>
-void ZeroFunction<dim, Number>::vector_value_list (const std::vector<Point<dim, Number> > &points,
+void ZeroFunction<dim, Number>::vector_value_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &values) const
{
Assert (values.size() == points.size(),
template <int dim, typename Number>
-Tensor<1,dim,Number> ZeroFunction<dim, Number>::gradient (const Point<dim, Number> &,
+Tensor<1,dim,Number> ZeroFunction<dim, Number>::gradient (const Point<dim> &,
const unsigned int) const
{
return Tensor<1,dim,Number>();
template <int dim, typename Number>
-void ZeroFunction<dim, Number>::vector_gradient (const Point<dim, Number> &,
+void ZeroFunction<dim, Number>::vector_gradient (const Point<dim> &,
std::vector<Tensor<1,dim,Number> > &gradients) const
{
Assert (gradients.size() == this->n_components,
template <int dim, typename Number>
-void ZeroFunction<dim, Number>::gradient_list (const std::vector<Point<dim, Number> > &points,
+void ZeroFunction<dim, Number>::gradient_list (const std::vector<Point<dim> > &points,
std::vector<Tensor<1,dim,Number> > &gradients,
const unsigned int /*component*/) const
{
template <int dim, typename Number>
-void ZeroFunction<dim, Number>::vector_gradient_list (const std::vector<Point<dim, Number> > &points,
+void ZeroFunction<dim, Number>::vector_gradient_list (const std::vector<Point<dim> > &points,
std::vector<std::vector<Tensor<1,dim,Number> > > &gradients) const
{
Assert (gradients.size() == points.size(),
template <int dim, typename Number>
-Number ConstantFunction<dim, Number>::value (const Point<dim, Number> &,
+Number ConstantFunction<dim, Number>::value (const Point<dim> &,
const unsigned int component) const
{
Assert (component < this->n_components,
template <int dim, typename Number>
-void ConstantFunction<dim, Number>::vector_value (const Point<dim, Number> &,
+void ConstantFunction<dim, Number>::vector_value (const Point<dim> &,
Vector<Number> &return_value) const
{
Assert (return_value.size() == this->n_components,
template <int dim, typename Number>
-void ConstantFunction<dim, Number>::value_list (const std::vector<Point<dim, Number> > &points,
+void ConstantFunction<dim, Number>::value_list (const std::vector<Point<dim> > &points,
std::vector<Number> &values,
const unsigned int component) const
{
template <int dim, typename Number>
-void ConstantFunction<dim, Number>::vector_value_list (const std::vector<Point<dim, Number> > &points,
+void ConstantFunction<dim, Number>::vector_value_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &values) const
{
Assert (values.size() == points.size(),
template <int dim, typename Number>
-void ComponentSelectFunction<dim, Number>::vector_value (const Point<dim, Number> &,
+void ComponentSelectFunction<dim, Number>::vector_value (const Point<dim> &,
Vector<Number> &return_value) const
{
Assert (return_value.size() == this->n_components,
template <int dim, typename Number>
-void ComponentSelectFunction<dim, Number>::vector_value_list (const std::vector<Point<dim, Number> > &points,
+void ComponentSelectFunction<dim, Number>::vector_value_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &values) const
{
Assert (values.size() == points.size(),
template <int dim, typename Number>
ScalarFunctionFromFunctionObject<dim, Number>::
-ScalarFunctionFromFunctionObject (const std_cxx11::function<Number (const Point<dim, Number> &)> &function_object)
+ScalarFunctionFromFunctionObject (const std_cxx11::function<Number (const Point<dim> &)> &function_object)
:
Function<dim, Number>(1),
function_object (function_object)
template <int dim, typename Number>
Number
-ScalarFunctionFromFunctionObject<dim, Number>::value (const Point<dim, Number> &p,
+ScalarFunctionFromFunctionObject<dim, Number>::value (const Point<dim> &p,
const unsigned int component) const
{
Assert (component == 0,
template <int dim, typename Number>
VectorFunctionFromScalarFunctionObject<dim, Number>::
-VectorFunctionFromScalarFunctionObject (const std_cxx11::function<Number (const Point<dim, Number> &)> &function_object,
+VectorFunctionFromScalarFunctionObject (const std_cxx11::function<Number (const Point<dim> &)> &function_object,
const unsigned int selected_component,
const unsigned int n_components)
:
template <int dim, typename Number>
Number
-VectorFunctionFromScalarFunctionObject<dim, Number>::value (const Point<dim, Number> &p,
+VectorFunctionFromScalarFunctionObject<dim, Number>::value (const Point<dim> &p,
const unsigned int component) const
{
Assert (component < this->n_components,
template <int dim, typename Number>
void
VectorFunctionFromScalarFunctionObject<dim, Number>::
-vector_value (const Point<dim, Number> &p,
+vector_value (const Point<dim> &p,
Vector<Number> &values) const
{
AssertDimension(values.size(), this->n_components);
template <int dim, typename Number>
inline
-Number VectorFunctionFromTensorFunction<dim, Number>::value (const Point<dim, Number> &p,
+Number VectorFunctionFromTensorFunction<dim, Number>::value (const Point<dim> &p,
const unsigned int component) const
{
Assert (component<this->n_components,
template <int dim, typename Number>
inline
-void VectorFunctionFromTensorFunction<dim, Number>::vector_value (const Point<dim, Number> &p,
+void VectorFunctionFromTensorFunction<dim, Number>::vector_value (const Point<dim> &p,
Vector<Number> &values) const
{
Assert(values.size() == this->n_components,
/** Member function <tt>vector_value_list </tt> is the interface for giving a list of
- * points (<code>vector<Point<dim, Number> ></code>) of which to evaluate using the <tt>vector_value</tt>
+ * points (<code>vector<Point<dim> ></code>) of which to evaluate using the <tt>vector_value</tt>
* member function. Again, this function is written so as to not replicate the function definition
* but passes each point on to <tt>vector_value</tt> to be evaluated.
*/
template <int dim, typename Number>
-void VectorFunctionFromTensorFunction<dim, Number>::vector_value_list (const std::vector<Point<dim, Number> > &points,
+void VectorFunctionFromTensorFunction<dim, Number>::vector_value_list (const std::vector<Point<dim> > &points,
std::vector<Vector<Number> > &value_list) const
{
Assert (value_list.size() == points.size(),
// ---------------------------------------------------------------------
//
-// Copyright (C) 1999 - 2014 by the deal.II authors
+// Copyright (C) 1999 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
template <int rank, int dim, typename Number>
typename TensorFunction<rank, dim, Number>::value_type
-TensorFunction<rank, dim, Number>::value (const Point<dim,Number> &) const
+TensorFunction<rank, dim, Number>::value (const Point<dim> &) const
{
Assert (false, ExcPureFunctionCalled());
return Tensor<rank,dim>();
template <int rank, int dim, typename Number>
void
-TensorFunction<rank, dim, Number>::value_list (const std::vector<Point<dim,Number> > &points,
+TensorFunction<rank, dim, Number>::value_list (const std::vector<Point<dim> > &points,
std::vector<value_type> &values) const
{
Assert (values.size() == points.size(),
template <int rank, int dim, typename Number>
typename TensorFunction<rank, dim, Number>::gradient_type
-TensorFunction<rank, dim, Number>::gradient (const Point<dim,Number> &) const
+TensorFunction<rank, dim, Number>::gradient (const Point<dim> &) const
{
Assert (false, ExcPureFunctionCalled());
return Tensor<rank+1,dim>();
template <int rank, int dim, typename Number>
void
-TensorFunction<rank, dim, Number>::gradient_list (const std::vector<Point<dim,Number> > &points,
+TensorFunction<rank, dim, Number>::gradient_list (const std::vector<Point<dim> > &points,
std::vector<gradient_type> &gradients) const
{
Assert (gradients.size() == points.size(),
template <int rank, int dim, typename Number>
typename TensorFunction<rank, dim, Number>::value_type
-ConstantTensorFunction<rank, dim, Number>::value (const Point<dim,Number> &/*point*/) const
+ConstantTensorFunction<rank, dim, Number>::value (const Point<dim> &/*point*/) const
{
return _value;
}
template <int rank, int dim, typename Number>
void
-ConstantTensorFunction<rank, dim, Number>::value_list (const std::vector<Point<dim,Number> > &points,
+ConstantTensorFunction<rank, dim, Number>::value_list (const std::vector<Point<dim> > &points,
std::vector<typename TensorFunction<rank, dim, Number>::value_type> &values) const
{
Assert (values.size() == points.size(),
template <int rank, int dim, typename Number>
typename TensorFunction<rank, dim, Number>::gradient_type
-ConstantTensorFunction<rank, dim, Number>::gradient (const Point<dim,Number> &) const
+ConstantTensorFunction<rank, dim, Number>::gradient (const Point<dim> &) const
{
static const Tensor<rank+1,dim> zero;
template <int rank, int dim, typename Number>
void
-ConstantTensorFunction<rank, dim, Number>::gradient_list (const std::vector<Point<dim,Number> > &points,
+ConstantTensorFunction<rank, dim, Number>::gradient_list (const std::vector<Point<dim> > &points,
std::vector<typename TensorFunction<rank, dim, Number>::gradient_type> &gradients) const
{
Assert (gradients.size() == points.size(),