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 2008/07/27 21:48:17 UTC
svn commit: r680172 - in
/commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide: index.xml
linear.xml
Author: luc
Date: Sun Jul 27 12:48:17 2008
New Revision: 680172
URL: http://svn.apache.org/viewvc?rev=680172&view=rev
Log:
Support for one dimensional vectors has been added to the linear algebra
package with a RealVector interface, a RealVectorImpl default implementation
using a single double array to store elements and a RealVectorFormat class for
input/output.
Modified:
commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/index.xml
commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/linear.xml
Modified: commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/index.xml
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/index.xml?rev=680172&r1=680171&r2=680172&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/index.xml (original)
+++ commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/index.xml Sun Jul 27 12:48:17 2008
@@ -58,7 +58,8 @@
<ul>
<li><a href="linear.html#3.1 Overview">3.1 Overview</a></li>
<li><a href="linear.html#3.2 Real matrices">3.2 Real matrices</a></li>
- <li><a href="linear.html#3.3 Solving linear systems">3.3 Solving linear systems</a></li>
+ <li><a href="linear.html#3.3 Real vectors">3.3 Real vectors</a></li>
+ <li><a href="linear.html#3.4 Solving linear systems">3.4 Solving linear systems</a></li>
</ul></li>
<li><a href="analysis.html">4. Numerical Analysis</a>
<ul>
Modified: commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/linear.xml
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/linear.xml?rev=680172&r1=680171&r2=680172&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/linear.xml (original)
+++ commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/linear.xml Sun Jul 27 12:48:17 2008
@@ -30,7 +30,8 @@
<subsection name="3.1 Overview" href="overview">
<p>
Currently, numerical linear algebra support in commons-math is
- limited to basic operations on real matrices and solving linear systems.
+ limited to basic operations on real matrices and vectors and
+ solving linear systems.
</p>
</subsection>
<subsection name="3.2 Real matrices" href="real_matrices">
@@ -69,9 +70,29 @@
// Invert p
RealMatrix pInverse = p.inverse();
</source>
- </p>
+ </p>
+ </subsection>
+ <subsection name="3.3 Real vectors" href="real_vectors">
+ <p>
+ The <a href="../apidocs/org/apache/commons/math/linear/RealVector.html">
+ RealVector</a> interface represents a vector with real numbers as
+ entries. The following basic matrix operations are supported:
+ <ul>
+ <li>Vector addition, subtraction</li>
+ <li>Element by element multiplication, division</li>
+ <li>Scalar addition, subtraction, multiplication, division and power</li>
+ <li>Mapping of mathematical functions (cos, sin ...)</li>
+ <li>Dot product, outer product</li>
+ <li>Distance and norm according to norms L1, L2 and Linf</li>
+ </ul>
+ </p>
+ <p>
+ The <a href="../apidocs/org/apache/commons/math/linear/RealVectorFormat.html">
+ RealVectorFormat</a> class handles input/output of vectors in a customizable
+ textual format.
+ </p>
</subsection>
- <subsection name="3.3 Solving linear systems" href="solve">
+ <subsection name="3.4 Solving linear systems" href="solve">
<p>
The <code>solve()</code> methods of the <code>RealMatrix</code> interface
support solving linear systems of equations. In each case, the