Package | Description |
---|---|
org.apache.mahout.math.list |
Resizable lists holding objects or primitive data types such as int,
double, etc.
|
Modifier and Type | Class and Description |
---|---|
class |
DoubleArrayList
Resizable list holding
double elements; implemented with arrays. |
Modifier and Type | Method and Description |
---|---|
AbstractDoubleList |
AbstractDoubleList.elements(double[] elements)
Sets the receiver's elements to be the specified array.
|
AbstractDoubleList |
DoubleArrayList.elements(double[] elements)
Sets the receiver's elements to be the specified array (not a copy of it).
|
AbstractDoubleList |
AbstractDoubleList.partFromTo(int from,
int to)
Returns a new list of the part of the receiver between
from , inclusive, and to ,
inclusive. |
AbstractDoubleList |
DoubleArrayList.partFromTo(int from,
int to)
Returns a new list of the part of the receiver between
from , inclusive, and to ,
inclusive. |
AbstractDoubleList |
AbstractDoubleList.times(int times)
Returns a list which is a concatenation of
times times the receiver. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractDoubleList.addAllOf(AbstractDoubleList other)
Appends all elements of the specified list to the receiver.
|
void |
AbstractDoubleList.addAllOfFromTo(AbstractDoubleList other,
int from,
int to)
Appends the part of the specified list between
from (inclusive) and to (inclusive) to the
receiver. |
void |
AbstractDoubleList.beforeInsertAllOfFromTo(int index,
AbstractDoubleList other,
int from,
int to)
Inserts the part of the specified list between
otherFrom (inclusive) and otherTo
(inclusive) before the specified position into the receiver. |
boolean |
AbstractDoubleList.removeAll(AbstractDoubleList other)
Removes from the receiver all elements that are contained in the specified list.
|
boolean |
DoubleArrayList.removeAll(AbstractDoubleList other)
Removes from the receiver all elements that are contained in the specified list.
|
void |
AbstractDoubleList.replaceFromToWithFrom(int from,
int to,
AbstractDoubleList other,
int otherFrom)
Replaces a number of elements in the receiver with the same number of elements of another list.
|
void |
DoubleArrayList.replaceFromToWithFrom(int from,
int to,
AbstractDoubleList other,
int otherFrom)
Replaces a number of elements in the receiver with the same number of elements of another list.
|
void |
AbstractDoubleList.replaceFromToWithFromTo(int from,
int to,
AbstractDoubleList other,
int otherFrom,
int otherTo)
Replaces the part between
from (inclusive) and to (inclusive) with the other list's part
between otherFrom and otherTo . |
boolean |
AbstractDoubleList.retainAll(AbstractDoubleList other)
Retains (keeps) only the elements in the receiver that are contained in the specified other list.
|
boolean |
DoubleArrayList.retainAll(AbstractDoubleList other)
Retains (keeps) only the elements in the receiver that are contained in the specified other list.
|
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.