blob: 4a4134f7378d6ad50e48ac568b362b96dca69411 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_121) on Fri Apr 14 22:10:58 PDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AbstractFloatList (Mahout Math 0.13.0 API)</title>
<meta name="date" content="2017-04-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AbstractFloatList (Mahout Math 0.13.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":6,"i15":10,"i16":10,"i17":10,"i18":10,"i19":6,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":6,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<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/AbstractFloatList.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>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/mahout/math/list/AbstractDoubleList.html" title="class in org.apache.mahout.math.list"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mahout/math/list/AbstractIntList.html" title="class in org.apache.mahout.math.list"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mahout/math/list/AbstractFloatList.html" target="_top">Frames</a></li>
<li><a href="AbstractFloatList.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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.mahout.math.list</div>
<h2 title="Class AbstractFloatList" class="title">Class AbstractFloatList</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/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/mahout/math/PersistentObject.html" title="class in org.apache.mahout.math">org.apache.mahout.math.PersistentObject</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">org.apache.mahout.math.list.AbstractList</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mahout.math.list.AbstractFloatList</li>
</ul>
</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/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, <a href="../../../../../org/apache/mahout/math/buffer/FloatBufferConsumer.html" title="interface in org.apache.mahout.math.buffer">FloatBufferConsumer</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/mahout/math/list/FloatArrayList.html" title="class in org.apache.mahout.math.list">FloatArrayList</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">AbstractFloatList</span>
extends <a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a>
implements <a href="../../../../../org/apache/mahout/math/buffer/FloatBufferConsumer.html" title="interface in org.apache.mahout.math.buffer">FloatBufferConsumer</a></pre>
<div class="block">Abstract base class for resizable lists holding <code>float</code> elements; abstract.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../serialized-form.html#org.apache.mahout.math.list.AbstractFloatList">Serialized Form</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#size">size</a></span></code>
<div class="block">The size of the list.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#AbstractFloatList--">AbstractFloatList</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#add-float-">add</a></span>(float&nbsp;element)</code>
<div class="block">Appends the specified element to the end of this list.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#addAllOf-org.apache.mahout.math.list.AbstractFloatList-">addAllOf</a></span>(<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other)</code>
<div class="block">Appends all elements of the specified list to the receiver.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#addAllOf-org.apache.mahout.math.list.FloatArrayList-">addAllOf</a></span>(<a href="../../../../../org/apache/mahout/math/list/FloatArrayList.html" title="class in org.apache.mahout.math.list">FloatArrayList</a>&nbsp;other)</code>
<div class="block">Appends the specified list to the end of this list.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#addAllOfFromTo-org.apache.mahout.math.list.AbstractFloatList-int-int-">addAllOfFromTo</a></span>(<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other,
int&nbsp;from,
int&nbsp;to)</code>
<div class="block">Appends the part of the specified list between <code>from</code> (inclusive) and <code>to</code> (inclusive) to the
receiver.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#beforeInsert-int-float-">beforeInsert</a></span>(int&nbsp;index,
float&nbsp;element)</code>
<div class="block">Inserts the specified element before the specified position into the receiver.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#beforeInsertAllOfFromTo-int-org.apache.mahout.math.list.AbstractFloatList-int-int-">beforeInsertAllOfFromTo</a></span>(int&nbsp;index,
<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other,
int&nbsp;from,
int&nbsp;to)</code>
<div class="block">Inserts the part of the specified list between <code>otherFrom</code> (inclusive) and <code>otherTo</code>
(inclusive) before the specified position into the receiver.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#beforeInsertDummies-int-int-">beforeInsertDummies</a></span>(int&nbsp;index,
int&nbsp;length)</code>
<div class="block">Inserts <tt>length</tt> dummy elements before the specified position into the receiver.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#binarySearch-float-">binarySearch</a></span>(float&nbsp;key)</code>
<div class="block">Searches the receiver for the specified value using the binary search algorithm.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#binarySearchFromTo-float-int-int-">binarySearchFromTo</a></span>(float&nbsp;key,
int&nbsp;from,
int&nbsp;to)</code>
<div class="block">Searches the receiver for the specified value using the binary search algorithm.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#clone--">clone</a></span>()</code>
<div class="block">Returns a deep copy of the receiver.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#contains-float-">contains</a></span>(float&nbsp;elem)</code>
<div class="block">Returns true if the receiver contains the specified element.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#delete-float-">delete</a></span>(float&nbsp;element)</code>
<div class="block">Deletes the first element from the receiver that is identical to the specified element.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>float[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#elements--">elements</a></span>()</code>
<div class="block">Returns the elements currently stored, possibly including invalid elements between size and capacity.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#elements-float:A-">elements</a></span>(float[]&nbsp;elements)</code>
<div class="block">Sets the receiver's elements to be the specified array.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#ensureCapacity-int-">ensureCapacity</a></span>(int&nbsp;minCapacity)</code>
<div class="block">Ensures that the receiver can hold at least the specified number of elements without needing to allocate new
internal memory.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#equals-java.lang.Object-">equals</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;otherObj)</code>
<div class="block">Compares the specified Object with the receiver.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#fillFromToWith-int-int-float-">fillFromToWith</a></span>(int&nbsp;from,
int&nbsp;to,
float&nbsp;val)</code>
<div class="block">Sets the specified range of elements in the specified array to the specified value.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#forEach-org.apache.mahout.math.function.FloatProcedure-">forEach</a></span>(<a href="../../../../../org/apache/mahout/math/function/FloatProcedure.html" title="interface in org.apache.mahout.math.function">FloatProcedure</a>&nbsp;procedure)</code>
<div class="block">Applies a procedure to each element of the receiver, if any.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#get-int-">get</a></span>(int&nbsp;index)</code>
<div class="block">Returns the element at the specified position in the receiver.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>protected abstract float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#getQuick-int-">getQuick</a></span>(int&nbsp;index)</code>
<div class="block">Returns the element at the specified position in the receiver; <b>WARNING:</b> Does not check preconditions.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#indexOf-float-">indexOf</a></span>(float&nbsp;element)</code>
<div class="block">Returns the index of the first occurrence of the specified element.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#indexOfFromTo-float-int-int-">indexOfFromTo</a></span>(float&nbsp;element,
int&nbsp;from,
int&nbsp;to)</code>
<div class="block">Returns the index of the first occurrence of the specified element.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#lastIndexOf-float-">lastIndexOf</a></span>(float&nbsp;element)</code>
<div class="block">Returns the index of the last occurrence of the specified element.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#lastIndexOfFromTo-float-int-int-">lastIndexOfFromTo</a></span>(float&nbsp;element,
int&nbsp;from,
int&nbsp;to)</code>
<div class="block">Returns the index of the last occurrence of the specified element.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#mergeSortFromTo-int-int-">mergeSortFromTo</a></span>(int&nbsp;from,
int&nbsp;to)</code>
<div class="block">Sorts the specified range of the receiver into ascending order.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#mergeSortFromTo-int-int-org.apache.mahout.math.function.FloatComparator-">mergeSortFromTo</a></span>(int&nbsp;from,
int&nbsp;to,
<a href="../../../../../org/apache/mahout/math/function/FloatComparator.html" title="interface in org.apache.mahout.math.function">FloatComparator</a>&nbsp;c)</code>
<div class="block">Sorts the receiver according to the order induced by the specified comparator.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#partFromTo-int-int-">partFromTo</a></span>(int&nbsp;from,
int&nbsp;to)</code>
<div class="block">Returns a new list of the part of the receiver between <code>from</code>, inclusive, and <code>to</code>,
inclusive.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#quickSortFromTo-int-int-">quickSortFromTo</a></span>(int&nbsp;from,
int&nbsp;to)</code>
<div class="block">Sorts the specified range of the receiver into ascending numerical order.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#quickSortFromTo-int-int-org.apache.mahout.math.function.FloatComparator-">quickSortFromTo</a></span>(int&nbsp;from,
int&nbsp;to,
<a href="../../../../../org/apache/mahout/math/function/FloatComparator.html" title="interface in org.apache.mahout.math.function">FloatComparator</a>&nbsp;c)</code>
<div class="block">Sorts the receiver according to the order induced by the specified comparator.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#removeAll-org.apache.mahout.math.list.AbstractFloatList-">removeAll</a></span>(<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other)</code>
<div class="block">Removes from the receiver all elements that are contained in the specified list.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#removeFromTo-int-int-">removeFromTo</a></span>(int&nbsp;from,
int&nbsp;to)</code>
<div class="block">Removes from the receiver all elements whose index is between <code>from</code>, inclusive and <code>to</code>,
inclusive.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#replaceFromToWithFrom-int-int-org.apache.mahout.math.list.AbstractFloatList-int-">replaceFromToWithFrom</a></span>(int&nbsp;from,
int&nbsp;to,
<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other,
int&nbsp;otherFrom)</code>
<div class="block">Replaces a number of elements in the receiver with the same number of elements of another list.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#replaceFromToWithFromTo-int-int-org.apache.mahout.math.list.AbstractFloatList-int-int-">replaceFromToWithFromTo</a></span>(int&nbsp;from,
int&nbsp;to,
<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other,
int&nbsp;otherFrom,
int&nbsp;otherTo)</code>
<div class="block">Replaces the part between <code>from</code> (inclusive) and <code>to</code> (inclusive) with the other list's part
between <code>otherFrom</code> and <code>otherTo</code>.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#retainAll-org.apache.mahout.math.list.AbstractFloatList-">retainAll</a></span>(<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other)</code>
<div class="block">Retains (keeps) only the elements in the receiver that are contained in the specified other list.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#reverse--">reverse</a></span>()</code>
<div class="block">Reverses the elements of the receiver.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#set-int-float-">set</a></span>(int&nbsp;index,
float&nbsp;element)</code>
<div class="block">Replaces the element at the specified position in the receiver with the specified element.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>protected abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#setQuick-int-float-">setQuick</a></span>(int&nbsp;index,
float&nbsp;element)</code>
<div class="block">Replaces the element at the specified position in the receiver with the specified element; <b>WARNING:</b> Does not
check preconditions.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#setSizeRaw-int-">setSizeRaw</a></span>(int&nbsp;newSize)</code>
<div class="block">Sets the size of the receiver without modifying it otherwise.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#size--">size</a></span>()</code>
<div class="block">Returns the number of elements contained in the receiver.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#times-int-">times</a></span>(int&nbsp;times)</code>
<div class="block">Returns a list which is a concatenation of <code>times</code> times the receiver.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>float[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#toArray-float:A-">toArray</a></span>(float[]&nbsp;values)</code>&nbsp;</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang">Float</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#toList--">toList</a></span>()</code>
<div class="block">Returns a <code>ArrayList</code> containing all the elements in the receiver.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html#toString--">toString</a></span>()</code>
<div class="block">Returns a string representation of the receiver, containing the String representation of each element.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.math.list.AbstractList">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.mahout.math.list.<a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></h3>
<code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#checkRange-int-int-">checkRange</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#checkRangeFromTo-int-int-int-">checkRangeFromTo</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#clear--">clear</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#isEmpty--">isEmpty</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#mergeSort--">mergeSort</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#quickSort--">quickSort</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#remove-int-">remove</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#setSize-int-">setSize</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#sort--">sort</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#sortFromTo-int-int-">sortFromTo</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#trimToSize--">trimToSize</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&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/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/7/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/7/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/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/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/7/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/7/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/7/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/7/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">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="size">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>size</h4>
<pre>protected&nbsp;int size</pre>
<div class="block">The size of the list. This is a READ_ONLY variable for all methods but setSizeRaw(int newSize) !!! If you violate
this principle in subclasses, you should exactly know what you are doing.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="AbstractFloatList--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>AbstractFloatList</h4>
<pre>public&nbsp;AbstractFloatList()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="add-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;void&nbsp;add(float&nbsp;element)</pre>
<div class="block">Appends the specified element to the end of this list.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>element</code> - element to be appended to this list.</dd>
</dl>
</li>
</ul>
<a name="addAllOf-org.apache.mahout.math.list.AbstractFloatList-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAllOf</h4>
<pre>public&nbsp;void&nbsp;addAllOf(<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other)</pre>
<div class="block">Appends all elements of the specified list to the receiver.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - the list of which all elements shall be appended.</dd>
</dl>
</li>
</ul>
<a name="addAllOfFromTo-org.apache.mahout.math.list.AbstractFloatList-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAllOfFromTo</h4>
<pre>public&nbsp;void&nbsp;addAllOfFromTo(<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other,
int&nbsp;from,
int&nbsp;to)</pre>
<div class="block">Appends the part of the specified list between <code>from</code> (inclusive) and <code>to</code> (inclusive) to the
receiver.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - the list to be added to the receiver.</dd>
<dd><code>from</code> - the index of the first element to be appended (inclusive).</dd>
<dd><code>to</code> - the index of the last element to be appended (inclusive).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>other.size()&gt;0 && (from&lt;0 || from&gt;to ||
to&gt;=other.size())</tt>).</dd>
</dl>
</li>
</ul>
<a name="addAllOf-org.apache.mahout.math.list.FloatArrayList-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAllOf</h4>
<pre>public&nbsp;void&nbsp;addAllOf(<a href="../../../../../org/apache/mahout/math/list/FloatArrayList.html" title="class in org.apache.mahout.math.list">FloatArrayList</a>&nbsp;other)</pre>
<div class="block">Appends the specified list to the end of this list.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/buffer/FloatBufferConsumer.html#addAllOf-org.apache.mahout.math.list.FloatArrayList-">addAllOf</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/mahout/math/buffer/FloatBufferConsumer.html" title="interface in org.apache.mahout.math.buffer">FloatBufferConsumer</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - the list to be appended.</dd>
</dl>
</li>
</ul>
<a name="beforeInsert-int-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>beforeInsert</h4>
<pre>public&nbsp;void&nbsp;beforeInsert(int&nbsp;index,
float&nbsp;element)</pre>
<div class="block">Inserts the specified element before the specified position into the receiver. Shifts the element currently at that
position (if any) and any subsequent elements to the right.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - index before which the specified element is to be inserted (must be in [0,size]).</dd>
<dd><code>element</code> - element to be inserted.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>index &lt; 0 || index &gt; size()</tt>).</dd>
</dl>
</li>
</ul>
<a name="beforeInsertAllOfFromTo-int-org.apache.mahout.math.list.AbstractFloatList-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>beforeInsertAllOfFromTo</h4>
<pre>public&nbsp;void&nbsp;beforeInsertAllOfFromTo(int&nbsp;index,
<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other,
int&nbsp;from,
int&nbsp;to)</pre>
<div class="block">Inserts the part of the specified list between <code>otherFrom</code> (inclusive) and <code>otherTo</code>
(inclusive) before the specified position into the receiver. Shifts the element currently at that position (if any)
and any subsequent elements to the right.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - index before which to insert first element from the specified list (must be in [0,size])..</dd>
<dd><code>other</code> - list of which a part is to be inserted into the receiver.</dd>
<dd><code>from</code> - the index of the first element to be inserted (inclusive).</dd>
<dd><code>to</code> - the index of the last element to be inserted (inclusive).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>other.size()&gt;0 && (from&lt;0 || from&gt;to ||
to&gt;=other.size())</tt>).</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>index &lt; 0 || index &gt; size()</tt>).</dd>
</dl>
</li>
</ul>
<a name="beforeInsertDummies-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>beforeInsertDummies</h4>
<pre>protected&nbsp;void&nbsp;beforeInsertDummies(int&nbsp;index,
int&nbsp;length)</pre>
<div class="block">Inserts <tt>length</tt> dummy elements before the specified position into the receiver. Shifts the element
currently at that position (if any) and any subsequent elements to the right. <b>This method must set the new size
to be <tt>size()+length</tt>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#beforeInsertDummies-int-int-">beforeInsertDummies</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - index before which to insert dummy elements (must be in [0,size])..</dd>
<dd><code>length</code> - number of dummy elements to be inserted.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if <tt>index &lt; 0 || index &gt; size()</tt>.</dd>
</dl>
</li>
</ul>
<a name="binarySearch-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binarySearch</h4>
<pre>public&nbsp;int&nbsp;binarySearch(float&nbsp;key)</pre>
<div class="block">Searches the receiver for the specified value using the binary search algorithm. The receiver must
<strong>must</strong> be sorted (as by the sort method) prior to making this call. If it is not sorted, the
results are undefined: in particular, the call may enter an infinite loop. If the receiver contains multiple
elements equal to the specified object, there is no guarantee which instance will be found.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the value to be searched for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>index of the search key, if it is contained in the receiver; otherwise, <tt>(-(<i>insertion point</i>) -
1)</tt>. The <i>insertion point</i> is defined as the the point at which the value would be inserted into
the receiver: the index of the first element greater than the key, or <tt>receiver.size()</tt>, if all
elements in the receiver are less than the specified key. Note that this guarantees that the return value
will be &gt;= 0 if and only if the key is found.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html?is-external=true" title="class or interface in java.util"><code>Arrays</code></a></dd>
</dl>
</li>
</ul>
<a name="binarySearchFromTo-float-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>binarySearchFromTo</h4>
<pre>public&nbsp;int&nbsp;binarySearchFromTo(float&nbsp;key,
int&nbsp;from,
int&nbsp;to)</pre>
<div class="block">Searches the receiver for the specified value using the binary search algorithm. The receiver must
<strong>must</strong> be sorted (as by the sort method) prior to making this call. If it is not sorted, the
results are undefined: in particular, the call may enter an infinite loop. If the receiver contains multiple
elements equal to the specified object, there is no guarantee which instance will be found.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the value to be searched for.</dd>
<dd><code>from</code> - the leftmost search position, inclusive.</dd>
<dd><code>to</code> - the rightmost search position, inclusive.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>index of the search key, if it is contained in the receiver; otherwise, <tt>(-(<i>insertion point</i>) -
1)</tt>. The <i>insertion point</i> is defined as the the point at which the value would be inserted into
the receiver: the index of the first element greater than the key, or <tt>receiver.size()</tt>, if all
elements in the receiver are less than the specified key. Note that this guarantees that the return value
will be &gt;= 0 if and only if the key is found.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html?is-external=true" title="class or interface in java.util"><code>Arrays</code></a></dd>
</dl>
</li>
</ul>
<a name="clone--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clone</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;clone()</pre>
<div class="block">Returns a deep copy of the receiver.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/PersistentObject.html#clone--">clone</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/PersistentObject.html" title="class in org.apache.mahout.math">PersistentObject</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a deep copy of the receiver.</dd>
</dl>
</li>
</ul>
<a name="contains-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
<pre>public&nbsp;boolean&nbsp;contains(float&nbsp;elem)</pre>
<div class="block">Returns true if the receiver contains the specified element.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>elem</code> - element whose presence in the receiver is to be tested.</dd>
</dl>
</li>
</ul>
<a name="delete-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>delete</h4>
<pre>public&nbsp;void&nbsp;delete(float&nbsp;element)</pre>
<div class="block">Deletes the first element from the receiver that is identical to the specified element. Does nothing, if no such
matching element is contained.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>element</code> - the element to be deleted.</dd>
</dl>
</li>
</ul>
<a name="elements--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>elements</h4>
<pre>public&nbsp;float[]&nbsp;elements()</pre>
<div class="block">Returns the elements currently stored, possibly including invalid elements between size and capacity.
<b>WARNING:</b> For efficiency reasons and to keep memory usage low, this method may decide <b>not to copy the
array</b>. So if subsequently you modify the returned array directly via the [] operator, be sure you know what
you're doing.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the elements currently stored.</dd>
</dl>
</li>
</ul>
<a name="elements-float:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>elements</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;elements(float[]&nbsp;elements)</pre>
<div class="block">Sets the receiver's elements to be the specified array. The size and capacity of the list is the length of the
array. <b>WARNING:</b> For efficiency reasons and to keep memory usage low, this method may decide <b>not to copy
the array</b>. So if subsequently you modify the returned array directly via the [] operator, be sure you know what
you're doing.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>elements</code> - the new elements to be stored.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the receiver itself.</dd>
</dl>
</li>
</ul>
<a name="ensureCapacity-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ensureCapacity</h4>
<pre>public abstract&nbsp;void&nbsp;ensureCapacity(int&nbsp;minCapacity)</pre>
<div class="block">Ensures that the receiver can hold at least the specified number of elements without needing to allocate new
internal memory. If necessary, allocates new internal memory and increases the capacity of the receiver.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minCapacity</code> - the desired minimum capacity.</dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;otherObj)</pre>
<div class="block">Compares the specified Object with the receiver. Returns true if and only if the specified Object is also an
ArrayList of the same type, both Lists have the same size, and all corresponding pairs of elements in the two Lists
are identical. In other words, two Lists are defined to be equal if they contain the same elements in the same
order.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>otherObj</code> - the Object to be compared for equality with the receiver.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the specified Object is equal to the receiver.</dd>
</dl>
</li>
</ul>
<a name="fillFromToWith-int-int-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fillFromToWith</h4>
<pre>public&nbsp;void&nbsp;fillFromToWith(int&nbsp;from,
int&nbsp;to,
float&nbsp;val)</pre>
<div class="block">Sets the specified range of elements in the specified array to the specified value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - the index of the first element (inclusive) to be filled with the specified value.</dd>
<dd><code>to</code> - the index of the last element (inclusive) to be filled with the specified value.</dd>
<dd><code>val</code> - the value to be stored in the specified elements of the receiver.</dd>
</dl>
</li>
</ul>
<a name="forEach-org.apache.mahout.math.function.FloatProcedure-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>forEach</h4>
<pre>public&nbsp;boolean&nbsp;forEach(<a href="../../../../../org/apache/mahout/math/function/FloatProcedure.html" title="interface in org.apache.mahout.math.function">FloatProcedure</a>&nbsp;procedure)</pre>
<div class="block">Applies a procedure to each element of the receiver, if any. Starts at index 0, moving rightwards.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>procedure</code> - the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise
continues.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><tt>false</tt> if the procedure stopped before all elements where iterated over, <tt>true</tt> otherwise.</dd>
</dl>
</li>
</ul>
<a name="get-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;float&nbsp;get(int&nbsp;index)</pre>
<div class="block">Returns the element at the specified position in the receiver.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - index of element to return.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (index &lt; 0 || index &gt;= size()).</dd>
</dl>
</li>
</ul>
<a name="getQuick-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getQuick</h4>
<pre>protected abstract&nbsp;float&nbsp;getQuick(int&nbsp;index)</pre>
<div class="block">Returns the element at the specified position in the receiver; <b>WARNING:</b> Does not check preconditions.
Provided with invalid parameters this method may return invalid elements without throwing any exception! <b>You
should only use this method when you are absolutely sure that the index is within bounds.</b> Precondition
(unchecked): <tt>index &gt;= 0 && index &lt; size()</tt>.
This method is normally only used internally in large loops where bounds are explicitly checked before the loop and
need no be rechecked within the loop. However, when desperately, you can give this method <tt>public</tt>
visibility in subclasses.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - index of element to return.</dd>
</dl>
</li>
</ul>
<a name="indexOf-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>indexOf</h4>
<pre>public&nbsp;int&nbsp;indexOf(float&nbsp;element)</pre>
<div class="block">Returns the index of the first occurrence of the specified element. Returns <code>-1</code> if the receiver does
not contain this element.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>element</code> - the element to be searched for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index of the first occurrence of the element in the receiver; returns <code>-1</code> if the element is
not found.</dd>
</dl>
</li>
</ul>
<a name="indexOfFromTo-float-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>indexOfFromTo</h4>
<pre>public&nbsp;int&nbsp;indexOfFromTo(float&nbsp;element,
int&nbsp;from,
int&nbsp;to)</pre>
<div class="block">Returns the index of the first occurrence of the specified element. Returns <code>-1</code> if the receiver does
not contain this element. Searches between <code>from</code>, inclusive and <code>to</code>, inclusive. Tests for
identity.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>element</code> - element to search for.</dd>
<dd><code>from</code> - the leftmost search position, inclusive.</dd>
<dd><code>to</code> - the rightmost search position, inclusive.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index of the first occurrence of the element in the receiver; returns <code>-1</code> if the element is
not found.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to ||
to&gt;=size())</tt>).</dd>
</dl>
</li>
</ul>
<a name="lastIndexOf-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastIndexOf</h4>
<pre>public&nbsp;int&nbsp;lastIndexOf(float&nbsp;element)</pre>
<div class="block">Returns the index of the last occurrence of the specified element. Returns <code>-1</code> if the receiver does not
contain this element.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>element</code> - the element to be searched for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index of the last occurrence of the element in the receiver; returns <code>-1</code> if the element is
not found.</dd>
</dl>
</li>
</ul>
<a name="lastIndexOfFromTo-float-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastIndexOfFromTo</h4>
<pre>public&nbsp;int&nbsp;lastIndexOfFromTo(float&nbsp;element,
int&nbsp;from,
int&nbsp;to)</pre>
<div class="block">Returns the index of the last occurrence of the specified element. Returns <code>-1</code> if the receiver does not
contain this element. Searches beginning at <code>to</code>, inclusive until <code>from</code>, inclusive. Tests
for identity.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>element</code> - element to search for.</dd>
<dd><code>from</code> - the leftmost search position, inclusive.</dd>
<dd><code>to</code> - the rightmost search position, inclusive.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index of the last occurrence of the element in the receiver; returns <code>-1</code> if the element is
not found.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to ||
to&gt;=size())</tt>).</dd>
</dl>
</li>
</ul>
<a name="mergeSortFromTo-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mergeSortFromTo</h4>
<pre>public&nbsp;void&nbsp;mergeSortFromTo(int&nbsp;from,
int&nbsp;to)</pre>
<div class="block">Sorts the specified range of the receiver into ascending order.
The sorting algorithm is a modified mergesort (in which the merge is omitted if the highest element in the low
sublist is less than the lowest element in the high sublist). This algorithm offers guaranteed n*log(n)
performance, and can approach linear performance on nearly sorted lists.
<p><b>You should never call this method unless you are sure that this particular sorting algorithm is the right one
for your data set.</b> It is generally better to call <tt>sort()</tt> or <tt>sortFromTo(...)</tt> instead, because
those methods automatically choose the best sorting algorithm.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#mergeSortFromTo-int-int-">mergeSortFromTo</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - the index of the first element (inclusive) to be sorted.</dd>
<dd><code>to</code> - the index of the last element (inclusive) to be sorted.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to ||
to&gt;=size())</tt>).</dd>
</dl>
</li>
</ul>
<a name="mergeSortFromTo-int-int-org.apache.mahout.math.function.FloatComparator-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mergeSortFromTo</h4>
<pre>public&nbsp;void&nbsp;mergeSortFromTo(int&nbsp;from,
int&nbsp;to,
<a href="../../../../../org/apache/mahout/math/function/FloatComparator.html" title="interface in org.apache.mahout.math.function">FloatComparator</a>&nbsp;c)</pre>
<div class="block">Sorts the receiver according to the order induced by the specified comparator. All elements in the range must be
<i>mutually comparable</i> by the specified comparator (that is, <tt>c.compare(e1, e2)</tt> must not throw a
<tt>ClassCastException</tt> for any elements <tt>e1</tt> and <tt>e2</tt> in the range).<p>
This sort is guaranteed to be <i>stable</i>: equal elements will not be reordered as a result of the sort.<p>
The sorting algorithm is a modified mergesort (in which the merge is omitted if the highest element in the low
sublist is less than the lowest element in the high sublist). This algorithm offers guaranteed n*log(n)
performance, and can approach linear performance on nearly sorted lists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - the index of the first element (inclusive) to be sorted.</dd>
<dd><code>to</code> - the index of the last element (inclusive) to be sorted.</dd>
<dd><code>c</code> - the comparator to determine the order of the receiver.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - if the array contains elements that are not <i>mutually comparable</i> using
the specified comparator.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <tt>fromIndex &gt; toIndex</tt></dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <tt>fromIndex &lt; 0</tt> or <tt>toIndex &gt; a.length</tt></dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to ||
to&gt;=size())</tt>).</dd>
</dl>
</li>
</ul>
<a name="partFromTo-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>partFromTo</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;partFromTo(int&nbsp;from,
int&nbsp;to)</pre>
<div class="block">Returns a new list of the part of the receiver between <code>from</code>, inclusive, and <code>to</code>,
inclusive.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - the index of the first element (inclusive).</dd>
<dd><code>to</code> - the index of the last element (inclusive).</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new list</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to ||
to&gt;=size())</tt>).</dd>
</dl>
</li>
</ul>
<a name="quickSortFromTo-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>quickSortFromTo</h4>
<pre>public&nbsp;void&nbsp;quickSortFromTo(int&nbsp;from,
int&nbsp;to)</pre>
<div class="block">Sorts the specified range of the receiver into ascending numerical order. The sorting algorithm is a tuned
quicksort, adapted from Jon L. Bentley and M. Douglas McIlroy's "Engineering a Sort Function", Software-Practice
and Experience, Vol. 23(11) P. 1249-1265 (November 1993). This algorithm offers n*log(n) performance on many data
sets that cause other quicksorts to degrade to quadratic performance.
<p><b>You should never call this method unless you are sure that this particular sorting algorithm is the right one
for your data set.</b> It is generally better to call <tt>sort()</tt> or <tt>sortFromTo(...)</tt> instead, because
those methods automatically choose the best sorting algorithm.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#quickSortFromTo-int-int-">quickSortFromTo</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - the index of the first element (inclusive) to be sorted.</dd>
<dd><code>to</code> - the index of the last element (inclusive) to be sorted.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to ||
to&gt;=size())</tt>).</dd>
</dl>
</li>
</ul>
<a name="quickSortFromTo-int-int-org.apache.mahout.math.function.FloatComparator-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>quickSortFromTo</h4>
<pre>public&nbsp;void&nbsp;quickSortFromTo(int&nbsp;from,
int&nbsp;to,
<a href="../../../../../org/apache/mahout/math/function/FloatComparator.html" title="interface in org.apache.mahout.math.function">FloatComparator</a>&nbsp;c)</pre>
<div class="block">Sorts the receiver according to the order induced by the specified comparator. All elements in the range must be
<i>mutually comparable</i> by the specified comparator (that is, <tt>c.compare(e1, e2)</tt> must not throw a
<tt>ClassCastException</tt> for any elements <tt>e1</tt> and <tt>e2</tt> in the range).<p>
The sorting algorithm is a tuned quicksort, adapted from Jon L. Bentley and M. Douglas McIlroy's "Engineering a
Sort Function", Software-Practice and Experience, Vol. 23(11) P. 1249-1265 (November 1993). This algorithm offers
n*log(n) performance on many data sets that cause other quicksorts to degrade to quadratic performance.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - the index of the first element (inclusive) to be sorted.</dd>
<dd><code>to</code> - the index of the last element (inclusive) to be sorted.</dd>
<dd><code>c</code> - the comparator to determine the order of the receiver.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - if the array contains elements that are not <i>mutually comparable</i> using
the specified comparator.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <tt>fromIndex &gt; toIndex</tt></dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <tt>fromIndex &lt; 0</tt> or <tt>toIndex &gt; a.length</tt></dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to ||
to&gt;=size())</tt>).</dd>
</dl>
</li>
</ul>
<a name="removeAll-org.apache.mahout.math.list.AbstractFloatList-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeAll</h4>
<pre>public&nbsp;boolean&nbsp;removeAll(<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other)</pre>
<div class="block">Removes from the receiver all elements that are contained in the specified list. Tests for identity.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - the other list.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the receiver changed as a result of the call.</dd>
</dl>
</li>
</ul>
<a name="removeFromTo-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeFromTo</h4>
<pre>public&nbsp;void&nbsp;removeFromTo(int&nbsp;from,
int&nbsp;to)</pre>
<div class="block">Removes from the receiver all elements whose index is between <code>from</code>, inclusive and <code>to</code>,
inclusive. Shifts any succeeding elements to the left (reduces their index). This call shortens the list by
<tt>(to - from + 1)</tt> elements.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#removeFromTo-int-int-">removeFromTo</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - index of first element to be removed.</dd>
<dd><code>to</code> - index of last element to be removed.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to ||
to&gt;=size())</tt>).</dd>
</dl>
</li>
</ul>
<a name="replaceFromToWithFrom-int-int-org.apache.mahout.math.list.AbstractFloatList-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceFromToWithFrom</h4>
<pre>public&nbsp;void&nbsp;replaceFromToWithFrom(int&nbsp;from,
int&nbsp;to,
<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other,
int&nbsp;otherFrom)</pre>
<div class="block">Replaces a number of elements in the receiver with the same number of elements of another list. Replaces elements
in the receiver, between <code>from</code> (inclusive) and <code>to</code> (inclusive), with elements of
<code>other</code>, starting from <code>otherFrom</code> (inclusive).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - the position of the first element to be replaced in the receiver</dd>
<dd><code>to</code> - the position of the last element to be replaced in the receiver</dd>
<dd><code>other</code> - list holding elements to be copied into the receiver.</dd>
<dd><code>otherFrom</code> - position of first element within other list to be copied.</dd>
</dl>
</li>
</ul>
<a name="replaceFromToWithFromTo-int-int-org.apache.mahout.math.list.AbstractFloatList-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceFromToWithFromTo</h4>
<pre>public&nbsp;void&nbsp;replaceFromToWithFromTo(int&nbsp;from,
int&nbsp;to,
<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other,
int&nbsp;otherFrom,
int&nbsp;otherTo)</pre>
<div class="block">Replaces the part between <code>from</code> (inclusive) and <code>to</code> (inclusive) with the other list's part
between <code>otherFrom</code> and <code>otherTo</code>. Powerful (and tricky) method! Both parts need not be of
the same size (part A can both be smaller or larger than part B). Parts may overlap. Receiver and other list may
(but most not) be identical. If <code>from &gt; to</code>, then inserts other part before <code>from</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - the first element of the receiver (inclusive)</dd>
<dd><code>to</code> - the last element of the receiver (inclusive)</dd>
<dd><code>other</code> - the other list (may be identical with receiver)</dd>
<dd><code>otherFrom</code> - the first element of the other list (inclusive)</dd>
<dd><code>otherTo</code> - the last element of the other list (inclusive)
<p><b>Examples:</b><pre>
a=[0, 1, 2, 3, 4, 5, 6, 7]
b=[50, 60, 70, 80, 90]
a.R(...)=a.replaceFromToWithFromTo(...)
a.R(3,5,b,0,4)-->[0, 1, 2, 50, 60, 70, 80, 90,
6, 7]
a.R(1,6,b,0,4)-->[0, 50, 60, 70, 80, 90, 7]
a.R(0,6,b,0,4)-->[50, 60, 70, 80, 90, 7]
a.R(3,5,b,1,2)-->[0, 1, 2, 60, 70, 6, 7]
a.R(1,6,b,1,2)-->[0, 60, 70, 7]
a.R(0,6,b,1,2)-->[60, 70, 7]
a.R(5,3,b,0,4)-->[0, 1, 2, 3, 4, 50, 60, 70,
80, 90, 5, 6, 7]
a.R(5,0,b,0,4)-->[0, 1, 2, 3, 4, 50, 60, 70,
80, 90, 5, 6, 7]
a.R(5,3,b,1,2)-->[0, 1, 2, 3, 4, 60, 70, 5, 6,
7]
a.R(5,0,b,1,2)-->[0, 1, 2, 3, 4, 60, 70, 5, 6,
7]
Extreme cases:
a.R(5,3,b,0,0)-->[0, 1, 2, 3, 4, 50, 5, 6, 7]
a.R(5,3,b,4,4)-->[0, 1, 2, 3, 4, 90, 5, 6, 7]
a.R(3,5,a,0,1)-->[0, 1, 2, 0, 1, 6, 7]
a.R(3,5,a,3,5)-->[0, 1, 2, 3, 4, 5, 6, 7]
a.R(3,5,a,4,4)-->[0, 1, 2, 4, 6, 7]
a.R(5,3,a,0,4)-->[0, 1, 2, 3, 4, 0, 1, 2, 3, 4,
5, 6, 7]
a.R(0,-1,b,0,4)-->[50, 60, 70, 80, 90, 0, 1, 2,
3, 4, 5, 6, 7]
a.R(0,-1,a,0,4)-->[0, 1, 2, 3, 4, 0, 1, 2, 3,
4, 5, 6, 7]
a.R(8,0,a,0,4)-->[0, 1, 2, 3, 4, 5, 6, 7, 0, 1,
2, 3, 4]
</pre></dd>
</dl>
</li>
</ul>
<a name="retainAll-org.apache.mahout.math.list.AbstractFloatList-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>retainAll</h4>
<pre>public&nbsp;boolean&nbsp;retainAll(<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;other)</pre>
<div class="block">Retains (keeps) only the elements in the receiver that are contained in the specified other list. In other words,
removes from the receiver all of its elements that are not contained in the specified other list.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - the other list to test against.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the receiver changed as a result of the call.</dd>
</dl>
</li>
</ul>
<a name="reverse--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reverse</h4>
<pre>public&nbsp;void&nbsp;reverse()</pre>
<div class="block">Reverses the elements of the receiver. Last becomes first, second last becomes second first, and so on.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#reverse--">reverse</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd>
</dl>
</li>
</ul>
<a name="set-int-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;void&nbsp;set(int&nbsp;index,
float&nbsp;element)</pre>
<div class="block">Replaces the element at the specified position in the receiver with the specified element.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - index of element to replace.</dd>
<dd><code>element</code> - element to be stored at the specified position.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if <tt>index &lt; 0 || index &gt;= size()</tt>.</dd>
</dl>
</li>
</ul>
<a name="setQuick-int-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setQuick</h4>
<pre>protected abstract&nbsp;void&nbsp;setQuick(int&nbsp;index,
float&nbsp;element)</pre>
<div class="block">Replaces the element at the specified position in the receiver with the specified element; <b>WARNING:</b> Does not
check preconditions. Provided with invalid parameters this method may access invalid indexes without throwing any
exception! <b>You should only use this method when you are absolutely sure that the index is within bounds.</b>
Precondition (unchecked): <tt>index &gt;= 0 && index &lt; size()</tt>.
This method is normally only used internally in large loops where bounds are explicitly checked before the loop and
need no be rechecked within the loop. However, when desperately, you can give this method <tt>public</tt>
visibility in subclasses.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - index of element to replace.</dd>
<dd><code>element</code> - element to be stored at the specified position.</dd>
</dl>
</li>
</ul>
<a name="setSizeRaw-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSizeRaw</h4>
<pre>protected&nbsp;void&nbsp;setSizeRaw(int&nbsp;newSize)</pre>
<div class="block">Sets the size of the receiver without modifying it otherwise. This method should not release or allocate new memory
but simply set some instance variable like <tt>size</tt>.
If your subclass overrides and delegates size changing methods to some other object, you must make sure that those
overriding methods not only update the size of the delegate but also of this class. For example: public
DatabaseList extends AbstractFloatList { ... public void removeFromTo(int from,int to) {
myDatabase.removeFromTo(from,to); this.setSizeRaw(size-(to-from+1)); } }</div>
</li>
</ul>
<a name="size--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>public&nbsp;int&nbsp;size()</pre>
<div class="block">Returns the number of elements contained in the receiver.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#size--">size</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd>
</dl>
</li>
</ul>
<a name="times-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>times</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mahout/math/list/AbstractFloatList.html" title="class in org.apache.mahout.math.list">AbstractFloatList</a>&nbsp;times(int&nbsp;times)</pre>
<div class="block">Returns a list which is a concatenation of <code>times</code> times the receiver.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>times</code> - the number of times the receiver shall be copied.</dd>
</dl>
</li>
</ul>
<a name="toList--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toList</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang">Float</a>&gt;&nbsp;toList()</pre>
<div class="block">Returns a <code>ArrayList</code> containing all the elements in the receiver.</div>
</li>
</ul>
<a name="toArray-float:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toArray</h4>
<pre>public&nbsp;float[]&nbsp;toArray(float[]&nbsp;values)</pre>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<div class="block">Returns a string representation of the receiver, containing the String representation of each element.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></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>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<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/AbstractFloatList.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>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/mahout/math/list/AbstractDoubleList.html" title="class in org.apache.mahout.math.list"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mahout/math/list/AbstractIntList.html" title="class in org.apache.mahout.math.list"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mahout/math/list/AbstractFloatList.html" target="_top">Frames</a></li>
<li><a href="AbstractFloatList.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2008&#x2013;2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>