Package | Description |
---|---|
org.la4j | |
org.la4j.matrix | |
org.la4j.vector |
Modifier and Type | Method and Description |
---|---|
static VectorAccumulator |
Vectors.asProductAccumulator(double neutral)
Creates a product vector accumulator that calculates the product of all elements in the vector.
|
static VectorAccumulator |
Vectors.asProductFunctionAccumulator(double neutral,
VectorFunction function)
Creates a product function accumulator, that calculates the product of
all elements in the vector after applying given
function to
each of them. |
static VectorAccumulator |
Vectors.asSumAccumulator(double neutral)
Creates a sum vector accumulator that calculates the sum of all elements in the vector.
|
static VectorAccumulator |
Vectors.asSumFunctionAccumulator(double neutral,
VectorFunction function)
Creates a sum function accumulator, that calculates the sum of all
elements in the vector after applying given
function to each of them. |
static VectorAccumulator |
Vectors.mkEuclideanNormAccumulator()
Makes an Euclidean norm accumulator that allows to use
Vector.fold(org.la4j.vector.functor.VectorAccumulator) method for norm calculation. |
static VectorAccumulator |
Vectors.mkInfinityNormAccumulator()
Makes an Infinity norm accumulator that allows to use
Vector.fold(org.la4j.vector.functor.VectorAccumulator) method for norm calculation. |
static VectorAccumulator |
Vectors.mkManhattanNormAccumulator()
Makes a Manhattan norm accumulator that allows to use
Vector.fold(org.la4j.vector.functor.VectorAccumulator) method for norm calculation. |
static VectorAccumulator |
Vectors.mkMaxAccumulator()
Makes a maximum vector accumulator that accumulates the maximum across vector elements.
|
static VectorAccumulator |
Vectors.mkMinAccumulator()
Makes a minimum vector accumulator that accumulates the minimum across vector elements.
|
Modifier and Type | Method and Description |
---|---|
static VectorProcedure |
Vectors.asAccumulatorProcedure(VectorAccumulator accumulator)
Creates an accumulator procedure that adapts a vector accumulator for procedure
interface.
|
double |
Vector.fold(VectorAccumulator accumulator)
Folds all elements of this vector with given
accumulator . |
double |
Matrix.foldColumn(int j,
VectorAccumulator accumulator)
Folds all elements of specified column in this matrix with given
accumulator . |
double[] |
Matrix.foldColumns(VectorAccumulator accumulator)
Folds all elements (in a column-by-column manner) of this matrix with given
accumulator . |
double |
Matrix.foldRow(int i,
VectorAccumulator accumulator)
Folds all elements of specified row in this matrix with given
accumulator . |
double[] |
Matrix.foldRows(VectorAccumulator accumulator)
Folds all elements (in row-by-row manner) of this matrix with given
accumulator . |
Modifier and Type | Method and Description |
---|---|
double |
SparseMatrix.foldNonZeroInColumn(int j,
VectorAccumulator accumulator)
Folds non-zero elements of the specified column in this matrix with the given
accumulator . |
double[] |
SparseMatrix.foldNonZeroInColumns(VectorAccumulator accumulator)
Folds non-zero elements (in a column-by-column manner) of this matrix with given
accumulator . |
double |
SparseMatrix.foldNonZeroInRow(int i,
VectorAccumulator accumulator)
Folds non-zero elements of the specified row in this matrix with the given
accumulator . |
double[] |
SparseMatrix.foldNonZeroInRows(VectorAccumulator accumulator)
Folds non-zero elements (in a row-by-row manner) of this matrix with given
accumulator . |
Modifier and Type | Method and Description |
---|---|
double |
SparseVector.foldNonZero(VectorAccumulator accumulator)
Folds non-zero elements of this vector with given
accumulator . |
Copyright © 2015. All rights reserved.