| Package | Description |
|---|---|
| math.list |
Resizable primitive double[] array implementation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DoubleArrayList
Resizable primitive double[] array implementation.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleList |
DoubleArrayList.assignConst(double val)
Assign the constant
val to each element in this list. |
DoubleList |
DoubleList.assignConst(double val)
Assign the constant
val to each element in this list. |
DoubleList |
DoubleArrayList.cross(double[] array)
Computes the cross
product of this DoubleList and the given
array provided that
both, this DoubleList and the given array, have a dimension of
3. |
DoubleList |
DoubleList.cross(double[] array)
Computes the cross
product of this DoubleList and the given
array provided that
both, this DoubleList and the given array, have a dimension of
3. |
DoubleList |
DoubleArrayList.cross(DoubleList list)
Computes the cross
product of this DoubleList and the given
list provided that
both, this DoubleList and the given list, have a dimension of
3. |
DoubleList |
DoubleList.cross(DoubleList list)
Computes the cross
product of this DoubleList and the given
list provided that
both, this DoubleList and the given list, have a dimension of
3. |
DoubleList |
DoubleArrayList.mul(double val)
Multiply each element in this list by the scalar
val. |
DoubleList |
DoubleList.mul(double val)
Multiply each element in this list by the scalar
val. |
DoubleList |
DoubleArrayList.muln(double[] array)
Multiplies the scalars from this list by the scalars from the given
array. |
DoubleList |
DoubleList.muln(double[] array)
Multiplies the scalars from this list by the scalars from the given
array. |
DoubleList |
DoubleArrayList.muln(DoubleList list)
Multiplies the scalars from this list by the scalars from the given
list. |
DoubleList |
DoubleList.muln(DoubleList list)
Multiplies the scalars from this list by the scalars from the given
list. |
DoubleList |
DoubleArrayList.normalizedSoftmax(double normalizedSum)
Returns a new list that contains the contents of this list normalized to
a distribution according to the
softmax
function which sums up to
normalizedSum. |
DoubleList |
DoubleList.normalizedSoftmax(double normalizedSum)
Returns a new list that contains the contents of this list normalized to
a distribution according to the
softmax
function which sums up to
normalizedSum. |
static DoubleList |
DoubleList.of(double... values)
Constructs a list containing the passed values in the order of their
appearance.
|
DoubleList |
DoubleArrayList.plus(double val)
Add the scalar
val to each element in this list. |
DoubleList |
DoubleList.plus(double val)
Add the scalar
val to each element in this list. |
DoubleList |
DoubleArrayList.plusn(double[] array)
Add the scalars from the given
array to the elements in this
list. |
DoubleList |
DoubleList.plusn(double[] array)
Add the scalars from the given
array to the elements in this
list. |
DoubleList |
DoubleArrayList.plusn(DoubleList list)
Add the scalars from the given
list to the elements in this list. |
DoubleList |
DoubleList.plusn(DoubleList list)
Add the scalars from the given
list to the elements in this list. |
static DoubleList |
DoubleList.randomNormal(double mu,
double sigma,
int size)
Constructs a random list of length
size with random values
normally distributed with mean mu and standard deviation
sigma. |
static DoubleList |
DoubleList.randomUniform(double min,
double max,
int size)
Constructs a random list of length
size with random values
uniformly distributed between min and max. |
DoubleList |
DoubleArrayList.round(int scale)
Round the scalars in this list to
scale. |
DoubleList |
DoubleList.round(int scale)
Round the scalars in this list to
scale. |
DoubleList |
DoubleArrayList.sanitizeNonFinite(double nanSurrogate,
double posInfSurrogate,
double negInfSurrogate)
Set all scalars that are either NaN, positive or negative infinity to the
respective ersatz value provided by the
nanSurrogate,
posInfSurrogate and negInfSurrogate arguments. |
DoubleList |
DoubleList.sanitizeNonFinite(double nanSurrogate,
double posInfSurrogate,
double negInfSurrogate)
Set all scalars that are either NaN, positive or negative infinity to the
respective ersatz value provided by the
nanSurrogate,
posInfSurrogate and negInfSurrogate arguments. |
DoubleList |
DoubleArrayList.softmax()
Returns a new list that contains the contents of this list normalized to
a probability distribution according to the
softmax
function which sums up to
1.0. |
DoubleList |
DoubleList.softmax()
Returns a new list that contains the contents of this list normalized to
a probability distribution according to the
softmax
function which sums up to
1.0. |
DoubleList |
DoubleArrayList.subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between the specified
fromIndex, inclusive, and toIndex, exclusive. |
DoubleList |
DoubleList.subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between the specified
fromIndex, inclusive, and toIndex, exclusive. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DoubleArrayList.addAll(DoubleList c)
Appends all of the elements in the specified list to the end of this
list, in the order that they are returned by the specified list's
DIterator.
|
boolean |
DoubleList.addAll(DoubleList c)
Appends all of the elements in the specified list to the end of this
list, in the order that they are returned by the specified list's
DIterator.
|
boolean |
DoubleArrayList.addAll(int index,
DoubleList c)
Inserts all of the elements in the specified list into this list,
starting at the specified position.
|
boolean |
DoubleList.addAll(int index,
DoubleList c)
Inserts all of the elements in the specified list into this list,
starting at the specified position.
|
static boolean |
DoubleList.approxEqual(DoubleList a,
DoubleList b)
Tests for approximate equality (or "closeness") of the two DoubleLists
a and b where a and b must have the same
length and each element xa of a is tested for approximate
equality against the corresponding element xb of b as
defined in approxEqual(DoubleList, DoubleList, double, double). |
static boolean |
DoubleList.approxEqual(DoubleList a,
DoubleList b,
double relTol,
double absTol)
Tests for approximate equality (or "closeness") of the two DoubleLists
a and b where a and b must have the same
length and each element xa of a is tested for approximate
equality against the corresponding element xb of b. |
boolean |
DoubleArrayList.containsAll(DoubleList c)
Returns
true if this DoubleList contains all of the elements in
the specified DoubleList. |
boolean |
DoubleList.containsAll(DoubleList c)
Returns
true if this DoubleList contains all of the elements in
the specified DoubleList. |
DoubleList |
DoubleArrayList.cross(DoubleList list)
Computes the cross
product of this DoubleList and the given
list provided that
both, this DoubleList and the given list, have a dimension of
3. |
DoubleList |
DoubleList.cross(DoubleList list)
Computes the cross
product of this DoubleList and the given
list provided that
both, this DoubleList and the given list, have a dimension of
3. |
double |
DoubleArrayList.dot(DoubleList list)
Computes the dot product of this list and the given
list. |
double |
DoubleList.dot(DoubleList list)
Computes the dot product of this list and the given
list. |
DoubleList |
DoubleArrayList.muln(DoubleList list)
Multiplies the scalars from this list by the scalars from the given
list. |
DoubleList |
DoubleList.muln(DoubleList list)
Multiplies the scalars from this list by the scalars from the given
list. |
DoubleList |
DoubleArrayList.plusn(DoubleList list)
Add the scalars from the given
list to the elements in this list. |
DoubleList |
DoubleList.plusn(DoubleList list)
Add the scalars from the given
list to the elements in this list. |
boolean |
DoubleArrayList.removeAll(DoubleList c)
Removes from this list all of its elements that are contained in the
specified list.
|
boolean |
DoubleList.removeAll(DoubleList c)
Removes from this list all of its elements that are contained in the
specified list.
|
boolean |
DoubleArrayList.retainAll(DoubleList c)
Retains only the elements in this list that are contained in the
specified list.
|
boolean |
DoubleList.retainAll(DoubleList c)
Retains only the elements in this list that are contained in the
specified list.
|
| Constructor and Description |
|---|
DoubleArrayList(DoubleList c)
Constructs a list containing the elements of the specified list, in the
order they are returned by the list's
toArray()
method. |
Copyright © 2022. All rights reserved.