Package | Description |
---|---|
org.la4j | |
org.la4j.matrix.sparse |
Modifier and Type | Field and Description |
---|---|
static MatrixFunction |
Matrices.DEC_FUNCTION
Decreases each element of matrix by
1 . |
static MatrixFunction |
Matrices.INC_FUNCTION
Increases each element of matrix by
1 . |
static MatrixFunction |
Matrices.INV_FUNCTION
Inverts each element of matrix.
|
Modifier and Type | Method and Description |
---|---|
static MatrixFunction |
Matrices.asConstFunction(double arg)
Creates a const function that evaluates it's argument to given
value . |
static MatrixFunction |
Matrices.asDivFunction(double arg)
Creates a div function that divides it's argument by given
value . |
static MatrixFunction |
Matrices.asMinusFunction(double arg)
Creates a minus function that subtracts given
value from it's argument. |
static MatrixFunction |
Matrices.asModFunction(double arg)
Creates a mod function that calculates the modulus of it's argument and given
value . |
static MatrixFunction |
Matrices.asMulFunction(double arg)
Creates a mul function that multiplies given
value by it's argument. |
static MatrixFunction |
Matrices.asPlusFunction(double arg)
Creates a plus function that adds given
value to it's argument. |
Modifier and Type | Method and Description |
---|---|
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.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. |
Matrix |
Matrix.transform(MatrixFunction function)
Builds a new matrix by applying given
function to each element of this matrix. |
void |
Matrix.update(MatrixFunction function)
Updates all elements of this matrix by applying given
function . |
void |
Matrix.updateAt(int i,
int j,
MatrixFunction function)
Updates the specified element of this matrix by applying given
function . |
Modifier and Type | Method and Description |
---|---|
void |
CRSMatrix.updateAt(int i,
int j,
MatrixFunction function) |
void |
CCSMatrix.updateAt(int i,
int j,
MatrixFunction function) |
Copyright © 2015. All rights reserved.