Skip to content

Commit dac909a

Browse files
committed
Explicit resizing no longer needed.
1 parent d0b3138 commit dac909a

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

Common/include/basic_types/ad_structure.hpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,6 @@ namespace AD{
9393
*/
9494
inline void ClearAdjoints() {}
9595

96-
/*!
97-
* \brief Possibly resize the vector of adjoints.
98-
* \details After this operation, the vector can store
99-
* the adjoints of all variables computed up to this point.
100-
*/
101-
inline void ResizeAdjoints() {}
102-
10396
/*!
10497
* \brief Computes the adjoints, i.e. the derivatives of the output with respect to the input variables.
10598
*/
@@ -349,12 +342,6 @@ namespace AD{
349342

350343
FORCEINLINE void ClearAdjoints() {AD::getGlobalTape().clearAdjoints(); }
351344

352-
FORCEINLINE void ResizeAdjoints() {
353-
#if defined(HAVE_OPDI)
354-
AD::getGlobalTape().setGradient(0, 0.0);
355-
#endif
356-
}
357-
358345
FORCEINLINE void ComputeAdjoint() {
359346
#if defined(HAVE_OPDI)
360347
opdi::logic->prepareEvaluate();

0 commit comments

Comments
 (0)