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. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680172 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b47b287663
commit
2e82f1fcdc
|
@ -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>
|
||||
|
|
|
@ -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 @@ System.out.println(p.getRowDimension()); // 2
|
|||
// Invert p
|
||||
RealMatrix pInverse = p.inverse();
|
||||
</source>
|
||||
</p>
|
||||
</p>
|
||||
</subsection>
|
||||
<subsection name="3.3 Solving linear systems" href="solve">
|
||||
<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.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
|
||||
|
|
Loading…
Reference in New Issue