PolyFEM
Loading...
Searching...
No Matches
DiffScalarBase Struct Reference

Base class of all automatic differentiation types. More...

#include <autodiff.h>

Inheritance diagram for DiffScalarBase:
[legend]

Static Public Member Functions

Configuration
static void setVariableCount (size_t value)
 Set the independent variable count used by the automatic differentiation layer.
 
static size_t getVariableCount ()
 Get the variable count used by the automatic differentiation layer.
 

Static Public Attributes

static thread_local size_t m_variableCount
 

Detailed Description

Base class of all automatic differentiation types.

This class records the number of independent variables with respect to which derivatives are computed.

Definition at line 40 of file autodiff.h.

Member Function Documentation

◆ getVariableCount()

static size_t DiffScalarBase::getVariableCount ( )
inlinestatic

Get the variable count used by the automatic differentiation layer.

Definition at line 60 of file autodiff.h.

References m_variableCount.

Referenced by DScalar1< _Scalar, _Gradient >::DScalar1(), DScalar1< _Scalar, _Gradient >::DScalar1(), DScalar2< _Scalar, _Gradient, _Hessian >::DScalar2(), and DScalar2< _Scalar, _Gradient, _Hessian >::DScalar2().

Here is the caller graph for this function:

◆ setVariableCount()

Member Data Documentation

◆ m_variableCount

thread_local size_t DiffScalarBase::m_variableCount
static

Definition at line 73 of file autodiff.h.

Referenced by getVariableCount(), and setVariableCount().


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