Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DiffScalarBase Struct Reference

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

#include <mitsuba/core/autodiff.h>

+ Inheritance diagram for DiffScalarBase:

Static Public Member Functions

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

Static Public Attributes

static __thread 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.

Member Function Documentation

static size_t DiffScalarBase::getVariableCount ( )
inlinestatic

Get the variable count used by the automatic differentiation layer.

static void DiffScalarBase::setVariableCount ( size_t  value)
inlinestatic

Set the independent variable count used by the automatic differentiation layer.

This function must be called before doing any computations with DScalar1 or DScalar2. The value will be recorded in thread-local storage.

Member Data Documentation

__thread size_t DiffScalarBase::m_variableCount
static

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