commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r803475 - in /commons/sandbox/nabla/trunk/src: main/java/org/apache/commons/nabla/algorithmic/forward/ main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ main/java/org/apache/commons/nabla/caching/ test/java/org/apache/commons...
Date Wed, 12 Aug 2009 12:31:26 GMT
Author: luc
Date: Wed Aug 12 12:31:26 2009
New Revision: 803475

URL: http://svn.apache.org/viewvc?rev=803475&view=rev
Log:
changed class names (both in Nabla and for the classes generated by Nabla)
to clearly distinguish between the ones dealing with forward mode and the future
ones that will deal with reverse mode

Added:
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardModeAlgorithmicDifferentiator.java
      - copied, changed from r803467, commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardAlgorithmicDifferentiator.java
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ForwardModeClassDifferentiator.java
      - copied, changed from r803450, commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ClassDifferentiator.java
Removed:
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardAlgorithmicDifferentiator.java
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ClassDifferentiator.java
Modified:
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/caching/FetchDifferentiator.java
    commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/AbstractMathTest.java
    commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AcosGeneratorTest.java
    commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AsinGeneratorTest.java
    commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AtanGeneratorTest.java
    commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/Log10GeneratorTest.java
    commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/Log1pGeneratorTest.java
    commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/LogGeneratorTest.java
    commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/SqrtGeneratorTest.java

