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