| Package | Description |
|---|---|
| com.opengamma.strata.collect.array |
Array data structures.
|
| Modifier and Type | Field and Description |
|---|---|
static DoubleMatrix |
DoubleMatrix.EMPTY
An empty array.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleMatrix |
DoubleMatrix.combine(DoubleMatrix other,
DoubleBinaryOperator operator)
Returns an instance where each element is formed by some combination of the matching
values in this matrix and the other matrix.
|
static DoubleMatrix |
DoubleMatrix.copyOf(double[][] array)
Obtains an instance from a
double[][]. |
static DoubleMatrix |
DoubleMatrix.diagonal(DoubleArray array)
Obtains a diagonal matrix from the specified array.
|
static DoubleMatrix |
DoubleMatrix.filled(int rows,
int columns)
Obtains an instance with all entries equal to the zero.
|
static DoubleMatrix |
DoubleMatrix.filled(int rows,
int columns,
double value)
Obtains an instance with all entries equal to the same value.
|
static DoubleMatrix |
DoubleMatrix.identity(int size)
Obtains an identity matrix.
|
DoubleMatrix |
DoubleMatrix.map(DoubleUnaryOperator operator)
Returns an instance with an operation applied to each value in the matrix.
|
DoubleMatrix |
DoubleMatrix.mapWithIndex(IntIntDoubleToDoubleFunction function)
Returns an instance with an operation applied to each indexed value in the matrix.
|
DoubleMatrix |
DoubleMatrix.minus(DoubleMatrix other)
Returns an instance where each element is equal to the difference between the
matching values in this matrix and the other matrix.
|
DoubleMatrix |
DoubleMatrix.multipliedBy(double factor)
Returns an instance with each value multiplied by the specified factor.
|
static DoubleMatrix |
DoubleMatrix.of()
Obtains an empty instance.
|
static DoubleMatrix |
DoubleMatrix.of(int rows,
int columns,
double... values)
Obtains an immutable array with the specified size and values.
|
static DoubleMatrix |
DoubleMatrix.of(int rows,
int columns,
IntIntToDoubleFunction valueFunction)
Obtains an instance with entries filled using a function.
|
static DoubleMatrix |
DoubleMatrix.ofArrayObjects(int rows,
int columns,
IntFunction<DoubleArray> valuesFunction)
Obtains an instance with entries filled using a function.
|
static DoubleMatrix |
DoubleMatrix.ofArrays(int rows,
int columns,
IntFunction<double[]> valuesFunction)
Obtains an instance with entries filled using a function.
|
static DoubleMatrix |
DoubleMatrix.ofUnsafe(double[][] array)
Obtains an instance by wrapping a
double[][]. |
DoubleMatrix |
DoubleMatrix.plus(DoubleMatrix other)
Returns an instance where each element is the sum of the matching values
in this array and the other matrix.
|
DoubleMatrix |
DoubleMatrix.transpose()
Transposes the matrix.
|
DoubleMatrix |
DoubleMatrix.with(int row,
int column,
double newValue)
Returns an instance with the value at the specified index changed.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends DoubleMatrix> |
DoubleMatrix.Meta.beanType() |
org.joda.beans.BeanBuilder<? extends DoubleMatrix> |
DoubleMatrix.Meta.builder() |
| Modifier and Type | Method and Description |
|---|---|
DoubleMatrix |
DoubleMatrix.combine(DoubleMatrix other,
DoubleBinaryOperator operator)
Returns an instance where each element is formed by some combination of the matching
values in this matrix and the other matrix.
|
DoubleMatrix |
DoubleMatrix.minus(DoubleMatrix other)
Returns an instance where each element is equal to the difference between the
matching values in this matrix and the other matrix.
|
DoubleMatrix |
DoubleMatrix.plus(DoubleMatrix other)
Returns an instance where each element is the sum of the matching values
in this array and the other matrix.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.