Skip to content

Commit

Permalink
Update reverseMC4.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangyl09 authored Aug 30, 2023
1 parent 93cbd14 commit b761aef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/example4/reverseMC4.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "reverseMC4.hpp" /* access to Reverse mode of subgradient evaluations */
/*
* Reverse mode of automatic differentiation
* Computations of df/dx required by evalutaing fB
* Computations of df/dx required by evaluating fB
*/
N_Vector fRevAD_dfdx(MC xMC[NX], MC pMC[NP], double sub[NRev * NRev], int n, int k)
{
Expand All @@ -23,7 +23,7 @@ N_Vector fRevAD_dfdx(MC xMC[NX], MC pMC[NP], double sub[NRev * NRev], int n, int

/*
*-----------------------------------------------------------------
* The following code was automatically generated by ReverseMC.jl.
* The following code was automatically generated by ReverseADforVW.jl.
*-----------------------------------------------------------------
*/

Expand Down Expand Up @@ -12323,7 +12323,7 @@ N_Vector fRevAD_dfdx(MC xMC[NX], MC pMC[NP], double sub[NRev * NRev], int n, int
}

//-----------------------------------------------------------------------
// Evaluate subgradients with reverse sweep through computational graph
// Evaluate subgradients with a reverse sweep through the computational graph

for (int i = 0; i < L1; i++)
{
Expand Down Expand Up @@ -14463,7 +14463,7 @@ N_Vector fRevAD_dfdx(MC xMC[NX], MC pMC[NP], double sub[NRev * NRev], int n, int

/*
* Reverse mode of automatic differentiation
* Computations of df/dp required by evalutaing fQB
* Computations of df/dp required by evaluating fQB
*/
N_Vector fRevAD_dfdp(MC xMC[NX], MC pMC[NP], double sub[NRev * NRev], int n)
{
Expand All @@ -14485,7 +14485,7 @@ N_Vector fRevAD_dfdp(MC xMC[NX], MC pMC[NP], double sub[NRev * NRev], int n)

/*
*-----------------------------------------------------------------
* The following code was automatically generated by ReverseMC.jl.
* The following code was automatically generated by ReverseADforVW.jl.
*-----------------------------------------------------------------
*/

Expand Down Expand Up @@ -26785,7 +26785,7 @@ N_Vector fRevAD_dfdp(MC xMC[NX], MC pMC[NP], double sub[NRev * NRev], int n)
}

//-----------------------------------------------------------------------
// Evaluate subgradients with reverse sweep through computational graph
// Evaluate subgradients with a reverse sweep through the computational graph

for (int i = 0; i < L1; i++)
{
Expand Down

0 comments on commit b761aef

Please sign in to comment.