You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2009/08/12 14:07:22 UTC

svn commit: r803467 - /commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardAlgorithmicDifferentiator.java

Author: luc
Date: Wed Aug 12 12:07:22 2009
New Revision: 803467

URL: http://svn.apache.org/viewvc?rev=803467&view=rev
Log:
minor javadoc and whitespace changes

Modified:
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardAlgorithmicDifferentiator.java

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardAlgorithmicDifferentiator.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardAlgorithmicDifferentiator.java?rev=803467&r1=803466&r2=803467&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardAlgorithmicDifferentiator.java (original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardAlgorithmicDifferentiator.java Wed Aug 12 12:07:22 2009
@@ -33,7 +33,7 @@
 import org.objectweb.asm.ClassReader;
 import org.objectweb.asm.ClassWriter;
 
-/** Automatic differentiator class based on bytecode analysis.
+/** Algorithmic differentiator class in forward mode based on bytecode analysis.
  * <p>This class is an implementation of the {@link UnivariateDifferentiator}
  * interface that computes <em>exact</em> differentials completely automatically
  * and generate java classes and instances that compute the differential
@@ -74,7 +74,7 @@
      * <p>At construction, the differentiator considers only the {@link
      * java.lang.Math Math} and {@link java.lang.StrictMath StrictMath}
      * classes are math implementation classes. It may be useful to add
-     * other class for example to add some missing functions like
+     * other classes for example to add some missing functions like
      * inverse hyperbolic cosine that are not provided by the standard
      * java classes as of Java 1.6.</p>
      * @param mathClass implementation class for mathematical functions
@@ -139,7 +139,8 @@
 
         // build the derivative class if it does not exist yet
         if (derivativeClass == null) {
-            // perform analytical differentiation
+
+            // perform algorithmic differentiation
             derivativeClass = createDerivativeClass(differentiableClass);
 
             // put the newly created class in the map
@@ -178,7 +179,7 @@
 
         } catch (IOException ioe) {
             throw new DifferentiationException("class {0} cannot be read ({1})",
-                                          differentiableClass.getName(), ioe.getMessage());
+                                               differentiableClass.getName(), ioe.getMessage());
         }
     }