Reference documentation for deal.II version Git e038590ef8 2020-10-28 14:38:53 +0100
\(\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)
 
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, bool lex_faces = false>
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 579 of file tensor_product_kernels.h.

Constructor & Destructor Documentation

◆ EvaluatorTensorProduct() [1/2]

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 590 of file tensor_product_kernels.h.

◆ EvaluatorTensorProduct() [2/2]

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 601 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 630 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 637 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 644 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 651 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 659 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 667 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 703 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, bool lex_faces>
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 854 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
static
Initial value:

Definition at line 581 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
static
Initial value:

Definition at line 583 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 691 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 692 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 693 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 694 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 695 of file tensor_product_kernels.h.


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