| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> |
| <title>ArrayRealVector (Apache Commons Math 3.3 API)</title> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ArrayRealVector (Apache Commons Math 3.3 API)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ArrayRealVector.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/commons/math3/linear/ArrayFieldVector.html" title="class in org.apache.commons.math3.linear"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/commons/math3/linear/BlockFieldMatrix.html" title="class in org.apache.commons.math3.linear"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/commons/math3/linear/ArrayRealVector.html" target="_top">Frames</a></li> |
| <li><a href="ArrayRealVector.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested_classes_inherited_from_class_org.apache.commons.math3.linear.RealVector">Nested</a> | </li> |
| <li>Field | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.commons.math3.linear</div> |
| <h2 title="Class ArrayRealVector" class="title">Class ArrayRealVector</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">org.apache.commons.math3.linear.RealVector</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.commons.math3.linear.ArrayRealVector</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="strong">ArrayRealVector</span> |
| extends <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> |
| implements <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> |
| <div class="block">This class implements the <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear"><code>RealVector</code></a> interface with a double array.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.0</dd> |
| <dt><span class="strong">Version:</span></dt> |
| <dd>$Id: ArrayRealVector.java 1538368 2013-11-03 13:57:37Z erans $</dd> |
| <dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../serialized-form.html#org.apache.commons.math3.linear.ArrayRealVector">Serialized Form</a></dd></dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested_class_summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested_classes_inherited_from_class_org.apache.commons.math3.linear.RealVector"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from class org.apache.commons.math3.linear.<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></h3> |
| <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.Entry.html" title="class in org.apache.commons.math3.linear">RealVector.Entry</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.SparseEntryIterator.html" title="class in org.apache.commons.math3.linear">RealVector.SparseEntryIterator</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector()">ArrayRealVector</a></strong>()</code> |
| <div class="block">Build a 0-length vector.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector)">ArrayRealVector</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v)</code> |
| <div class="block">Construct a vector from another vector, using a deep copy.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector, org.apache.commons.math3.linear.ArrayRealVector)">ArrayRealVector</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v1, |
| <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v2)</code> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector, boolean)">ArrayRealVector</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v, |
| boolean deep)</code> |
| <div class="block">Construct a vector from another vector.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector, double[])">ArrayRealVector</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v1, |
| double[] v2)</code> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector, org.apache.commons.math3.linear.RealVector)">ArrayRealVector</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v1, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v2)</code> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(double[])">ArrayRealVector</a></strong>(double[] d)</code> |
| <div class="block">Construct a vector from an array, copying the input array.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(java.lang.Double[])">ArrayRealVector</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>[] d)</code> |
| <div class="block">Construct a vector from an array.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(double[], org.apache.commons.math3.linear.ArrayRealVector)">ArrayRealVector</a></strong>(double[] v1, |
| <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v2)</code> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(double[], boolean)">ArrayRealVector</a></strong>(double[] d, |
| boolean copyArray)</code> |
| <div class="block">Create a new ArrayRealVector using the input array as the underlying |
| data array.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(double[], double[])">ArrayRealVector</a></strong>(double[] v1, |
| double[] v2)</code> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(double[], int, int)">ArrayRealVector</a></strong>(double[] d, |
| int pos, |
| int size)</code> |
| <div class="block">Construct a vector from part of a array.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(java.lang.Double[], int, int)">ArrayRealVector</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>[] d, |
| int pos, |
| int size)</code> |
| <div class="block">Construct a vector from part of an array.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(int)">ArrayRealVector</a></strong>(int size)</code> |
| <div class="block">Construct a vector of zeroes.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(int, double)">ArrayRealVector</a></strong>(int size, |
| double preset)</code> |
| <div class="block">Construct a vector with preset values.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(org.apache.commons.math3.linear.RealVector)">ArrayRealVector</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Construct a vector from another vector, using a deep copy.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(org.apache.commons.math3.linear.RealVector, org.apache.commons.math3.linear.ArrayRealVector)">ArrayRealVector</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v1, |
| <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v2)</code> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#add(org.apache.commons.math3.linear.RealVector)">add</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Compute the sum of this vector and <code>v</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#addToEntry(int, double)">addToEntry</a></strong>(int index, |
| double increment)</code> |
| <div class="block">Change an entry at the specified index.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#append(org.apache.commons.math3.linear.ArrayRealVector)">append</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v)</code> |
| <div class="block">Construct a vector by appending a vector to this vector.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#append(double)">append</a></strong>(double in)</code> |
| <div class="block">Construct a new vector by appending a double to this vector.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#append(org.apache.commons.math3.linear.RealVector)">append</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Construct a new vector by appending a vector to this vector.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#checkVectorDimensions(int)">checkVectorDimensions</a></strong>(int n)</code> |
| <div class="block">Check if instance dimension is equal to some expected value.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#checkVectorDimensions(org.apache.commons.math3.linear.RealVector)">checkVectorDimensions</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Check if instance and specified vectors have the same dimension.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#combine(double, double, org.apache.commons.math3.linear.RealVector)">combine</a></strong>(double a, |
| double b, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> y)</code> |
| <div class="block">Returns a new vector representing <code>a * this + b * y</code>, the linear |
| combination of <code>this</code> and <code>y</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#combineToSelf(double, double, org.apache.commons.math3.linear.RealVector)">combineToSelf</a></strong>(double a, |
| double b, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> y)</code> |
| <div class="block">Updates <code>this</code> with the linear combination of <code>this</code> and |
| <code>y</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#copy()">copy</a></strong>()</code> |
| <div class="block">Returns a (deep) copy of this vector.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#dotProduct(org.apache.commons.math3.linear.RealVector)">dotProduct</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Compute the dot product of this vector with <code>v</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ebeDivide(org.apache.commons.math3.linear.RealVector)">ebeDivide</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Element-by-element division.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ebeMultiply(org.apache.commons.math3.linear.RealVector)">ebeMultiply</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Element-by-element multiplication.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#equals(java.lang.Object)">equals</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> other)</code> |
| <div class="block"> |
| Test for the equality of two real vectors.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>double[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#getDataRef()">getDataRef</a></strong>()</code> |
| <div class="block">Get a reference to the underlying data array.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#getDimension()">getDimension</a></strong>()</code> |
| <div class="block">Returns the size of the vector.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#getDistance(org.apache.commons.math3.linear.RealVector)">getDistance</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Distance between two vectors.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#getEntry(int)">getEntry</a></strong>(int index)</code> |
| <div class="block">Return the entry at the specified index.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#getL1Distance(org.apache.commons.math3.linear.RealVector)">getL1Distance</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Distance between two vectors.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#getL1Norm()">getL1Norm</a></strong>()</code> |
| <div class="block">Returns the L<sub>1</sub> norm of the vector.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#getLInfDistance(org.apache.commons.math3.linear.RealVector)">getLInfDistance</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Distance between two vectors.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#getLInfNorm()">getLInfNorm</a></strong>()</code> |
| <div class="block">Returns the L<sub>∞</sub> norm of the vector.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#getNorm()">getNorm</a></strong>()</code> |
| <div class="block">Returns the L<sub>2</sub> norm of the vector.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#getSubVector(int, int)">getSubVector</a></strong>(int index, |
| int n)</code> |
| <div class="block">Get a subvector from consecutive elements.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#hashCode()">hashCode</a></strong>()</code> |
| <div class="block">.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#isInfinite()">isInfinite</a></strong>()</code> |
| <div class="block">Check whether any coordinate of this vector is infinite and none |
| are <code>NaN</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#isNaN()">isNaN</a></strong>()</code> |
| <div class="block">Check if any coordinate of this vector is <code>NaN</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#map(org.apache.commons.math3.analysis.UnivariateFunction)">map</a></strong>(<a href="../../../../../org/apache/commons/math3/analysis/UnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">UnivariateFunction</a> function)</code> |
| <div class="block">Acts as if implemented as:</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#mapAddToSelf(double)">mapAddToSelf</a></strong>(double d)</code> |
| <div class="block">Add a value to each entry.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#mapDivideToSelf(double)">mapDivideToSelf</a></strong>(double d)</code> |
| <div class="block">Divide each entry by the argument.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#mapMultiplyToSelf(double)">mapMultiplyToSelf</a></strong>(double d)</code> |
| <div class="block">Multiply each entry.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#mapSubtractToSelf(double)">mapSubtractToSelf</a></strong>(double d)</code> |
| <div class="block">Subtract a value from each entry.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#mapToSelf(org.apache.commons.math3.analysis.UnivariateFunction)">mapToSelf</a></strong>(<a href="../../../../../org/apache/commons/math3/analysis/UnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">UnivariateFunction</a> function)</code> |
| <div class="block">Acts as if it is implemented as:</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/RealMatrix.html" title="interface in org.apache.commons.math3.linear">RealMatrix</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#outerProduct(org.apache.commons.math3.linear.RealVector)">outerProduct</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Compute the outer product.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#set(double)">set</a></strong>(double value)</code> |
| <div class="block">Set all elements to a single value.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#setEntry(int, double)">setEntry</a></strong>(int index, |
| double value)</code> |
| <div class="block">Set a single element.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#setSubVector(int, double[])">setSubVector</a></strong>(int index, |
| double[] v)</code> |
| <div class="block">Set a set of consecutive elements.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#setSubVector(int, org.apache.commons.math3.linear.RealVector)">setSubVector</a></strong>(int index, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Set a sequence of consecutive elements.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#subtract(org.apache.commons.math3.linear.RealVector)">subtract</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</code> |
| <div class="block">Subtract <code>v</code> from this vector.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>double[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#toArray()">toArray</a></strong>()</code> |
| <div class="block">Convert the vector to an array of <code>double</code>s.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#toString()">toString</a></strong>()</code></td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor)">walkInDefaultOrder</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorChangingVisitor</a> visitor)</code> |
| <div class="block">Visits (and possibly alters) all entries of this vector in default order |
| (increasing index).</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor, int, int)">walkInDefaultOrder</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorChangingVisitor</a> visitor, |
| int start, |
| int end)</code> |
| <div class="block">Visits (and possibly alters) some entries of this vector in default order |
| (increasing index).</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor)">walkInDefaultOrder</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorPreservingVisitor</a> visitor)</code> |
| <div class="block">Visits (but does not alter) all entries of this vector in default order |
| (increasing index).</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor, int, int)">walkInDefaultOrder</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorPreservingVisitor</a> visitor, |
| int start, |
| int end)</code> |
| <div class="block">Visits (but does not alter) some entries of this vector in default order |
| (increasing index).</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor)">walkInOptimizedOrder</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorChangingVisitor</a> visitor)</code> |
| <div class="block">Visits (and possibly alters) all entries of this vector in optimized |
| order.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor, int, int)">walkInOptimizedOrder</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorChangingVisitor</a> visitor, |
| int start, |
| int end)</code> |
| <div class="block">Visits (and possibly change) some entries of this vector in optimized |
| order.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor)">walkInOptimizedOrder</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorPreservingVisitor</a> visitor)</code> |
| <div class="block">Visits (but does not alter) all entries of this vector in optimized |
| order.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor, int, int)">walkInOptimizedOrder</a></strong>(<a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorPreservingVisitor</a> visitor, |
| int start, |
| int end)</code> |
| <div class="block">Visits (but does not alter) some entries of this vector in optimized |
| order.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.math3.linear.RealVector"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.commons.math3.linear.<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></h3> |
| <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#checkIndex(int)">checkIndex</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#checkIndices(int, int)">checkIndices</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#cosine(org.apache.commons.math3.linear.RealVector)">cosine</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getMaxIndex()">getMaxIndex</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getMaxValue()">getMaxValue</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getMinIndex()">getMinIndex</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getMinValue()">getMinValue</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#iterator()">iterator</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#mapAdd(double)">mapAdd</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#mapDivide(double)">mapDivide</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#mapMultiply(double)">mapMultiply</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#mapSubtract(double)">mapSubtract</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#projection(org.apache.commons.math3.linear.RealVector)">projection</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#sparseIterator()">sparseIterator</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#unitize()">unitize</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#unitVector()">unitVector</a>, <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#unmodifiableRealVector(org.apache.commons.math3.linear.RealVector)">unmodifiableRealVector</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="ArrayRealVector()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector()</pre> |
| <div class="block">Build a 0-length vector. |
| Zero-length vectors may be used to initialized construction of vectors |
| by data gathering. We start with zero-length and use either the <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector, org.apache.commons.math3.linear.ArrayRealVector)"><code>ArrayRealVector(ArrayRealVector, ArrayRealVector)</code></a> constructor |
| or one of the <code>append</code> method (<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#append(double)"><code>append(double)</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#append(org.apache.commons.math3.linear.ArrayRealVector)"><code>append(ArrayRealVector)</code></a>) to gather data into this vector.</div> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(int size)</pre> |
| <div class="block">Construct a vector of zeroes.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>size</code> - Size of the vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(int, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(int size, |
| double preset)</pre> |
| <div class="block">Construct a vector with preset values.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>size</code> - Size of the vector</dd><dd><code>preset</code> - All entries will be set with this value.</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(double[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(double[] d)</pre> |
| <div class="block">Construct a vector from an array, copying the input array.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Array.</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(double[], boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(double[] d, |
| boolean copyArray) |
| throws <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a></pre> |
| <div class="block">Create a new ArrayRealVector using the input array as the underlying |
| data array. |
| If an array is built specially in order to be embedded in a |
| ArrayRealVector and not used directly, the <code>copyArray</code> may be |
| set to <code>false</code>. This will prevent the copying and improve |
| performance as no new array will be built and no data will be copied.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Data for the new vector.</dd><dd><code>copyArray</code> - if <code>true</code>, the input array will be copied, |
| otherwise it will be referenced.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a></code> - if <code>d</code> is <code>null</code>.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html#ArrayRealVector(double[])"><code>ArrayRealVector(double[])</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(double[], int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(double[] d, |
| int pos, |
| int size) |
| throws <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a>, |
| <a href="../../../../../org/apache/commons/math3/exception/NumberIsTooLargeException.html" title="class in org.apache.commons.math3.exception">NumberIsTooLargeException</a></pre> |
| <div class="block">Construct a vector from part of a array.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Array.</dd><dd><code>pos</code> - Position of first entry.</dd><dd><code>size</code> - Number of entries to copy.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a></code> - if <code>d</code> is <code>null</code>.</dd> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NumberIsTooLargeException.html" title="class in org.apache.commons.math3.exception">NumberIsTooLargeException</a></code> - if the size of <code>d</code> is less |
| than <code>pos + size</code>.</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(java.lang.Double[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>[] d)</pre> |
| <div class="block">Construct a vector from an array.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Array of <code>Double</code>s.</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(java.lang.Double[], int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>[] d, |
| int pos, |
| int size) |
| throws <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a>, |
| <a href="../../../../../org/apache/commons/math3/exception/NumberIsTooLargeException.html" title="class in org.apache.commons.math3.exception">NumberIsTooLargeException</a></pre> |
| <div class="block">Construct a vector from part of an array.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Array.</dd><dd><code>pos</code> - Position of first entry.</dd><dd><code>size</code> - Number of entries to copy.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a></code> - if <code>d</code> is <code>null</code>.</dd> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NumberIsTooLargeException.html" title="class in org.apache.commons.math3.exception">NumberIsTooLargeException</a></code> - if the size of <code>d</code> is less |
| than <code>pos + size</code>.</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a></pre> |
| <div class="block">Construct a vector from another vector, using a deep copy.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - vector to copy.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a></code> - if <code>v</code> is <code>null</code>.</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a></pre> |
| <div class="block">Construct a vector from another vector, using a deep copy.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector to copy.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a></code> - if <code>v</code> is <code>null</code>.</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v, |
| boolean deep)</pre> |
| <div class="block">Construct a vector from another vector.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector to copy.</dd><dd><code>deep</code> - If <code>true</code> perform a deep copy, otherwise perform a |
| shallow copy.</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector, org.apache.commons.math3.linear.ArrayRealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v1, |
| <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v2)</pre> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>v1</code> - First vector (will be put in front of the new vector).</dd><dd><code>v2</code> - Second vector (will be put at back of the new vector).</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector, org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v1, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v2)</pre> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>v1</code> - First vector (will be put in front of the new vector).</dd><dd><code>v2</code> - Second vector (will be put at back of the new vector).</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(org.apache.commons.math3.linear.RealVector, org.apache.commons.math3.linear.ArrayRealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v1, |
| <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v2)</pre> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>v1</code> - First vector (will be put in front of the new vector).</dd><dd><code>v2</code> - Second vector (will be put at back of the new vector).</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(org.apache.commons.math3.linear.ArrayRealVector, double[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v1, |
| double[] v2)</pre> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>v1</code> - First vector (will be put in front of the new vector).</dd><dd><code>v2</code> - Second vector (will be put at back of the new vector).</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(double[], org.apache.commons.math3.linear.ArrayRealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(double[] v1, |
| <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v2)</pre> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>v1</code> - First vector (will be put in front of the new vector).</dd><dd><code>v2</code> - Second vector (will be put at back of the new vector).</dd></dl> |
| </li> |
| </ul> |
| <a name="ArrayRealVector(double[], double[])"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ArrayRealVector</h4> |
| <pre>public ArrayRealVector(double[] v1, |
| double[] v2)</pre> |
| <div class="block">Construct a vector by appending one vector to another vector.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>v1</code> - first vector (will be put in front of the new vector)</dd><dd><code>v2</code> - second vector (will be put at back of the new vector)</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="copy()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copy</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> copy()</pre> |
| <div class="block">Returns a (deep) copy of this vector.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#copy()">copy</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a vector copy.</dd></dl> |
| </li> |
| </ul> |
| <a name="add(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> add(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Compute the sum of this vector and <code>v</code>. |
| Returns a new vector. Does not change instance data.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#add(org.apache.commons.math3.linear.RealVector)">add</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector to be added.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>this</code> + <code>v</code>.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if <code>v</code> is not the same size as |
| <code>this</code> vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="subtract(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>subtract</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> subtract(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Subtract <code>v</code> from this vector. |
| Returns a new vector. Does not change instance data.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#subtract(org.apache.commons.math3.linear.RealVector)">subtract</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector to be subtracted.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>this</code> - <code>v</code>.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if <code>v</code> is not the same size as |
| <code>this</code> vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="map(org.apache.commons.math3.analysis.UnivariateFunction)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>map</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> map(<a href="../../../../../org/apache/commons/math3/analysis/UnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">UnivariateFunction</a> function)</pre> |
| <div class="block">Acts as if implemented as: |
| <pre> |
| return copy().mapToSelf(function); |
| </pre> |
| Returns a new vector. Does not change instance data.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#map(org.apache.commons.math3.analysis.UnivariateFunction)">map</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>function</code> - Function to apply to each entry.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a new vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="mapToSelf(org.apache.commons.math3.analysis.UnivariateFunction)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mapToSelf</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> mapToSelf(<a href="../../../../../org/apache/commons/math3/analysis/UnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">UnivariateFunction</a> function)</pre> |
| <div class="block">Acts as if it is implemented as: |
| <pre> |
| Entry e = null; |
| for(Iterator<Entry> it = iterator(); it.hasNext(); e = it.next()) { |
| e.setValue(function.value(e.getValue())); |
| } |
| </pre> |
| Entries of this vector are modified in-place by this method.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#mapToSelf(org.apache.commons.math3.analysis.UnivariateFunction)">mapToSelf</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>function</code> - Function to apply to each entry.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a reference to this vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="mapAddToSelf(double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mapAddToSelf</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> mapAddToSelf(double d)</pre> |
| <div class="block">Add a value to each entry. |
| The instance is changed in-place.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#mapAddToSelf(double)">mapAddToSelf</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Value to be added to each entry.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>this</code>.</dd></dl> |
| </li> |
| </ul> |
| <a name="mapSubtractToSelf(double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mapSubtractToSelf</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> mapSubtractToSelf(double d)</pre> |
| <div class="block">Subtract a value from each entry. |
| The instance is changed in-place.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#mapSubtractToSelf(double)">mapSubtractToSelf</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Value to be subtracted.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>this</code>.</dd></dl> |
| </li> |
| </ul> |
| <a name="mapMultiplyToSelf(double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mapMultiplyToSelf</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> mapMultiplyToSelf(double d)</pre> |
| <div class="block">Multiply each entry. |
| The instance is changed in-place.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#mapMultiplyToSelf(double)">mapMultiplyToSelf</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Multiplication factor.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>this</code>.</dd></dl> |
| </li> |
| </ul> |
| <a name="mapDivideToSelf(double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mapDivideToSelf</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> mapDivideToSelf(double d)</pre> |
| <div class="block">Divide each entry by the argument. |
| The instance is changed in-place.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#mapDivideToSelf(double)">mapDivideToSelf</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Value to divide by.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>this</code>.</dd></dl> |
| </li> |
| </ul> |
| <a name="ebeMultiply(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ebeMultiply</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> ebeMultiply(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Element-by-element multiplication.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#ebeMultiply(org.apache.commons.math3.linear.RealVector)">ebeMultiply</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector by which instance elements must be multiplied</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a vector containing this[i] * v[i] for all i.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if <code>v</code> is not the same size as |
| <code>this</code> vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="ebeDivide(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ebeDivide</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> ebeDivide(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Element-by-element division.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#ebeDivide(org.apache.commons.math3.linear.RealVector)">ebeDivide</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector by which instance elements must be divided.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a vector containing this[i] / v[i] for all i.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if <code>v</code> is not the same size as |
| <code>this</code> vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="getDataRef()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDataRef</h4> |
| <pre>public double[] getDataRef()</pre> |
| <div class="block">Get a reference to the underlying data array. |
| This method does not make a fresh copy of the underlying data.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the array of entries.</dd></dl> |
| </li> |
| </ul> |
| <a name="dotProduct(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dotProduct</h4> |
| <pre>public double dotProduct(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Compute the dot product of this vector with <code>v</code>.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#dotProduct(org.apache.commons.math3.linear.RealVector)">dotProduct</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector with which dot product should be computed</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the scalar dot product between this instance and <code>v</code>.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if <code>v</code> is not the same size as |
| <code>this</code> vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="getNorm()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNorm</h4> |
| <pre>public double getNorm()</pre> |
| <div class="block">Returns the L<sub>2</sub> norm of the vector. |
| <p>The L<sub>2</sub> norm is the root of the sum of |
| the squared elements.</p></div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getNorm()">getNorm</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the norm.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getL1Norm()"><code>RealVector.getL1Norm()</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getLInfNorm()"><code>RealVector.getLInfNorm()</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getDistance(org.apache.commons.math3.linear.RealVector)"><code>RealVector.getDistance(RealVector)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getL1Norm()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getL1Norm</h4> |
| <pre>public double getL1Norm()</pre> |
| <div class="block">Returns the L<sub>1</sub> norm of the vector. |
| <p>The L<sub>1</sub> norm is the sum of the absolute |
| values of the elements.</p></div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getL1Norm()">getL1Norm</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the norm.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getNorm()"><code>RealVector.getNorm()</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getLInfNorm()"><code>RealVector.getLInfNorm()</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getL1Distance(org.apache.commons.math3.linear.RealVector)"><code>RealVector.getL1Distance(RealVector)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getLInfNorm()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLInfNorm</h4> |
| <pre>public double getLInfNorm()</pre> |
| <div class="block">Returns the L<sub>∞</sub> norm of the vector. |
| <p>The L<sub>∞</sub> norm is the max of the absolute |
| values of the elements.</p></div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getLInfNorm()">getLInfNorm</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the norm.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getNorm()"><code>RealVector.getNorm()</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getL1Norm()"><code>RealVector.getL1Norm()</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getLInfDistance(org.apache.commons.math3.linear.RealVector)"><code>RealVector.getLInfDistance(RealVector)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getDistance(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDistance</h4> |
| <pre>public double getDistance(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Distance between two vectors. |
| <p>This method computes the distance consistent with the |
| L<sub>2</sub> norm, i.e. the square root of the sum of |
| element differences, or Euclidean distance.</p></div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getDistance(org.apache.commons.math3.linear.RealVector)">getDistance</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector to which distance is requested.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the distance between two vectors.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if <code>v</code> is not the same size as |
| <code>this</code> vector.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getL1Distance(org.apache.commons.math3.linear.RealVector)"><code>RealVector.getL1Distance(RealVector)</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getLInfDistance(org.apache.commons.math3.linear.RealVector)"><code>RealVector.getLInfDistance(RealVector)</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getNorm()"><code>RealVector.getNorm()</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getL1Distance(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getL1Distance</h4> |
| <pre>public double getL1Distance(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Distance between two vectors. |
| <p>This method computes the distance consistent with |
| L<sub>1</sub> norm, i.e. the sum of the absolute values of |
| the elements differences.</p></div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getL1Distance(org.apache.commons.math3.linear.RealVector)">getL1Distance</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector to which distance is requested.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the distance between two vectors.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if <code>v</code> is not the same size as |
| <code>this</code> vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="getLInfDistance(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLInfDistance</h4> |
| <pre>public double getLInfDistance(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Distance between two vectors. |
| <p>This method computes the distance consistent with |
| L<sub>∞</sub> norm, i.e. the max of the absolute values of |
| element differences.</p></div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getLInfDistance(org.apache.commons.math3.linear.RealVector)">getLInfDistance</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector to which distance is requested.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the distance between two vectors.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if <code>v</code> is not the same size as |
| <code>this</code> vector.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getDistance(org.apache.commons.math3.linear.RealVector)"><code>RealVector.getDistance(RealVector)</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getL1Distance(org.apache.commons.math3.linear.RealVector)"><code>RealVector.getL1Distance(RealVector)</code></a>, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getLInfNorm()"><code>RealVector.getLInfNorm()</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="outerProduct(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>outerProduct</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/RealMatrix.html" title="interface in org.apache.commons.math3.linear">RealMatrix</a> outerProduct(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</pre> |
| <div class="block">Compute the outer product.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#outerProduct(org.apache.commons.math3.linear.RealVector)">outerProduct</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector with which outer product should be computed.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the matrix outer product between this instance and <code>v</code>.</dd></dl> |
| </li> |
| </ul> |
| <a name="getEntry(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEntry</h4> |
| <pre>public double getEntry(int index) |
| throws <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></pre> |
| <div class="block">Return the entry at the specified index.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getEntry(int)">getEntry</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - Index location of entry to be fetched.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the vector entry at <code>index</code>.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the index is not valid.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#setEntry(int, double)"><code>RealVector.setEntry(int, double)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getDimension()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDimension</h4> |
| <pre>public int getDimension()</pre> |
| <div class="block">Returns the size of the vector.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getDimension()">getDimension</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the size of this vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="append(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>append</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> append(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v)</pre> |
| <div class="block">Construct a new vector by appending a vector to this vector.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#append(org.apache.commons.math3.linear.RealVector)">append</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - vector to append to this one.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a new vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="append(org.apache.commons.math3.linear.ArrayRealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>append</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> append(<a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> v)</pre> |
| <div class="block">Construct a vector by appending a vector to this vector.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector to append to this one.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a new vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="append(double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>append</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> append(double in)</pre> |
| <div class="block">Construct a new vector by appending a double to this vector.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#append(double)">append</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - double to append.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a new vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="getSubVector(int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSubVector</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> getSubVector(int index, |
| int n) |
| throws <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a>, |
| <a href="../../../../../org/apache/commons/math3/exception/NotPositiveException.html" title="class in org.apache.commons.math3.exception">NotPositiveException</a></pre> |
| <div class="block">Get a subvector from consecutive elements.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getSubVector(int, int)">getSubVector</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - index of first element.</dd><dd><code>n</code> - number of elements to be retrieved.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a vector containing n elements.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the index is not valid.</dd> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NotPositiveException.html" title="class in org.apache.commons.math3.exception">NotPositiveException</a></code> - if the number of elements is not positive.</dd></dl> |
| </li> |
| </ul> |
| <a name="setEntry(int, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setEntry</h4> |
| <pre>public void setEntry(int index, |
| double value) |
| throws <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></pre> |
| <div class="block">Set a single element.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#setEntry(int, double)">setEntry</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - element index.</dd><dd><code>value</code> - new value for the element.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the index is not valid.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#getEntry(int)"><code>RealVector.getEntry(int)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="addToEntry(int, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addToEntry</h4> |
| <pre>public void addToEntry(int index, |
| double increment) |
| throws <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></pre> |
| <div class="block">Change an entry at the specified index.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#addToEntry(int, double)">addToEntry</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - Index location of entry to be set.</dd><dd><code>increment</code> - Value to add to the vector entry.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the index is not valid.</dd></dl> |
| </li> |
| </ul> |
| <a name="setSubVector(int, org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSubVector</h4> |
| <pre>public void setSubVector(int index, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></pre> |
| <div class="block">Set a sequence of consecutive elements.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#setSubVector(int, org.apache.commons.math3.linear.RealVector)">setSubVector</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - index of first element to be set.</dd><dd><code>v</code> - vector containing the values to set.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the index is not valid.</dd></dl> |
| </li> |
| </ul> |
| <a name="setSubVector(int, double[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSubVector</h4> |
| <pre>public void setSubVector(int index, |
| double[] v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></pre> |
| <div class="block">Set a set of consecutive elements.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - Index of first element to be set.</dd><dd><code>v</code> - Vector containing the values to set.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the index is inconsistent with the vector |
| size.</dd></dl> |
| </li> |
| </ul> |
| <a name="set(double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre>public void set(double value)</pre> |
| <div class="block">Set all elements to a single value.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#set(double)">set</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Single value to set for all elements.</dd></dl> |
| </li> |
| </ul> |
| <a name="toArray()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toArray</h4> |
| <pre>public double[] toArray()</pre> |
| <div class="block">Convert the vector to an array of <code>double</code>s. |
| The array is independent from this vector data: the elements |
| are copied.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#toArray()">toArray</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd>an array containing a copy of the vector elements.</dd></dl> |
| </li> |
| </ul> |
| <a name="toString()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="checkVectorDimensions(org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkVectorDimensions</h4> |
| <pre>protected void checkVectorDimensions(<a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> v) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Check if instance and specified vectors have the same dimension.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#checkVectorDimensions(org.apache.commons.math3.linear.RealVector)">checkVectorDimensions</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>v</code> - Vector to compare instance with.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if the vectors do not |
| have the same dimension.</dd></dl> |
| </li> |
| </ul> |
| <a name="checkVectorDimensions(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkVectorDimensions</h4> |
| <pre>protected void checkVectorDimensions(int n) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Check if instance dimension is equal to some expected value.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#checkVectorDimensions(int)">checkVectorDimensions</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>n</code> - Expected dimension.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if the dimension is |
| inconsistent with vector size.</dd></dl> |
| </li> |
| </ul> |
| <a name="isNaN()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isNaN</h4> |
| <pre>public boolean isNaN()</pre> |
| <div class="block">Check if any coordinate of this vector is <code>NaN</code>.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#isNaN()">isNaN</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if any coordinate of this vector is <code>NaN</code>, |
| <code>false</code> otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="isInfinite()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isInfinite</h4> |
| <pre>public boolean isInfinite()</pre> |
| <div class="block">Check whether any coordinate of this vector is infinite and none |
| are <code>NaN</code>.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#isInfinite()">isInfinite</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if any coordinate of this vector is infinite and |
| none are <code>NaN</code>, <code>false</code> otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="equals(java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre>public boolean equals(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> other)</pre> |
| <div class="block"><p> |
| Test for the equality of two real vectors. If all coordinates of two real |
| vectors are exactly the same, and none are <code>NaN</code>, the two real |
| vectors are considered to be equal. <code>NaN</code> coordinates are |
| considered to affect globally the vector and be equals to each other - |
| i.e, if either (or all) coordinates of the real vector are equal to |
| <code>NaN</code>, the real vector is equal to a vector with all <code>NaN</code> |
| coordinates. |
| </p> |
| <p> |
| This method <em>must</em> be overriden by concrete subclasses of |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear"><code>RealVector</code></a> (the current implementation throws an exception). |
| </p></div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#equals(java.lang.Object)">equals</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - Object to test for equality.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if two vector objects are equal, <code>false</code> if |
| <code>other</code> is null, not an instance of <code>RealVector</code>, or |
| not equal to this <code>RealVector</code> instance.</dd></dl> |
| </li> |
| </ul> |
| <a name="hashCode()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hashCode</h4> |
| <pre>public int hashCode()</pre> |
| <div class="block">. This method <em>must</em> be overriden by concrete |
| subclasses of <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear"><code>RealVector</code></a> (current implementation throws an |
| exception). All <code>NaN</code> values have the same hash code.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#hashCode()">hashCode</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="combine(double, double, org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>combine</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> combine(double a, |
| double b, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> y) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Returns a new vector representing <code>a * this + b * y</code>, the linear |
| combination of <code>this</code> and <code>y</code>. |
| Returns a new vector. Does not change instance data.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#combine(double, double, org.apache.commons.math3.linear.RealVector)">combine</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - Coefficient of <code>this</code>.</dd><dd><code>b</code> - Coefficient of <code>y</code>.</dd><dd><code>y</code> - Vector with which <code>this</code> is linearly combined.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a vector containing <code>a * this[i] + b * y[i]</code> for all |
| <code>i</code>.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if <code>y</code> is not the same size as |
| <code>this</code> vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="combineToSelf(double, double, org.apache.commons.math3.linear.RealVector)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>combineToSelf</h4> |
| <pre>public <a href="../../../../../org/apache/commons/math3/linear/ArrayRealVector.html" title="class in org.apache.commons.math3.linear">ArrayRealVector</a> combineToSelf(double a, |
| double b, |
| <a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a> y) |
| throws <a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre> |
| <div class="block">Updates <code>this</code> with the linear combination of <code>this</code> and |
| <code>y</code>.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#combineToSelf(double, double, org.apache.commons.math3.linear.RealVector)">combineToSelf</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - Weight of <code>this</code>.</dd><dd><code>b</code> - Weight of <code>y</code>.</dd><dd><code>y</code> - Vector with which <code>this</code> is linearly combined.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>this</code>, with components equal to |
| <code>a * this[i] + b * y[i]</code> for all <code>i</code>.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if <code>y</code> is not the same size as |
| <code>this</code> vector.</dd></dl> |
| </li> |
| </ul> |
| <a name="walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>walkInDefaultOrder</h4> |
| <pre>public double walkInDefaultOrder(<a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorPreservingVisitor</a> visitor)</pre> |
| <div class="block">Visits (but does not alter) all entries of this vector in default order |
| (increasing index).</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor)">walkInDefaultOrder</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>visitor</code> - the visitor to be used to process the entries of this |
| vector</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the value returned by <a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html#end()"><code>RealVectorPreservingVisitor.end()</code></a> |
| at the end of the walk</dd></dl> |
| </li> |
| </ul> |
| <a name="walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor, int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>walkInDefaultOrder</h4> |
| <pre>public double walkInDefaultOrder(<a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorPreservingVisitor</a> visitor, |
| int start, |
| int end) |
| throws <a href="../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a>, |
| <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></pre> |
| <div class="block">Visits (but does not alter) some entries of this vector in default order |
| (increasing index).</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor, int, int)">walkInDefaultOrder</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>visitor</code> - visitor to be used to process the entries of this vector</dd><dd><code>start</code> - the index of the first entry to be visited</dd><dd><code>end</code> - the index of the last entry to be visited (inclusive)</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the value returned by <a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html#end()"><code>RealVectorPreservingVisitor.end()</code></a> |
| at the end of the walk</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a></code> - if <code>end < start</code>.</dd> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the indices are not valid.</dd></dl> |
| </li> |
| </ul> |
| <a name="walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>walkInOptimizedOrder</h4> |
| <pre>public double walkInOptimizedOrder(<a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorPreservingVisitor</a> visitor)</pre> |
| <div class="block">Visits (but does not alter) all entries of this vector in optimized |
| order. The order in which the entries are visited is selected so as to |
| lead to the most efficient implementation; it might depend on the |
| concrete implementation of this abstract class. |
| |
| In this implementation, the optimized order is the default order.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor)">walkInOptimizedOrder</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>visitor</code> - the visitor to be used to process the entries of this |
| vector</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the value returned by <a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html#end()"><code>RealVectorPreservingVisitor.end()</code></a> |
| at the end of the walk</dd></dl> |
| </li> |
| </ul> |
| <a name="walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor, int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>walkInOptimizedOrder</h4> |
| <pre>public double walkInOptimizedOrder(<a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorPreservingVisitor</a> visitor, |
| int start, |
| int end) |
| throws <a href="../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a>, |
| <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></pre> |
| <div class="block">Visits (but does not alter) some entries of this vector in optimized |
| order. The order in which the entries are visited is selected so as to |
| lead to the most efficient implementation; it might depend on the |
| concrete implementation of this abstract class. |
| |
| In this implementation, the optimized order is the default order.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorPreservingVisitor, int, int)">walkInOptimizedOrder</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>visitor</code> - visitor to be used to process the entries of this vector</dd><dd><code>start</code> - the index of the first entry to be visited</dd><dd><code>end</code> - the index of the last entry to be visited (inclusive)</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the value returned by <a href="../../../../../org/apache/commons/math3/linear/RealVectorPreservingVisitor.html#end()"><code>RealVectorPreservingVisitor.end()</code></a> |
| at the end of the walk</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a></code> - if <code>end < start</code>.</dd> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the indices are not valid.</dd></dl> |
| </li> |
| </ul> |
| <a name="walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>walkInDefaultOrder</h4> |
| <pre>public double walkInDefaultOrder(<a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorChangingVisitor</a> visitor)</pre> |
| <div class="block">Visits (and possibly alters) all entries of this vector in default order |
| (increasing index).</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor)">walkInDefaultOrder</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>visitor</code> - the visitor to be used to process and modify the entries |
| of this vector</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the value returned by <a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html#end()"><code>RealVectorChangingVisitor.end()</code></a> |
| at the end of the walk</dd></dl> |
| </li> |
| </ul> |
| <a name="walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor, int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>walkInDefaultOrder</h4> |
| <pre>public double walkInDefaultOrder(<a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorChangingVisitor</a> visitor, |
| int start, |
| int end) |
| throws <a href="../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a>, |
| <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></pre> |
| <div class="block">Visits (and possibly alters) some entries of this vector in default order |
| (increasing index).</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#walkInDefaultOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor, int, int)">walkInDefaultOrder</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>visitor</code> - visitor to be used to process the entries of this vector</dd><dd><code>start</code> - the index of the first entry to be visited</dd><dd><code>end</code> - the index of the last entry to be visited (inclusive)</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the value returned by <a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html#end()"><code>RealVectorChangingVisitor.end()</code></a> |
| at the end of the walk</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a></code> - if <code>end < start</code>.</dd> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the indices are not valid.</dd></dl> |
| </li> |
| </ul> |
| <a name="walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>walkInOptimizedOrder</h4> |
| <pre>public double walkInOptimizedOrder(<a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorChangingVisitor</a> visitor)</pre> |
| <div class="block">Visits (and possibly alters) all entries of this vector in optimized |
| order. The order in which the entries are visited is selected so as to |
| lead to the most efficient implementation; it might depend on the |
| concrete implementation of this abstract class. |
| |
| In this implementation, the optimized order is the default order.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor)">walkInOptimizedOrder</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>visitor</code> - the visitor to be used to process the entries of this |
| vector</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the value returned by <a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html#end()"><code>RealVectorChangingVisitor.end()</code></a> |
| at the end of the walk</dd></dl> |
| </li> |
| </ul> |
| <a name="walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor, int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>walkInOptimizedOrder</h4> |
| <pre>public double walkInOptimizedOrder(<a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html" title="interface in org.apache.commons.math3.linear">RealVectorChangingVisitor</a> visitor, |
| int start, |
| int end) |
| throws <a href="../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a>, |
| <a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></pre> |
| <div class="block">Visits (and possibly change) some entries of this vector in optimized |
| order. The order in which the entries are visited is selected so as to |
| lead to the most efficient implementation; it might depend on the |
| concrete implementation of this abstract class. |
| |
| In this implementation, the optimized order is the default order.</div> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html#walkInOptimizedOrder(org.apache.commons.math3.linear.RealVectorChangingVisitor, int, int)">walkInOptimizedOrder</a></code> in class <code><a href="../../../../../org/apache/commons/math3/linear/RealVector.html" title="class in org.apache.commons.math3.linear">RealVector</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>visitor</code> - visitor to be used to process the entries of this vector</dd><dd><code>start</code> - the index of the first entry to be visited</dd><dd><code>end</code> - the index of the last entry to be visited (inclusive)</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the value returned by <a href="../../../../../org/apache/commons/math3/linear/RealVectorChangingVisitor.html#end()"><code>RealVectorChangingVisitor.end()</code></a> |
| at the end of the walk</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a></code> - if <code>end < start</code>.</dd> |
| <dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if the indices are not valid.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ArrayRealVector.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/commons/math3/linear/ArrayFieldVector.html" title="class in org.apache.commons.math3.linear"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/commons/math3/linear/BlockFieldMatrix.html" title="class in org.apache.commons.math3.linear"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/commons/math3/linear/ArrayRealVector.html" target="_top">Frames</a></li> |
| <li><a href="ArrayRealVector.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested_classes_inherited_from_class_org.apache.commons.math3.linear.RealVector">Nested</a> | </li> |
| <li>Field | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2003–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |