HDK
|
#include <SIM_DerScalar.h>
This class defines a scalar and its derivative w.r.t. a 3D vector. It uses automatic differentiation to maintain the dependency upon the derivative vector as arithmetic operations are performed.
By performing a sequence of arithmetic operations on this class after initializing its derivative appropriately, you can easily keep track of the effect of those operations on the derivative. Independent variables can be included in an equation using the conventional UT_Vector3 and fpreal types, and dependent variables can use the SIM_DerVector3 and SIM_DerScalar types.
It is inspired by Eitan Grinspun's class for the same purpose, described in his 2003 SCA paper on Discrete Shells.
Definition at line 29 of file SIM_DerScalar.h.
|
inline |
Definition at line 32 of file SIM_DerScalar.h.
|
inlineexplicit |
Initialize to a constant vector, with no derivative.
Definition at line 34 of file SIM_DerScalar.h.
|
inline |
Initialize to a vector with a derivative. This is particularly useful for initializing the variables themselves, where D=I.
Definition at line 38 of file SIM_DerScalar.h.
|
inline |
Definition at line 49 of file SIM_DerScalar.h.
|
inline |
Definition at line 115 of file SIM_DerScalar.h.
|
inline |
Definition at line 80 of file SIM_DerScalar.h.
|
inline |
Definition at line 86 of file SIM_DerScalar.h.
|
inline |
Definition at line 107 of file SIM_DerScalar.h.
|
inline |
Definition at line 109 of file SIM_DerScalar.h.
|
inline |
Definition at line 62 of file SIM_DerScalar.h.
|
inline |
Definition at line 67 of file SIM_DerScalar.h.
|
inline |
Definition at line 99 of file SIM_DerScalar.h.
|
inline |
Definition at line 101 of file SIM_DerScalar.h.
|
inline |
Definition at line 57 of file SIM_DerScalar.h.
|
inline |
Definition at line 71 of file SIM_DerScalar.h.
|
inline |
Definition at line 76 of file SIM_DerScalar.h.
|
inline |
Definition at line 103 of file SIM_DerScalar.h.
|
inline |
Definition at line 105 of file SIM_DerScalar.h.
|
inline |
Definition at line 95 of file SIM_DerScalar.h.
|
inline |
Definition at line 97 of file SIM_DerScalar.h.
|
inline |
Definition at line 111 of file SIM_DerScalar.h.
|
inline |
Definition at line 113 of file SIM_DerScalar.h.
|
inline |
Definition at line 54 of file SIM_DerScalar.h.
|
inline |
Definition at line 91 of file SIM_DerScalar.h.
|
inline |
Definition at line 127 of file SIM_DerScalar.h.
|
inline |
Definition at line 46 of file SIM_DerScalar.h.