Copied: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardModeAlgorithmicDifferentiator.java
(from r803467, 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/ForwardModeAlgorithmicDifferentiator.java?p2=commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardModeAlgorithmicDifferentiator.java&p1=commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/ForwardAlgorithmicDifferentiator.java&r1=803467&r2=803475&rev=803475&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/ForwardModeAlgorithmicDifferentiator.java
Wed Aug 12 12:31:26 2009
@@ -25,7 +25,7 @@
 import java.util.HashSet;
 import java.util.Set;
 
-import org.apache.commons.nabla.algorithmic.forward.analysis.ClassDifferentiator;
+import org.apache.commons.nabla.algorithmic.forward.analysis.ForwardModeClassDifferentiator;
 import org.apache.commons.nabla.core.DifferentiationException;
 import org.apache.commons.nabla.core.UnivariateDerivative;
 import org.apache.commons.nabla.core.UnivariateDifferentiable;
@@ -50,7 +50,7 @@
  * by class and name and replaced by predefined derivative code.</p>
  * @see org.apache.commons.nabla.caching.FetchDifferentiator
  */
-public class ForwardAlgorithmicDifferentiator implements UnivariateDifferentiator {
+public class ForwardModeAlgorithmicDifferentiator implements UnivariateDifferentiator {
 
     /** UnivariateDifferentiable/UnivariateDerivative map. */
     private final HashMap<Class<? extends UnivariateDifferentiable>,
@@ -62,7 +62,7 @@
     /** Simple constructor.
      * <p>Build a ForwardAlgorithmicDifferentiator instance with an empty cache.</p>
      */
-    public ForwardAlgorithmicDifferentiator() {
+    public ForwardModeAlgorithmicDifferentiator() {
         map = new HashMap<Class<? extends UnivariateDifferentiable>,
         Class<? extends UnivariateDerivative>>();
         mathClasses = new HashSet<String>();
@@ -170,7 +170,7 @@
             final ClassWriter writer = new ClassWriter(reader, ClassWriter.COMPUTE_FRAMES);
 
             // differentiate the function embedded in the differentiable class
-            final ClassDifferentiator differentiator = new ClassDifferentiator(mathClasses,
writer);
+            final ForwardModeClassDifferentiator differentiator = new ForwardModeClassDifferentiator(mathClasses,
writer);
             reader.accept(differentiator, ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
             differentiator.reportErrors();
 
@@ -200,7 +200,7 @@
          */
         @SuppressWarnings("unchecked")
         public Class<? extends UnivariateDerivative>
-        defineClass(final ClassDifferentiator differentiator, final ClassWriter writer) {
+        defineClass(final ForwardModeClassDifferentiator differentiator, final ClassWriter
writer) {
             final String name = differentiator.getDerivativeClassName().replace('/', '.');
             final byte[] bytecode = writer.toByteArray();
             return (Class<? extends UnivariateDerivative>) defineClass(name, bytecode,
0, bytecode.length);

Copied: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ForwardModeClassDifferentiator.java
(from r803450, commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ClassDifferentiator.java)
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ForwardModeClassDifferentiator.java?p2=commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ForwardModeClassDifferentiator.java&p1=commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ClassDifferentiator.java&r1=803450&r2=803475&rev=803475&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ClassDifferentiator.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/algorithmic/forward/analysis/ForwardModeClassDifferentiator.java
Wed Aug 12 12:31:26 2009
@@ -29,7 +29,7 @@
 import org.objectweb.asm.Opcodes;
 
 /**
- * Visitor (in asm sense) for differentiating classes.
+ * Visitor (in asm sense) for differentiating classes using forward mode.
  * <p>
  * This visitor visits classes implementing the
  * {@link UnivariateDifferentiable UnivariateDifferentiable} interface and convert
@@ -46,7 +46,7 @@
  * The visited class bytecode is not changed at all.
  * </p>
  */
-public class ClassDifferentiator implements ClassVisitor {
+public class ForwardModeClassDifferentiator implements ClassVisitor {
 
     /** Name for the primitive instance field. */
     private static final String PRIMITIVE_FIELD = "primitive";
@@ -77,8 +77,8 @@
      * @param mathClasses math implementation classes
      * @param generator visitor to which class generation calls will be delegated
      */
-    public ClassDifferentiator(final Set<String> mathClasses,
-                          final ClassVisitor generator) {
+    public ForwardModeClassDifferentiator(final Set<String> mathClasses,
+                                          final ClassVisitor generator) {
         this.mathClasses = mathClasses;
         this.generator   = generator;
         errorReporter    = new ErrorReporter();
@@ -97,9 +97,9 @@
                       final String name, final String signature,
                       final String superName, final String[] interfaces) {
         // set up the various names
-        primitiveName = name;
-        derivativeName   = primitiveName + "$NablaUnivariateDerivative";
-        primitiveDesc = "L" + primitiveName + ";";
+        primitiveName  = name;
+        derivativeName = primitiveName + "$NablaForwardModeUnivariateDerivative";
+        primitiveDesc  = "L" + primitiveName + ";";
 
         // check the UnivariateDifferentiable interface is implemented
         final Class<UnivariateDifferentiable> uDerClass = UnivariateDifferentiable.class;
@@ -168,7 +168,7 @@
 
             // make sure our own differentiator will be used to transform the code
             return new MethodDifferentiator(access, name, desc, signature, exceptions,
-                                       visitor, primitiveName, mathClasses, errorReporter);
+                                            visitor, primitiveName, mathClasses, errorReporter);
 
         }
 

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/caching/FetchDifferentiator.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/caching/FetchDifferentiator.java?rev=803475&r1=803474&r2=803475&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/caching/FetchDifferentiator.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/caching/FetchDifferentiator.java
Wed Aug 12 12:31:26 2009
@@ -22,8 +22,8 @@
 import org.apache.commons.nabla.core.UnivariateDifferentiator;
 
 /** Differentiator that fetches classes already differentiated by
- * {@link org.apache.commons.nabla.algorithmic.forward.ForwardAlgorithmicDifferentiator}.
- * @see org.apache.commons.nabla.algorithmic.forward.ForwardAlgorithmicDifferentiator
+ * {@link org.apache.commons.nabla.algorithmic.forward.ForwardModeAlgorithmicDifferentiator}.
+ * @see org.apache.commons.nabla.algorithmic.forward.ForwardModeAlgorithmicDifferentiator
  */
 public class FetchDifferentiator implements UnivariateDifferentiator {
 

Modified: commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/AbstractMathTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/AbstractMathTest.java?rev=803475&r1=803474&r2=803475&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/AbstractMathTest.java
(original)
+++ commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/AbstractMathTest.java
Wed Aug 12 12:31:26 2009
@@ -17,7 +17,7 @@
 package org.apache.commons.nabla.algorithmic;
 
 import org.apache.commons.nabla.ReferenceFunction;
-import org.apache.commons.nabla.algorithmic.forward.ForwardAlgorithmicDifferentiator;
+import org.apache.commons.nabla.algorithmic.forward.ForwardModeAlgorithmicDifferentiator;
 import org.apache.commons.nabla.core.DifferentialPair;
 import org.apache.commons.nabla.core.DifferentiationException;
 import org.apache.commons.nabla.core.UnivariateDerivative;
@@ -30,7 +30,7 @@
                                   double t0, double t1, int n,
                                   double threshold) {
         try {
-            ForwardAlgorithmicDifferentiator differentiator = new ForwardAlgorithmicDifferentiator();
+            ForwardModeAlgorithmicDifferentiator differentiator = new ForwardModeAlgorithmicDifferentiator();
             differentiator.addMathImplementation(MathExtensions.class);
             UnivariateDerivative derivative = differentiator.differentiate(reference);
             for (int i = 0; i < n; ++i) {

Modified: commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AcosGeneratorTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AcosGeneratorTest.java?rev=803475&r1=803474&r2=803475&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AcosGeneratorTest.java
(original)
+++ commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AcosGeneratorTest.java
Wed Aug 12 12:31:26 2009
@@ -18,7 +18,7 @@
 
 import org.apache.commons.nabla.ReferenceFunction;
 import org.apache.commons.nabla.algorithmic.AbstractMathTest;
-import org.apache.commons.nabla.algorithmic.forward.ForwardAlgorithmicDifferentiator;
+import org.apache.commons.nabla.algorithmic.forward.ForwardModeAlgorithmicDifferentiator;
 import org.apache.commons.nabla.core.DifferentialPair;
 import org.apache.commons.nabla.core.DifferentiationException;
 import org.apache.commons.nabla.core.UnivariateDerivative;
@@ -39,7 +39,7 @@
     @Test
     public void testSingularityPlus() throws DifferentiationException {
         UnivariateDerivative derivative =
-            new ForwardAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
+            new ForwardModeAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
                 public double f(double t) { return Math.acos(t); }
             });
 
@@ -56,7 +56,7 @@
     @Test
     public void testSingularityMinus() throws DifferentiationException {
         UnivariateDerivative derivative =
-            new ForwardAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
+            new ForwardModeAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
                 public double f(double t) { return Math.acos(t); }
             });
 

Modified: commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AsinGeneratorTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AsinGeneratorTest.java?rev=803475&r1=803474&r2=803475&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AsinGeneratorTest.java
(original)
+++ commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AsinGeneratorTest.java
Wed Aug 12 12:31:26 2009
@@ -18,7 +18,7 @@
 
 import org.apache.commons.nabla.ReferenceFunction;
 import org.apache.commons.nabla.algorithmic.AbstractMathTest;
-import org.apache.commons.nabla.algorithmic.forward.ForwardAlgorithmicDifferentiator;
+import org.apache.commons.nabla.algorithmic.forward.ForwardModeAlgorithmicDifferentiator;
 import org.apache.commons.nabla.core.DifferentialPair;
 import org.apache.commons.nabla.core.DifferentiationException;
 import org.apache.commons.nabla.core.UnivariateDerivative;
@@ -39,7 +39,7 @@
     @Test
     public void testSingularityPlus() throws DifferentiationException {
         UnivariateDerivative derivative =
-            new ForwardAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
+            new ForwardModeAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
                 public double f(double t) { return Math.asin(t); }
             });
 
@@ -56,7 +56,7 @@
     @Test
     public void testSingularityMinus() throws DifferentiationException {
         UnivariateDerivative derivative =
-            new ForwardAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
+            new ForwardModeAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
                 public double f(double t) { return Math.asin(t); }
             });
 

Modified: commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AtanGeneratorTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AtanGeneratorTest.java?rev=803475&r1=803474&r2=803475&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AtanGeneratorTest.java
(original)
+++ commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/AtanGeneratorTest.java
Wed Aug 12 12:31:26 2009
@@ -18,7 +18,7 @@
 
 import org.apache.commons.nabla.ReferenceFunction;
 import org.apache.commons.nabla.algorithmic.AbstractMathTest;
-import org.apache.commons.nabla.algorithmic.forward.ForwardAlgorithmicDifferentiator;
+import org.apache.commons.nabla.algorithmic.forward.ForwardModeAlgorithmicDifferentiator;
 import org.apache.commons.nabla.core.DifferentialPair;
 import org.apache.commons.nabla.core.DifferentiationException;
 import org.apache.commons.nabla.core.UnivariateDerivative;
@@ -39,7 +39,7 @@
     @Test
     public void testSingularityPlus() throws DifferentiationException {
         UnivariateDerivative derivative =
-            new ForwardAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
+            new ForwardModeAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
                 public double f(double t) { return Math.atan(t); }
             });
 
@@ -54,7 +54,7 @@
     @Test
     public void testSingularityMinus() throws DifferentiationException {
         UnivariateDerivative derivative =
-            new ForwardAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
+            new ForwardModeAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
                 public double f(double t) { return Math.atan(t); }
             });
 

Modified: commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/Log10GeneratorTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/Log10GeneratorTest.java?rev=803475&r1=803474&r2=803475&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/Log10GeneratorTest.java
(original)
+++ commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/Log10GeneratorTest.java
Wed Aug 12 12:31:26 2009
@@ -18,7 +18,7 @@
 
 import org.apache.commons.nabla.ReferenceFunction;
 import org.apache.commons.nabla.algorithmic.AbstractMathTest;
-import org.apache.commons.nabla.algorithmic.forward.ForwardAlgorithmicDifferentiator;
+import org.apache.commons.nabla.algorithmic.forward.ForwardModeAlgorithmicDifferentiator;
 import org.apache.commons.nabla.core.DifferentialPair;
 import org.apache.commons.nabla.core.DifferentiationException;
 import org.apache.commons.nabla.core.UnivariateDerivative;
@@ -39,7 +39,7 @@
     @Test
     public void testSingularity() throws DifferentiationException {
         UnivariateDerivative derivative =
-            new ForwardAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
+            new ForwardModeAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
                 public double f(double t) { return Math.log10(t); }
             });
 

Modified: commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/Log1pGeneratorTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/Log1pGeneratorTest.java?rev=803475&r1=803474&r2=803475&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/Log1pGeneratorTest.java
(original)
+++ commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/Log1pGeneratorTest.java
Wed Aug 12 12:31:26 2009
@@ -18,7 +18,7 @@
 
 import org.apache.commons.nabla.ReferenceFunction;
 import org.apache.commons.nabla.algorithmic.AbstractMathTest;
-import org.apache.commons.nabla.algorithmic.forward.ForwardAlgorithmicDifferentiator;
+import org.apache.commons.nabla.algorithmic.forward.ForwardModeAlgorithmicDifferentiator;
 import org.apache.commons.nabla.core.DifferentialPair;
 import org.apache.commons.nabla.core.DifferentiationException;
 import org.apache.commons.nabla.core.UnivariateDerivative;
@@ -39,7 +39,7 @@
     @Test
     public void testSingularity() throws DifferentiationException {
         UnivariateDerivative derivative =
-            new ForwardAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
+            new ForwardModeAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
                 public double f(double t) { return Math.log1p(t); }
             });
 

Modified: commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/LogGeneratorTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/LogGeneratorTest.java?rev=803475&r1=803474&r2=803475&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/LogGeneratorTest.java
(original)
+++ commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/LogGeneratorTest.java
Wed Aug 12 12:31:26 2009
@@ -18,7 +18,7 @@
 
 import org.apache.commons.nabla.ReferenceFunction;
 import org.apache.commons.nabla.algorithmic.AbstractMathTest;
-import org.apache.commons.nabla.algorithmic.forward.ForwardAlgorithmicDifferentiator;
+import org.apache.commons.nabla.algorithmic.forward.ForwardModeAlgorithmicDifferentiator;
 import org.apache.commons.nabla.core.DifferentialPair;
 import org.apache.commons.nabla.core.DifferentiationException;
 import org.apache.commons.nabla.core.UnivariateDerivative;
@@ -39,7 +39,7 @@
     @Test
     public void testSingularity() throws DifferentiationException {
         UnivariateDerivative derivative =
-            new ForwardAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
+            new ForwardModeAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
                 public double f(double t) { return Math.log(t); }
             });
 

Modified: commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/SqrtGeneratorTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/SqrtGeneratorTest.java?rev=803475&r1=803474&r2=803475&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/SqrtGeneratorTest.java
(original)
+++ commons/sandbox/nabla/trunk/src/test/java/org/apache/commons/nabla/algorithmic/forward/functions/SqrtGeneratorTest.java
Wed Aug 12 12:31:26 2009
@@ -18,7 +18,7 @@
 
 import org.apache.commons.nabla.ReferenceFunction;
 import org.apache.commons.nabla.algorithmic.AbstractMathTest;
-import org.apache.commons.nabla.algorithmic.forward.ForwardAlgorithmicDifferentiator;
+import org.apache.commons.nabla.algorithmic.forward.ForwardModeAlgorithmicDifferentiator;
 import org.apache.commons.nabla.core.DifferentialPair;
 import org.apache.commons.nabla.core.DifferentiationException;
 import org.apache.commons.nabla.core.UnivariateDerivative;
@@ -39,7 +39,7 @@
     @Test
     public void testSingularity() throws DifferentiationException {
         UnivariateDerivative derivative =
-            new ForwardAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
+            new ForwardModeAlgorithmicDifferentiator().differentiate(new UnivariateDifferentiable()
{
                 public double f(double t) { return Math.sqrt(t); }
             });
 



Mime
View raw message