Reference documentation for deal.II version GIT b6bf1e606d 2022-08-11 15:25:02+00:00
\(\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\}}\)
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 > Struct Template Reference

#include <deal.II/matrix_free/tensor_product_kernels.h>

Public Member Functions

 EvaluatorTensorProduct ()
 
 EvaluatorTensorProduct (const AlignedVector< Number2 > &shape_values, const AlignedVector< Number2 > &shape_gradients, const AlignedVector< Number2 > &shape_hessians, const unsigned int n_rows, const unsigned int n_columns)
 
 EvaluatorTensorProduct (const Number2 *shape_values, const Number2 *shape_gradients, const Number2 *shape_hessians, const unsigned int n_rows, const unsigned int n_columns)
 
template<int direction, bool contract_over_rows, bool add>
void values (const Number *in, Number *out) const
 
template<int direction, bool contract_over_rows, bool add>
void gradients (const Number *in, Number *out) const
 
template<int direction, bool contract_over_rows, bool add>
void hessians (const Number *in, Number *out) const
 
template<int direction, bool contract_over_rows, bool add>
void values_one_line (const Number in[], Number out[]) const
 
template<int direction, bool contract_over_rows, bool add>
void gradients_one_line (const Number in[], Number out[]) const
 
template<int direction, bool contract_over_rows, bool add>
void hessians_one_line (const Number in[], Number out[]) const
 
template<int direction, bool contract_over_rows, bool add, bool one_line = false>
void apply (const Number2 *DEAL_II_RESTRICT shape_data, const Number *in, Number *out) const
 
template<int face_direction, bool contract_onto_face, bool add, int max_derivative>
void apply_face (const Number *DEAL_II_RESTRICT in, Number *DEAL_II_RESTRICT out) const
 

Public Attributes

const Number2 * shape_values
 
const Number2 * shape_gradients
 
const Number2 * shape_hessians
 
const unsigned int n_rows
 
const unsigned int n_columns
 

Static Public Attributes

static constexpr unsigned int n_rows_of_product
 
static constexpr unsigned int n_columns_of_product
 

Detailed Description

template<int dim, typename Number, typename Number2>
struct internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >

Internal evaluator for shape function using the tensor product form of the basis functions. The same as the other templated class but without making use of template arguments and variable loop bounds instead.

Template Parameters
dimSpace dimension in which this class is applied
NumberAbstract number type for input and output arrays
Number2Abstract number type for coefficient arrays (defaults to same type as the input/output arrays); must implement operator* with Number and produce Number as an output to be a valid type

Definition at line 591 of file tensor_product_kernels.h.

Constructor & Destructor Documentation

◆ EvaluatorTensorProduct() [1/3]

template<int dim, typename Number , typename Number2 >
internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::EvaluatorTensorProduct ( )
inline

Empty constructor. Does nothing. Be careful when using 'values' and related methods because they need to be filled with the other constructor

Definition at line 602 of file tensor_product_kernels.h.

◆ EvaluatorTensorProduct() [2/3]

template<int dim, typename Number , typename Number2 >
internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::EvaluatorTensorProduct ( const AlignedVector< Number2 > &  shape_values,
const AlignedVector< Number2 > &  shape_gradients,
const AlignedVector< Number2 > &  shape_hessians,
const unsigned int  n_rows,
const unsigned int  n_columns 
)
inline

Constructor, taking the data from ShapeInfo

Definition at line 613 of file tensor_product_kernels.h.

◆ EvaluatorTensorProduct() [3/3]

template<int dim, typename Number , typename Number2 >
internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::EvaluatorTensorProduct ( const Number2 *  shape_values,
const Number2 *  shape_gradients,
const Number2 *  shape_hessians,
const unsigned int  n_rows,
const unsigned int  n_columns 
)
inline

Constructor, taking the data from ShapeInfo

Definition at line 643 of file tensor_product_kernels.h.

Member Function Documentation

◆ values()

template<int dim, typename Number , typename Number2 >
template<int direction, bool contract_over_rows, bool add>
void internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::values ( const Number *  in,
Number *  out 
) const
inline

Definition at line 657 of file tensor_product_kernels.h.

◆ gradients()

template<int dim, typename Number , typename Number2 >
template<int direction, bool contract_over_rows, bool add>
void internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::gradients ( const Number *  in,
Number *  out 
) const
inline

Definition at line 664 of file tensor_product_kernels.h.

◆ hessians()

template<int dim, typename Number , typename Number2 >
template<int direction, bool contract_over_rows, bool add>
void internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::hessians ( const Number *  in,
Number *  out 
) const
inline

Definition at line 671 of file tensor_product_kernels.h.

◆ values_one_line()

template<int dim, typename Number , typename Number2 >
template<int direction, bool contract_over_rows, bool add>
void internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::values_one_line ( const Number  in[],
Number  out[] 
) const
inline

Definition at line 678 of file tensor_product_kernels.h.

◆ gradients_one_line()

template<int dim, typename Number , typename Number2 >
template<int direction, bool contract_over_rows, bool add>
void internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::gradients_one_line ( const Number  in[],
Number  out[] 
) const
inline

Definition at line 686 of file tensor_product_kernels.h.

◆ hessians_one_line()

template<int dim, typename Number , typename Number2 >
template<int direction, bool contract_over_rows, bool add>
void internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::hessians_one_line ( const Number  in[],
Number  out[] 
) const
inline

Definition at line 694 of file tensor_product_kernels.h.

◆ apply()

template<int dim, typename Number , typename Number2 >
template<int direction, bool contract_over_rows, bool add, bool one_line>
void internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::apply ( const Number2 *DEAL_II_RESTRICT  shape_data,
const Number *  in,
Number *  out 
) const
inline

Definition at line 729 of file tensor_product_kernels.h.

◆ apply_face()

template<int dim, typename Number , typename Number2 >
template<int face_direction, bool contract_onto_face, bool add, int max_derivative>
void internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::apply_face ( const Number *DEAL_II_RESTRICT  in,
Number *DEAL_II_RESTRICT  out 
) const
inline

Definition at line 878 of file tensor_product_kernels.h.

Member Data Documentation

◆ n_rows_of_product

template<int dim, typename Number , typename Number2 >
constexpr unsigned int internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::n_rows_of_product
staticconstexpr
Initial value:
=
static const unsigned int invalid_unsigned_int
Definition: types.h:201

Definition at line 593 of file tensor_product_kernels.h.

◆ n_columns_of_product

template<int dim, typename Number , typename Number2 >
constexpr unsigned int internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::n_columns_of_product
staticconstexpr
Initial value:

Definition at line 595 of file tensor_product_kernels.h.

◆ shape_values

template<int dim, typename Number , typename Number2 >
const Number2* internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::shape_values

Definition at line 717 of file tensor_product_kernels.h.

◆ shape_gradients

template<int dim, typename Number , typename Number2 >
const Number2* internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::shape_gradients

Definition at line 718 of file tensor_product_kernels.h.

◆ shape_hessians

template<int dim, typename Number , typename Number2 >
const Number2* internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::shape_hessians

Definition at line 719 of file tensor_product_kernels.h.

◆ n_rows

template<int dim, typename Number , typename Number2 >
const unsigned int internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::n_rows

Definition at line 720 of file tensor_product_kernels.h.

◆ n_columns

template<int dim, typename Number , typename Number2 >
const unsigned int internal::EvaluatorTensorProduct< evaluate_general, dim, 0, 0, Number, Number2 >::n_columns

Definition at line 721 of file tensor_product_kernels.h.


The documentation for this struct was generated from the following file: