Reference documentation for deal.II version Git fcdb0c0ec9 2020-08-03 17:46:58 +0200
\(\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>
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 529 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 540 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 551 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 580 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 587 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 594 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 601 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 609 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 617 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 652 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 802 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 531 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 533 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 640 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 641 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 642 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 643 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 644 of file tensor_product_kernels.h.


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