| Package | Description |
|---|---|
| com.opengamma.strata.collect.array |
Array data structures.
|
| Modifier and Type | Field and Description |
|---|---|
static DoubleArray |
DoubleArray.EMPTY
An empty array.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleArray |
DoubleMatrix.column(int column)
Gets the column at the specified index.
|
DoubleArray |
DoubleArray.combine(DoubleArray other,
DoubleBinaryOperator operator)
Returns an instance where each element is formed by some combination of the matching
values in this array and the other array.
|
DoubleArray |
DoubleArray.concat(double... arrayToConcat)
Returns an array that combines this array and the specified array.
|
DoubleArray |
DoubleArray.concat(DoubleArray arrayToConcat)
Returns an array that combines this array and the specified array.
|
static DoubleArray |
DoubleArray.copyOf(Collection<Double> collection)
Obtains an instance from a collection of
Double. |
static DoubleArray |
DoubleArray.copyOf(double[] array)
Obtains an instance from an array of
double. |
static DoubleArray |
DoubleArray.copyOf(double[] array,
int fromIndex)
Obtains an instance by copying part of an array.
|
static DoubleArray |
DoubleArray.copyOf(double[] array,
int fromIndexInclusive,
int toIndexExclusive)
Obtains an instance by copying part of an array.
|
DoubleArray |
DoubleArray.dividedBy(double divisor)
Returns an instance with each value divided by the specified divisor.
|
DoubleArray |
DoubleArray.dividedBy(DoubleArray other)
Returns an instance where each element is calculated by dividing values in this array by values in the other array.
|
static DoubleArray |
DoubleArray.filled(int size)
Obtains an instance with all entries equal to the zero.
|
static DoubleArray |
DoubleArray.filled(int size,
double value)
Obtains an instance with all entries equal to the same value.
|
DoubleArray |
DoubleArray.map(DoubleUnaryOperator operator)
Returns an instance with an operation applied to each value in the array.
|
DoubleArray |
DoubleArray.mapWithIndex(IntDoubleToDoubleFunction function)
Returns an instance with an operation applied to each indexed value in the array.
|
DoubleArray |
DoubleArray.minus(double amount)
Returns an instance with the specified amount subtracted from each value.
|
DoubleArray |
DoubleArray.minus(DoubleArray other)
Returns an instance where each element is equal to the difference between the
matching values in this array and the other array.
|
DoubleArray |
DoubleArray.multipliedBy(double factor)
Returns an instance with each value multiplied by the specified factor.
|
DoubleArray |
DoubleArray.multipliedBy(DoubleArray other)
Returns an instance where each element is equal to the product of the
matching values in this array and the other array.
|
static DoubleArray |
DoubleArray.of()
Obtains an empty immutable array.
|
static DoubleArray |
DoubleArray.of(double value)
Obtains an immutable array with a single value.
|
static DoubleArray |
DoubleArray.of(double value1,
double value2)
Obtains an immutable array with two values.
|
static DoubleArray |
DoubleArray.of(double value1,
double value2,
double value3)
Obtains an immutable array with three values.
|
static DoubleArray |
DoubleArray.of(double value1,
double value2,
double value3,
double value4)
Obtains an immutable array with four values.
|
static DoubleArray |
DoubleArray.of(double value1,
double value2,
double value3,
double value4,
double value5)
Obtains an immutable array with five values.
|
static DoubleArray |
DoubleArray.of(double value1,
double value2,
double value3,
double value4,
double value5,
double value6)
Obtains an immutable array with six values.
|
static DoubleArray |
DoubleArray.of(double value1,
double value2,
double value3,
double value4,
double value5,
double value6,
double value7)
Obtains an immutable array with seven values.
|
static DoubleArray |
DoubleArray.of(double value1,
double value2,
double value3,
double value4,
double value5,
double value6,
double value7,
double value8)
Obtains an immutable array with eight values.
|
static DoubleArray |
DoubleArray.of(double value1,
double value2,
double value3,
double value4,
double value5,
double value6,
double value7,
double value8,
double... otherValues)
Obtains an immutable array with more than eight values.
|
static DoubleArray |
DoubleArray.of(DoubleStream stream)
Obtains an instance with entries filled from a stream.
|
static DoubleArray |
DoubleArray.of(int size,
IntToDoubleFunction valueFunction)
Obtains an instance with entries filled using a function.
|
static DoubleArray |
DoubleArray.ofUnsafe(double[] array)
Obtains an instance by wrapping an array.
|
DoubleArray |
DoubleArray.plus(double amount)
Returns an instance with the specified amount added to each value.
|
DoubleArray |
DoubleArray.plus(DoubleArray other)
Returns an instance where each element is the sum of the matching values
in this array and the other array.
|
DoubleArray |
DoubleMatrix.row(int row)
Gets the row at the specified index.
|
DoubleArray |
DoubleArray.sorted()
Returns a sorted copy of this array.
|
DoubleArray |
DoubleArray.subArray(int fromIndexInclusive)
Returns an array holding the values from the specified index onwards.
|
DoubleArray |
DoubleArray.subArray(int fromIndexInclusive,
int toIndexExclusive)
Returns an array holding the values between the specified from and to indices.
|
DoubleArray |
DoubleArray.with(int index,
double newValue)
Returns an instance with the value at the specified index changed.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleArray |
DoubleArray.combine(DoubleArray other,
DoubleBinaryOperator operator)
Returns an instance where each element is formed by some combination of the matching
values in this array and the other array.
|
double |
DoubleArray.combineReduce(DoubleArray other,
DoubleTernaryOperator operator)
Combines this array and the other array returning a reduced value.
|
DoubleArray |
DoubleArray.concat(DoubleArray arrayToConcat)
Returns an array that combines this array and the specified array.
|
static DoubleMatrix |
DoubleMatrix.diagonal(DoubleArray array)
Obtains a diagonal matrix from the specified array.
|
DoubleArray |
DoubleArray.dividedBy(DoubleArray other)
Returns an instance where each element is calculated by dividing values in this array by values in the other array.
|
boolean |
DoubleArray.equalWithTolerance(DoubleArray other,
double tolerance)
Checks if this array equals another within the specified tolerance.
|
DoubleArray |
DoubleArray.minus(DoubleArray other)
Returns an instance where each element is equal to the difference between the
matching values in this array and the other array.
|
DoubleArray |
DoubleArray.multipliedBy(DoubleArray other)
Returns an instance where each element is equal to the product of the
matching values in this array and the other array.
|
DoubleArray |
DoubleArray.plus(DoubleArray other)
Returns an instance where each element is the sum of the matching values
in this array and the other array.
|
| Modifier and Type | Method and Description |
|---|---|
static DoubleMatrix |
DoubleMatrix.ofArrayObjects(int rows,
int columns,
IntFunction<DoubleArray> valuesFunction)
Obtains an instance with entries filled using a function.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.