16#ifndef dealii_tensor_function_h
17#define dealii_tensor_function_h
55template <
int rank,
int dim,
typename Number =
double>
57 :
public FunctionTime<typename numbers::NumberTraits<Number>::real_type>,
103 std::vector<value_type> & values)
const;
118 std::vector<gradient_type> & gradients)
const;
129template <
int rank,
int dim,
typename Number =
double>
150 virtual typename ::TensorFunction<rank, dim, Number>::value_type
156 std::vector<typename ::TensorFunction<rank, dim, Number>::value_type>
157 &values)
const override;
159 virtual typename ::TensorFunction<rank, dim, Number>::gradient_type
166 typename ::TensorFunction<rank, dim, Number>::gradient_type>
167 &gradients)
const override;
170 const ::Tensor<rank, dim, Number>
_value;
181template <
int rank,
int dim,
typename Number =
double>
virtual void value_list(const std::vector< Point< dim > > &points, std::vector< typename ::TensorFunction< rank, dim, Number >::value_type > &values) const override
virtual ~ConstantTensorFunction() override=default
typename TensorFunction< rank, dim, Number >::time_type time_type
ConstantTensorFunction(const ::Tensor< rank, dim, Number > &value, const time_type initial_time=0.0)
virtual typename::TensorFunction< rank, dim, Number >::value_type value(const Point< dim > &p) const override
const ::Tensor< rank, dim, Number > _value
virtual typename::TensorFunction< rank, dim, Number >::gradient_type gradient(const Point< dim > &p) const override
virtual void gradient_list(const std::vector< Point< dim > > &points, std::vector< typename ::TensorFunction< rank, dim, Number >::gradient_type > &gradients) const override
virtual void value_list(const std::vector< Point< dim > > &points, std::vector< value_type > &values) const
virtual gradient_type gradient(const Point< dim > &p) const
virtual value_type value(const Point< dim > &p) const
TensorFunction(const time_type initial_time=time_type(0.0))
virtual ~TensorFunction() override=default
virtual void gradient_list(const std::vector< Point< dim > > &points, std::vector< gradient_type > &gradients) const
typename FunctionTime< typename numbers::NumberTraits< Number >::real_type >::time_type time_type
typename ConstantTensorFunction< rank, dim, Number >::time_type time_type
ZeroTensorFunction(const time_type initial_time=0.0)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE