Changeset 8971 for branches/RuntimeOptimizer/HeuristicLab.ExtLibs/HeuristicLab.AutoDiff/1.0/AutoDiff-1.0/CompiledDifferentiator.cs
- Timestamp:
- 11/29/12 09:57:15 (12 years ago)
- Location:
- branches/RuntimeOptimizer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RuntimeOptimizer
- Property svn:mergeinfo changed
/branches/SlaveShutdown (added) merged: 8944-8945,8949,8951,8953-8954 /trunk/sources (added) merged: 8946-8948,8950,8952,8957,8960,8962-8970
- Property svn:mergeinfo changed
-
branches/RuntimeOptimizer/HeuristicLab.ExtLibs/HeuristicLab.AutoDiff/1.0/AutoDiff-1.0/CompiledDifferentiator.cs
r8703 r8971 54 54 ReverseSweep(); 55 55 56 var gradient = tape.Take(Dimension).Select(elem => elem.Adjoint).ToArray(); 57 var value = tape.Last().Value; 56 var gradient = new double[Dimension]; 57 for (int i = 0; i < Dimension; i++) 58 gradient[i] = tape[i].Adjoint; 59 var value = tape.Last().Value; 58 60 59 61 return Tuple.Create(gradient, value);
Note: See TracChangeset
for help on using the changeset viewer.