-New: A new class Differentiation::AD::ADHelperResidualLinearisation has been
+New: A new class Differentiation::AD::ADHelperResidualLinearization has been
added to help compute the linearization of a residual vector defined on the
level of a cell (a finite element residual), or for local nonlinear equations.
<br>
*/
template <enum AD::NumberTypes ADNumberTypeCode,
typename ScalarType = double>
- class ADHelperResidualLinearisation
+ class ADHelperResidualLinearization
: public ADHelperCellLevelBase<ADNumberTypeCode, ScalarType>
{
public:
* be the number of outputs $\mathbf{r}$, i.e. the dimension of the
* image space.
*/
- ADHelperResidualLinearisation(const unsigned int n_independent_variables,
+ ADHelperResidualLinearization(const unsigned int n_independent_variables,
const unsigned int n_dependent_variables);
/**
* Destructor
*/
- virtual ~ADHelperResidualLinearisation() = default;
+ virtual ~ADHelperResidualLinearization() = default;
//@}
//@}
- }; // class ADHelperResidualLinearisation
+ }; // class ADHelperResidualLinearization
} // namespace AD
}
- /* ------------------- ADHelperResidualLinearisation ------------------- */
+ /* ------------------- ADHelperResidualLinearization ------------------- */
template <enum AD::NumberTypes ADNumberTypeCode, typename ScalarType>
- ADHelperResidualLinearisation<ADNumberTypeCode, ScalarType>::
- ADHelperResidualLinearisation(const unsigned int n_independent_variables,
+ ADHelperResidualLinearization<ADNumberTypeCode, ScalarType>::
+ ADHelperResidualLinearization(const unsigned int n_independent_variables,
const unsigned int n_dependent_variables)
: ADHelperCellLevelBase<ADNumberTypeCode, ScalarType>(
n_independent_variables,
template <enum AD::NumberTypes ADNumberTypeCode, typename ScalarType>
void
- ADHelperResidualLinearisation<ADNumberTypeCode, ScalarType>::
+ ADHelperResidualLinearization<ADNumberTypeCode, ScalarType>::
register_residual_vector(const std::vector<ad_type> &residual)
{
Assert(residual.size() == this->n_dependent_variables(),
template <enum AD::NumberTypes ADNumberTypeCode, typename ScalarType>
void
- ADHelperResidualLinearisation<ADNumberTypeCode, ScalarType>::
+ ADHelperResidualLinearization<ADNumberTypeCode, ScalarType>::
compute_residual(Vector<scalar_type> &values) const
{
if ((ADNumberTraits<ad_type>::is_taped == true &&
template <enum AD::NumberTypes ADNumberTypeCode, typename ScalarType>
void
- ADHelperResidualLinearisation<ADNumberTypeCode, ScalarType>::
+ ADHelperResidualLinearization<ADNumberTypeCode, ScalarType>::
compute_linearization(FullMatrix<scalar_type> &jacobian) const
{
if ((ADNumberTraits<ad_type>::is_taped == true &&
template
class ADHelperEnergyFunctional<NumberTypes::adolc_tapeless,number>;
- // -------------------------- ADHelperResidualLinearisation ----------------------
+ // -------------------------- ADHelperResidualLinearization ----------------------
template
- class ADHelperResidualLinearisation<NumberTypes::adolc_taped,number>;
+ class ADHelperResidualLinearization<NumberTypes::adolc_taped,number>;
template
- class ADHelperResidualLinearisation<NumberTypes::adolc_tapeless,number>;
+ class ADHelperResidualLinearization<NumberTypes::adolc_tapeless,number>;
\}
\}
template
class ADHelperEnergyFunctional<NumberTypes::adolc_tapeless,typename NumberTraits<double,NumberTypes::adolc_tapeless>::ad_type>;
- // -------------------------- ADHelperResidualLinearisation ----------------------
+ // -------------------------- ADHelperResidualLinearization ----------------------
template
- class ADHelperResidualLinearisation<NumberTypes::adolc_taped,typename NumberTraits<double,NumberTypes::adolc_taped>::ad_type>;
+ class ADHelperResidualLinearization<NumberTypes::adolc_taped,typename NumberTraits<double,NumberTypes::adolc_taped>::ad_type>;
template
- class ADHelperResidualLinearisation<NumberTypes::adolc_tapeless,typename NumberTraits<double,NumberTypes::adolc_tapeless>::ad_type>;
+ class ADHelperResidualLinearization<NumberTypes::adolc_tapeless,typename NumberTraits<double,NumberTypes::adolc_tapeless>::ad_type>;
\}
template
class ADHelperEnergyFunctional<NumberTypes::sacado_rad_dfad,number>;
- // -------------------------- ADHelperResidualLinearisation ----------------------
+ // -------------------------- ADHelperResidualLinearization ----------------------
template
- class ADHelperResidualLinearisation<NumberTypes::sacado_dfad_dfad,number>;
+ class ADHelperResidualLinearization<NumberTypes::sacado_dfad_dfad,number>;
template
- class ADHelperResidualLinearisation<NumberTypes::sacado_dfad,number>;
+ class ADHelperResidualLinearization<NumberTypes::sacado_dfad,number>;
template
- class ADHelperResidualLinearisation<NumberTypes::sacado_rad,number>;
+ class ADHelperResidualLinearization<NumberTypes::sacado_rad,number>;
template
- class ADHelperResidualLinearisation<NumberTypes::sacado_rad_dfad,number>;
+ class ADHelperResidualLinearization<NumberTypes::sacado_rad_dfad,number>;
\}
\}
template
class ADHelperEnergyFunctional<NumberTypes::sacado_rad_dfad,typename NumberTraits<double,NumberTypes::sacado_rad_dfad>::ad_type>;
- // -------------------------- ADHelperResidualLinearisation ----------------------
+ // -------------------------- ADHelperResidualLinearization ----------------------
template
- class ADHelperResidualLinearisation<NumberTypes::sacado_dfad_dfad,typename NumberTraits<double,NumberTypes::sacado_dfad_dfad>::ad_type>;
+ class ADHelperResidualLinearization<NumberTypes::sacado_dfad_dfad,typename NumberTraits<double,NumberTypes::sacado_dfad_dfad>::ad_type>;
template
- class ADHelperResidualLinearisation<NumberTypes::sacado_dfad,typename NumberTraits<double,NumberTypes::sacado_dfad>::ad_type>;
+ class ADHelperResidualLinearization<NumberTypes::sacado_dfad,typename NumberTraits<double,NumberTypes::sacado_dfad>::ad_type>;
template
- class ADHelperResidualLinearisation<NumberTypes::sacado_rad,typename NumberTraits<double,NumberTypes::sacado_rad>::ad_type>;
+ class ADHelperResidualLinearization<NumberTypes::sacado_rad,typename NumberTraits<double,NumberTypes::sacado_rad>::ad_type>;
template
- class ADHelperResidualLinearisation<NumberTypes::sacado_rad_dfad,typename NumberTraits<double,NumberTypes::sacado_rad_dfad>::ad_type>;
+ class ADHelperResidualLinearization<NumberTypes::sacado_rad_dfad,typename NumberTraits<double,NumberTypes::sacado_rad_dfad>::ad_type>;
\}