commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1039459 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear: AbstractRealVector.java RealVector.java
Date Fri, 26 Nov 2010 16:50:31 GMT
Author: erans
Date: Fri Nov 26 16:50:31 2010
New Revision: 1039459

URL: http://svn.apache.org/viewvc?rev=1039459&view=rev
Log:
MATH-430
Removed uses of deprecated "BinaryFunction" class.


Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java?rev=1039459&r1=1039458&r2=1039459&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java
Fri Nov 26 16:50:31 2010
@@ -35,6 +35,7 @@ import org.apache.commons.math.util.Fast
 /**
  * This class provides default basic implementations for many methods in the
  * {@link RealVector} interface.
+ *
  * @version $Revision$ $Date$
  * @since 2.1
  */

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java?rev=1039459&r1=1039458&r2=1039459&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java
Fri Nov 26 16:50:31 2010
@@ -24,21 +24,21 @@ import org.apache.commons.math.analysis.
 /**
  * Interface defining a real-valued vector with basic algebraic operations.
  * <p>
- * vector element indexing is 0-based -- e.g., <code>getEntry(0)</code>
+ * vector element indexing is 0-based -- e.g., {@code getEntry(0)}
  * returns the first element of the vector.
  * </p>
  * <p>
- * The various <code>mapXxx</code> and <code>mapXxxToSelf</code>
methods operate
+ * The {@code code map} and {@code mapToSelf} methods operate
  * on vectors element-wise, i.e. they perform the same operation (adding a scalar,
- * applying a function ...) on each element in turn. The <code>mapXxx</code>
- * versions create a new vector to hold the result and do not change the instance.
- * The <code>mapXxxToSelf</code> versions use the instance itself to store the
- * results, so the instance is changed by these methods. In both cases, the result
+ * applying a function ...) on each element in turn. The {@code map}
+ * version creates a new vector to hold the result and do not change the instance.
+ * The {@code mapToSelf} version use the instance itself to store the
+ * results, so the instance is changed by this method. In both cases, the result
  * vector is returned by the methods, this allows to use the <i>fluent API</i>
  * style, like this:
  * </p>
  * <pre>
- *   RealVector result = v.mapAddToSelf(3.0).mapTanToSelf().mapSquareToSelf();
+ *   RealVector result = v.mapAddToSelf(3.4).mapToSelf(new Tan()).mapToSelf(new Power(2.3));
  * </pre>
  *
  * @version $Revision$ $Date$



Mime
View raw message