Reference documentation for deal.II version 9.5.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
evaluation_template_factory.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2020 - 2023 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16
17#ifndef dealii_matrix_free_evaluation_template_factory_h
18#define dealii_matrix_free_evaluation_template_factory_h
19
20
21#include <deal.II/base/config.h>
22
26
27
29
30
31template <int, typename, bool>
33
34
35namespace internal
36{
37 template <int dim, typename Number>
39 {
40 static void
41 evaluate(const unsigned int n_components,
42 const EvaluationFlags::EvaluationFlags evaluation_flag,
43 const Number * values_dofs,
45
46 static void
47 integrate(const unsigned int n_components,
48 const EvaluationFlags::EvaluationFlags integration_flag,
49 Number * values_dofs,
51 const bool sum_into_values_array);
52
53 static bool
54 fast_evaluation_supported(const unsigned int given_degree,
55 const unsigned int n_q_points_1d);
56 };
57
58
59
60 template <int dim, typename Number>
62 {
63 static void
64 evaluate(const unsigned int n_components,
65 const EvaluationFlags::EvaluationFlags evaluation_flag,
66 const Number * values_dofs,
68
69 static void
70 integrate(const unsigned int n_components,
71 const EvaluationFlags::EvaluationFlags integration_flag,
72 Number * values_dofs,
74
75 static bool
76 fast_evaluation_supported(const unsigned int given_degree,
77 const unsigned int n_q_points_1d);
78 };
79
80
81
82 template <int dim, typename Number, typename VectorizedArrayType>
84 {
85 static void
86 evaluate(const unsigned int n_components,
87 const EvaluationFlags::EvaluationFlags evaluation_flag,
88 const Number * src_ptr,
89 const std::vector<ArrayView<const Number>> * sm_ptr,
91
92 static void
93 integrate(const unsigned int n_components,
94 const EvaluationFlags::EvaluationFlags integration_flag,
95 Number * dst_ptr,
96 const std::vector<ArrayView<const Number>> *sm_ptr,
98 };
99
100
101
102 template <int dim, typename Number>
104 {
105 static void
106 apply(const unsigned int n_components,
108 const Number * in_array,
109 Number * out_array);
110
111 static void
112 apply(const unsigned int n_components,
114 const ArrayView<const Number> & inverse_coefficients,
115 const bool dyadic_coefficients,
116 const Number * in_array,
117 Number * out_array);
118
119 static void
121 const unsigned int n_components,
123 const Number * in_array,
124 Number * out_array);
125 };
126
127 template <int dim,
128 typename Number,
129 typename VectorizedArrayType = VectorizedArray<Number>>
131 {
132 static void
133 apply(const unsigned int n_components,
134 const unsigned int fe_degree,
136 const bool transpose,
138 VectorizedArrayType::size()> & c_mask,
139 VectorizedArrayType * values);
140 };
141
142} // end of namespace internal
143
145
146#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
DerivativeForm< 1, spacedim, dim, Number > transpose(const DerivativeForm< 1, dim, spacedim, Number > &DF)
EvaluationFlags
The EvaluationFlags enum.
std::uint8_t compressed_constraint_kind
Definition dof_info.h:83
static void apply(const unsigned int n_components, const FEEvaluationData< dim, Number, false > &fe_eval, const Number *in_array, Number *out_array)
static void apply(const unsigned int n_components, const FEEvaluationData< dim, Number, false > &fe_eval, const ArrayView< const Number > &inverse_coefficients, const bool dyadic_coefficients, const Number *in_array, Number *out_array)
static void transform_from_q_points_to_basis(const unsigned int n_components, const FEEvaluationData< dim, Number, false > &fe_eval, const Number *in_array, Number *out_array)
static bool fast_evaluation_supported(const unsigned int given_degree, const unsigned int n_q_points_1d)
static void evaluate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, const Number *values_dofs, FEEvaluationData< dim, Number, false > &fe_eval)
static void integrate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *values_dofs, FEEvaluationData< dim, Number, false > &fe_eval, const bool sum_into_values_array)
static void apply(const unsigned int n_components, const unsigned int fe_degree, const MatrixFreeFunctions::ShapeInfo< VectorizedArrayType > &shape_info, const bool transpose, const std::array< MatrixFreeFunctions::compressed_constraint_kind, VectorizedArrayType::size()> &c_mask, VectorizedArrayType *values)
static void evaluate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, const Number *values_dofs, FEEvaluationData< dim, Number, true > &fe_eval)
static bool fast_evaluation_supported(const unsigned int given_degree, const unsigned int n_q_points_1d)
static void integrate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *values_dofs, FEEvaluationData< dim, Number, true > &fe_eval)
static void evaluate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, const Number *src_ptr, const std::vector< ArrayView< const Number > > *sm_ptr, FEEvaluationData< dim, VectorizedArrayType, true > &fe_eval)
static void integrate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *dst_ptr, const std::vector< ArrayView< const Number > > *sm_ptr, FEEvaluationData< dim, VectorizedArrayType, true > &fe_eval)