15#ifndef dealii_tensor_function_h
16#define dealii_tensor_function_h
54template <
int rank,
int dim,
typename Number =
double>
56 :
public FunctionTime<typename numbers::NumberTraits<Number>::real_type>,
102 std::vector<value_type> &values)
const;
117 std::vector<gradient_type> &gradients)
const;
128template <
int rank,
int dim,
typename Number =
double>
149 virtual typename ::TensorFunction<rank, dim, Number>::value_type
155 std::vector<typename ::TensorFunction<rank, dim, Number>::value_type>
156 &values)
const override;
158 virtual typename ::TensorFunction<rank, dim, Number>::gradient_type
165 typename ::TensorFunction<rank, dim, Number>::gradient_type>
166 &gradients)
const override;
169 const ::Tensor<rank, dim, Number>
_value;
180template <
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