Compadre 1.5.5
Loading...
Searching...
No Matches
Compadre_BernsteinPolynomial.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  Compadre
namespace  Compadre::BernsteinPolynomialBasis
 Definition of scalar Bernstein polynomial basis.

Functions

KOKKOS_INLINE_FUNCTION int Compadre::BernsteinPolynomialBasis::getSize (const int degree, const int dimension)
 Returns size of basis.
KOKKOS_INLINE_FUNCTION void Compadre::BernsteinPolynomialBasis::evaluate (const member_type &teamMember, double *delta, double *workspace, const int dimension, const int max_degree, const int component, const double h, const double x, const double y, const double z, const int starting_order=0, const double weight_of_original_value=0.0, const double weight_of_new_value=1.0)
 Evaluates the Bernstein polynomial basis delta[j] = weight_of_original_value * delta[j] + weight_of_new_value * (calculation of this function).
KOKKOS_INLINE_FUNCTION void Compadre::BernsteinPolynomialBasis::evaluatePartialDerivative (const member_type &teamMember, double *delta, double *workspace, const int dimension, const int max_degree, const int component, const int partial_direction, const double h, const double x, const double y, const double z, const int starting_order=0, const double weight_of_original_value=0.0, const double weight_of_new_value=1.0)
 Evaluates the first partial derivatives of the Bernstein polynomial basis delta[j] = weight_of_original_value * delta[j] + weight_of_new_value * (calculation of this function).
KOKKOS_INLINE_FUNCTION void Compadre::BernsteinPolynomialBasis::evaluateSecondPartialDerivative (const member_type &teamMember, double *delta, double *workspace, const int dimension, const int max_degree, const int component, const int partial_direction_1, const int partial_direction_2, const double h, const double x, const double y, const double z, const int starting_order=0, const double weight_of_original_value=0.0, const double weight_of_new_value=1.0)
 Evaluates the second partial derivatives of the Bernstein polynomial basis delta[j] = weight_of_original_value * delta[j] + weight_of_new_value * (calculation of this function).