Package | Description |
---|---|
org.la4j | |
org.la4j.matrix |
Modifier and Type | Method and Description |
---|---|
static MatrixAccumulator |
Matrices.asProductAccumulator(double neutral)
Creates a product matrix accumulator that calculates the product of all elements in the matrix.
|
static MatrixAccumulator |
Matrices.asProductFunctionAccumulator(double neutral,
MatrixFunction function)
Creates a product function accumulator, that calculates the product of
all elements in the matrix after applying given
function to
each of them. |
static MatrixAccumulator |
Matrices.asSumAccumulator(double neutral)
Creates a sum matrix accumulator that calculates the sum of all elements in the matrix.
|
static MatrixAccumulator |
Matrices.asSumFunctionAccumulator(double neutral,
MatrixFunction function)
Creates a sum function accumulator, that calculates the sum of all
elements in the matrix after applying given
function to each of them. |
static MatrixAccumulator |
Matrices.mkEuclideanNormAccumulator()
Makes an Euclidean norm accumulator that allows to use
org.la4j.Matrix#fold(org.la4j.vector.functor.MatrixAccumulator)
method for norm calculation. |
static MatrixAccumulator |
Matrices.mkInfinityNormAccumulator()
Makes an Infinity norm accumulator that allows to use
org.la4j.Matrix#fold(org.la4j.vector.functor.MatrixAccumulator)
method for norm calculation. |
static MatrixAccumulator |
Matrices.mkManhattanNormAccumulator()
Makes an Manhattan norm accumulator that allows to use
org.la4j.Matrix#fold(org.la4j.vector.functor.MatrixAccumulator)
method for norm calculation. |
static MatrixAccumulator |
Matrices.mkMaxAccumulator()
Makes a maximum matrix accumulator that accumulates the maximum of matrix elements.
|
static MatrixAccumulator |
Matrices.mkMinAccumulator()
Makes a minimum matrix accumulator that accumulates the minimum of matrix elements.
|
Modifier and Type | Method and Description |
---|---|
static MatrixProcedure |
Matrices.asAccumulatorProcedure(MatrixAccumulator accumulator)
Creates an accumulator procedure that adapts a matrix accumulator for procedure
interface.
|
double |
Matrix.fold(MatrixAccumulator accumulator)
Folds all elements of this matrix with given
accumulator . |
Modifier and Type | Method and Description |
---|---|
double |
SparseMatrix.foldNonZero(MatrixAccumulator accumulator)
Folds non-zero elements of this matrix with given
accumulator . |
Copyright © 2015. All rights reserved.