MiniTensor Version of the Day
Loading...
Searching...
No Matches
minitensor::Nonlinear01< S, NC, NV > Class Template Reference

#include <MiniTensor_TestFunctions.h>

Inheritance diagram for minitensor::Nonlinear01< S, NC, NV >:
minitensor::Equality_Constraint< ConstraintDerived, S, NC, NV >

Public Types

using Base = Equality_Constraint< Nonlinear01< S, NC, NV >, S, NC, NV >
 

Public Member Functions

 Nonlinear01 ()
 
template<typename T , Index N = 5>
Vector< T, NC > value (Vector< T, N > const &x)
 
template<typename T , Index N = 5>
Matrix< T, NC, NV > gradient (Vector< T, N > const &x)
 
- Public Member Functions inherited from minitensor::Equality_Constraint< ConstraintDerived, S, NC, NV >
 Equality_Constraint ()
 
template<typename T , Index N>
Vector< T, NC > value (ConstraintDerived &c, Vector< T, N > const &x)
 
template<typename T , Index N>
Matrix< T, NC, NV > gradient (ConstraintDerived &c, Vector< T, N > const &x)
 

Static Public Attributes

static constexpr char const *const NAME {"Nonlinear 01"}
 
- Static Public Attributes inherited from minitensor::Equality_Constraint< ConstraintDerived, S, NC, NV >
static constexpr bool IS_EQUALITY {true}
 
static constexpr Index NUM_CONSTR {NC}
 
static constexpr Index NUM_VAR {NV}
 

Additional Inherited Members

- Public Attributes inherited from minitensor::Equality_Constraint< ConstraintDerived, S, NC, NV >
bool failed {false}
 

Detailed Description

template<typename S, Index NC = 3, Index NV = 5>
class minitensor::Nonlinear01< S, NC, NV >

Nonlinear equality constraints, 3 equations in 5 variables: \( x \cdot x - 10 \), \( x_2 x_3 - 5 x_4 x_5 \), \( x_1^3 + x_2^3 + 1 \).

Definition at line 1376 of file MiniTensor_TestFunctions.h.

Member Typedef Documentation

◆ Base

template<typename S , Index NC = 3, Index NV = 5>
using minitensor::Nonlinear01< S, NC, NV >::Base = Equality_Constraint<Nonlinear01<S, NC, NV>, S, NC, NV>

Base class type.

Definition at line 1395 of file MiniTensor_TestFunctions.h.

Constructor & Destructor Documentation

◆ Nonlinear01()

template<typename S , Index NC = 3, Index NV = 5>
minitensor::Nonlinear01< S, NC, NV >::Nonlinear01 ( )
inline

Constructor.

Definition at line 1383 of file MiniTensor_TestFunctions.h.

Member Function Documentation

◆ value()

template<typename S , Index NC = 3, Index NV = 5>
template<typename T , Index N = 5>
Vector< T, NC > minitensor::Nonlinear01< S, NC, NV >::value ( Vector< T, N > const &  x)
inline

Constraint value.

Definition at line 1403 of file MiniTensor_TestFunctions.h.

◆ gradient()

template<typename S , Index NC = 3, Index NV = 5>
template<typename T , Index N = 5>
Matrix< T, NC, NV > minitensor::Nonlinear01< S, NC, NV >::gradient ( Vector< T, N > const &  x)
inline

Gradient (Jacobian) of the constraint.

Definition at line 1425 of file MiniTensor_TestFunctions.h.

Member Data Documentation

◆ NAME

template<typename S , Index NC = 3, Index NV = 5>
constexpr char const* const minitensor::Nonlinear01< S, NC, NV >::NAME {"Nonlinear 01"}
staticconstexpr

Function name.

Definition at line 1390 of file MiniTensor_TestFunctions.h.


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