public class CommonOps_FDF5
extends java.lang.Object
Common matrix operations for fixed sized matrices which are 5 x 5 or 5 element vectors.
DO NOT MODIFY. Automatically generated code created by GenerateFixedOps
Constructor and Description |
---|
CommonOps_FDF5() |
Modifier and Type | Method and Description |
---|---|
static void |
add(org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5 b,
org.ejml.data.FMatrix5 c)
Performs the following operation:
c = a + b ci = ai + bi |
static void |
add(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = a + b cij = aij + bij |
static void |
addEquals(org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5 b)
Performs the following operation:
a = a + b ai = ai + bi |
static void |
addEquals(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b)
Performs the following operation:
a = a + b aij = aij + bij |
static void |
changeSign(org.ejml.data.FMatrix5 a)
Changes the sign of every element in the vector.
ai = -ai |
static void |
changeSign(org.ejml.data.FMatrix5x5 a)
Changes the sign of every element in the matrix.
aij = -aij |
static float |
det(org.ejml.data.FMatrix5x5 mat)
Computes the determinant using minor matrices.
WARNING: Potentially less stable than using LU decomposition. |
static void |
diag(org.ejml.data.FMatrix5x5 input,
org.ejml.data.FMatrix5 out)
Extracts all diagonal elements from 'input' and places them inside the 'out' vector.
|
static void |
divide(org.ejml.data.FMatrix5 a,
float alpha)
Performs an in-place element by element scalar division.
|
static void |
divide(org.ejml.data.FMatrix5 a,
float alpha,
org.ejml.data.FMatrix5 b)
Performs an element by element scalar division.
|
static void |
divide(org.ejml.data.FMatrix5x5 a,
float alpha)
Performs an in-place element by element scalar division.
|
static void |
divide(org.ejml.data.FMatrix5x5 a,
float alpha,
org.ejml.data.FMatrix5x5 b)
Performs an element by element scalar division.
|
static float |
dot(org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5 b)
Performs the vector dot product:
c = a * b c ≥ ∑k=1:n { bk * ak } |
static void |
elementDiv(org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5 b)
Performs an element by element division operation:
ai = ai / bi |
static void |
elementDiv(org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5 b,
org.ejml.data.FMatrix5 c)
Performs an element by element division operation:
ci = ai / bi |
static void |
elementDiv(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b)
Performs an element by element division operation:
aij = aij / bij |
static void |
elementDiv(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs an element by element division operation:
cij = aij / bij |
static float |
elementMax(org.ejml.data.FMatrix5 a)
Returns the value of the element in the vector that has the largest value.
Max{ ai } for all i |
static float |
elementMax(org.ejml.data.FMatrix5x5 a)
Returns the value of the element in the matrix that has the largest value.
Max{ aij } for all i and j |
static float |
elementMaxAbs(org.ejml.data.FMatrix5 a)
Returns the absolute value of the element in the vector that has the largest absolute value.
Max{ |ai| } for all i |
static float |
elementMaxAbs(org.ejml.data.FMatrix5x5 a)
Returns the absolute value of the element in the matrix that has the largest absolute value.
Max{ |aij| } for all i and j |
static float |
elementMin(org.ejml.data.FMatrix5 a)
Returns the value of the element in the vector that has the minimum value.
Min{ ai } for all |
static float |
elementMin(org.ejml.data.FMatrix5x5 a)
Returns the value of the element in the matrix that has the minimum value.
Min{ aij } for all i and j |
static float |
elementMinAbs(org.ejml.data.FMatrix5 a)
Returns the absolute value of the element in the vector that has the smallest absolute value.
Min{ |ai| } for all i |
static float |
elementMinAbs(org.ejml.data.FMatrix5x5 a)
Returns the absolute value of the element in the matrix that has the smallest absolute value.
Min{ |aij| } for all i and j |
static void |
elementMult(org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5 b)
Performs an element by element multiplication operation:
ai = ai * bi |
static void |
elementMult(org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5 b,
org.ejml.data.FMatrix5 c)
Performs an element by element multiplication operation:
ci = ai * bj |
static void |
elementMult(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b)
Performs an element by element multiplication operation:
aij = aij * bij |
static void |
elementMult(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs an element by element multiplication operation:
cij = aij * bij |
static org.ejml.data.FMatrix5 |
extractColumn(org.ejml.data.FMatrix5x5 a,
int column,
org.ejml.data.FMatrix5 out)
Extracts the column from the matrix a.
|
static org.ejml.data.FMatrix5 |
extractRow(org.ejml.data.FMatrix5x5 a,
int row,
org.ejml.data.FMatrix5 out)
Extracts the row from the matrix a.
|
static void |
fill(org.ejml.data.FMatrix5 a,
float v)
Sets every element in the vector to the specified value.
ai = value |
static void |
fill(org.ejml.data.FMatrix5x5 a,
float v)
Sets every element in the matrix to the specified value.
aij = value |
static boolean |
invert(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 inv)
Inverts matrix 'a' using minor matrices and stores the results in 'inv'.
|
static void |
mult(float alpha,
org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = α * a * b cij = α ∑k=1:n { aik * bkj} |
static void |
mult(org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5 c)
Performs vector to matrix multiplication:
c = a * b cj = ∑k=1:n { bk * akj } |
static void |
mult(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5 b,
org.ejml.data.FMatrix5 c)
Performs matrix to vector multiplication:
c = a * b ci = ∑k=1:n { aik * bk} |
static void |
mult(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = a * b cij = ∑k=1:n { aik * bkj} |
static void |
multAdd(float alpha,
org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += α * a * b cij += α ∑k=1:n { aik * bkj} |
static void |
multAdd(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += a * b cij += ∑k=1:n { aik * bkj} |
static void |
multAddTransA(float alpha,
org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += α * aT * b cij += α * ∑k=1:n { aki * bkj} |
static void |
multAddTransA(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += aT * b cij += ∑k=1:n { aki * bkj} |
static void |
multAddTransAB(float alpha,
org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += α*aT * bT cij += α*∑k=1:n { aki * bjk} |
static void |
multAddTransAB(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += aT * bT cij += ∑k=1:n { aki * bjk} |
static void |
multAddTransB(float alpha,
org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += α * a * bT cij += α*∑k=1:n { aik * bjk} |
static void |
multAddTransB(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += a * bT cij += ∑k=1:n { aik * bjk} |
static void |
multTransA(float alpha,
org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = α * aT * b cij = α * ∑k=1:n { aki * bkj} |
static void |
multTransA(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = aT * b cij = ∑k=1:n { aki * bkj} |
static void |
multTransAB(float alpha,
org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = α*aT * bT cij = α*∑k=1:n { aki * bjk} |
static void |
multTransAB(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = aT * bT cij = ∑k=1:n { aki * bjk} |
static void |
multTransB(float alpha,
org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = α * a * bT cij = α*∑k=1:n { aik * bjk} |
static void |
multTransB(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = a * bT cij = ∑k=1:n { aik * bjk} |
static void |
scale(float alpha,
org.ejml.data.FMatrix5 a)
Performs an in-place element by element scalar multiplication.
aij = α*aij |
static void |
scale(float alpha,
org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5 b)
Performs an element by element scalar multiplication.
bi = α*ai |
static void |
scale(float alpha,
org.ejml.data.FMatrix5x5 a)
Performs an in-place element by element scalar multiplication.
aij = α*aij |
static void |
scale(float alpha,
org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b)
Performs an element by element scalar multiplication.
bij = α*aij |
static void |
setIdentity(org.ejml.data.FMatrix5x5 a)
Sets all the diagonal elements equal to one and everything else equal to zero.
|
static void |
subtract(org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5 b,
org.ejml.data.FMatrix5 c)
Performs the following operation:
c = a - b ci = ai - bi |
static void |
subtract(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b,
org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = a - b cij = aij - bij |
static void |
subtractEquals(org.ejml.data.FMatrix5 a,
org.ejml.data.FMatrix5 b)
Performs the following operation:
a = a - b ai = ai - bi |
static void |
subtractEquals(org.ejml.data.FMatrix5x5 a,
org.ejml.data.FMatrix5x5 b)
Performs the following operation:
a = a - b aij = aij - bij |
static float |
trace(org.ejml.data.FMatrix5x5 a)
This computes the trace of the matrix:
trace = ∑i=1:n { aii } |
static void |
transpose(org.ejml.data.FMatrix5x5 m)
Performs an in-place transpose.
|
static org.ejml.data.FMatrix5x5 |
transpose(org.ejml.data.FMatrix5x5 input,
org.ejml.data.FMatrix5x5 output)
Transposes matrix 'a' and stores the results in 'b':
bij = aji where 'b' is the transpose of 'a'. |
public static void add(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = a + b
cij = aij + bij
Matrix C can be the same instance as Matrix A and/or B.
a
- A Matrix. Not modified.b
- A Matrix. Not modified.c
- A Matrix where the results are stored. Modified.public static void add(org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5 b, org.ejml.data.FMatrix5 c)
Performs the following operation:
c = a + b
ci = ai + bi
Vector C can be the same instance as Vector A and/or B.
a
- A Vector. Not modified.b
- A Vector. Not modified.c
- A Vector where the results are stored. Modified.public static void addEquals(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b)
Performs the following operation:
a = a + b
aij = aij + bij
a
- A Matrix. Modified.b
- A Matrix. Not modified.public static void addEquals(org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5 b)
Performs the following operation:
a = a + b
ai = ai + bi
a
- A Vector. Modified.b
- A Vector. Not modified.public static void subtract(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = a - b
cij = aij - bij
Matrix C can be the same instance as Matrix A and/or B.
a
- A Matrix. Not modified.b
- A Matrix. Not modified.c
- A Matrix where the results are stored. Modified.public static void subtract(org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5 b, org.ejml.data.FMatrix5 c)
Performs the following operation:
c = a - b
ci = ai - bi
Vector C can be the same instance as Vector A and/or B.
a
- A Vector. Not modified.b
- A Vector. Not modified.c
- A Vector where the results are stored. Modified.public static void subtractEquals(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b)
Performs the following operation:
a = a - b
aij = aij - bij
a
- A Matrix. Modified.b
- A Matrix. Not modified.public static void subtractEquals(org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5 b)
Performs the following operation:
a = a - b
ai = ai - bi
a
- A Vector. Modified.b
- A Vector. Not modified.public static void transpose(org.ejml.data.FMatrix5x5 m)
m
- The matrix that is to be transposed. Modified.public static org.ejml.data.FMatrix5x5 transpose(org.ejml.data.FMatrix5x5 input, org.ejml.data.FMatrix5x5 output)
Transposes matrix 'a' and stores the results in 'b':
bij = aji
where 'b' is the transpose of 'a'.
input
- The original matrix. Not modified.output
- Where the transpose is stored. If null a new matrix is created. Modified.public static void mult(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = a * b
cij = ∑k=1:n { aik * bkj}
a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void mult(float alpha, org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = α * a * b
cij = α ∑k=1:n { aik * bkj}
alpha
- Scaling factor.a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multTransA(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = aT * b
cij = ∑k=1:n { aki * bkj}
a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multTransA(float alpha, org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = α * aT * b
cij = α * ∑k=1:n { aki * bkj}
alpha
- Scaling factor.a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multTransAB(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = aT * bT
cij = ∑k=1:n { aki * bjk}
a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multTransAB(float alpha, org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = α*aT * bT
cij = α*∑k=1:n { aki * bjk}
alpha
- Scaling factor.a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multTransB(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = a * bT
cij = ∑k=1:n { aik * bjk}
a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multTransB(float alpha, org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c = α * a * bT
cij = α*∑k=1:n { aik * bjk}
alpha
- Scaling factor.a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multAdd(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += a * b
cij += ∑k=1:n { aik * bkj}
a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multAdd(float alpha, org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += α * a * b
cij += α ∑k=1:n { aik * bkj}
alpha
- Scaling factor.a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multAddTransA(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += aT * b
cij += ∑k=1:n { aki * bkj}
a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multAddTransA(float alpha, org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += α * aT * b
cij += α * ∑k=1:n { aki * bkj}
alpha
- Scaling factor.a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multAddTransAB(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += aT * bT
cij += ∑k=1:n { aki * bjk}
a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multAddTransAB(float alpha, org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += α*aT * bT
cij += α*∑k=1:n { aki * bjk}
alpha
- Scaling factor.a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multAddTransB(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += a * bT
cij += ∑k=1:n { aik * bjk}
a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void multAddTransB(float alpha, org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs the following operation:
c += α * a * bT
cij += α*∑k=1:n { aik * bjk}
alpha
- Scaling factor.a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void mult(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5 b, org.ejml.data.FMatrix5 c)
Performs matrix to vector multiplication:
c = a * b
ci = ∑k=1:n { aik * bk}
a
- The left matrix in the multiplication operation. Not modified.b
- The right vector in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void mult(org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5 c)
Performs vector to matrix multiplication:
c = a * b
cj = ∑k=1:n { bk * akj }
a
- The left vector in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static float dot(org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5 b)
Performs the vector dot product:
c = a * b
c ≥ ∑k=1:n { bk * ak }
a
- The left vector in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.public static void setIdentity(org.ejml.data.FMatrix5x5 a)
a
- A matrix.public static boolean invert(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 inv)
a
- Input matrix. Not modified.inv
- Inverted output matrix. Modified.public static float det(org.ejml.data.FMatrix5x5 mat)
mat
- Input matrix. Not modified.public static float trace(org.ejml.data.FMatrix5x5 a)
This computes the trace of the matrix:
trace = ∑i=1:n { aii }
The trace is only defined for square matrices.
a
- A square matrix. Not modified.public static void diag(org.ejml.data.FMatrix5x5 input, org.ejml.data.FMatrix5 out)
Extracts all diagonal elements from 'input' and places them inside the 'out' vector. Elements are in sequential order.
input
- Matrix. Not modified.out
- Vector containing diagonal elements. Modified.public static float elementMax(org.ejml.data.FMatrix5x5 a)
Returns the value of the element in the matrix that has the largest value.
Max{ aij } for all i and j
a
- A matrix. Not modified.public static float elementMax(org.ejml.data.FMatrix5 a)
Returns the value of the element in the vector that has the largest value.
Max{ ai } for all i
a
- A vector. Not modified.public static float elementMaxAbs(org.ejml.data.FMatrix5x5 a)
Returns the absolute value of the element in the matrix that has the largest absolute value.
Max{ |aij| } for all i and j
a
- A matrix. Not modified.public static float elementMaxAbs(org.ejml.data.FMatrix5 a)
Returns the absolute value of the element in the vector that has the largest absolute value.
Max{ |ai| } for all i
a
- A matrix. Not modified.public static float elementMin(org.ejml.data.FMatrix5x5 a)
Returns the value of the element in the matrix that has the minimum value.
Min{ aij } for all i and j
a
- A matrix. Not modified.public static float elementMin(org.ejml.data.FMatrix5 a)
Returns the value of the element in the vector that has the minimum value.
Min{ ai } for all
a
- A matrix. Not modified.public static float elementMinAbs(org.ejml.data.FMatrix5x5 a)
Returns the absolute value of the element in the matrix that has the smallest absolute value.
Min{ |aij| } for all i and j
a
- A matrix. Not modified.public static float elementMinAbs(org.ejml.data.FMatrix5 a)
Returns the absolute value of the element in the vector that has the smallest absolute value.
Min{ |ai| } for all i
a
- A matrix. Not modified.public static void elementMult(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b)
Performs an element by element multiplication operation:
aij = aij * bij
a
- The left matrix in the multiplication operation. Modified.b
- The right matrix in the multiplication operation. Not modified.public static void elementMult(org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5 b)
Performs an element by element multiplication operation:
ai = ai * bi
a
- The left vector in the multiplication operation. Modified.b
- The right vector in the multiplication operation. Not modified.public static void elementMult(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs an element by element multiplication operation:
cij = aij * bij
a
- The left matrix in the multiplication operation. Not modified.b
- The right matrix in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void elementMult(org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5 b, org.ejml.data.FMatrix5 c)
Performs an element by element multiplication operation:
ci = ai * bj
a
- The left vector in the multiplication operation. Not modified.b
- The right vector in the multiplication operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void elementDiv(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b)
Performs an element by element division operation:
aij = aij / bij
a
- The left matrix in the division operation. Modified.b
- The right matrix in the division operation. Not modified.public static void elementDiv(org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5 b)
Performs an element by element division operation:
ai = ai / bi
a
- The left vector in the division operation. Modified.b
- The right vector in the division operation. Not modified.public static void elementDiv(org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b, org.ejml.data.FMatrix5x5 c)
Performs an element by element division operation:
cij = aij / bij
a
- The left matrix in the division operation. Not modified.b
- The right matrix in the division operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void elementDiv(org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5 b, org.ejml.data.FMatrix5 c)
Performs an element by element division operation:
ci = ai / bi
a
- The left vector in the division operation. Not modified.b
- The right vector in the division operation. Not modified.c
- Where the results of the operation are stored. Modified.public static void scale(float alpha, org.ejml.data.FMatrix5x5 a)
Performs an in-place element by element scalar multiplication.
aij = α*aij
a
- The matrix that is to be scaled. Modified.alpha
- the amount each element is multiplied by.public static void scale(float alpha, org.ejml.data.FMatrix5 a)
Performs an in-place element by element scalar multiplication.
aij = α*aij
a
- The vector that is to be scaled. Modified.alpha
- the amount each element is multiplied by.public static void scale(float alpha, org.ejml.data.FMatrix5x5 a, org.ejml.data.FMatrix5x5 b)
Performs an element by element scalar multiplication.
bij = α*aij
alpha
- the amount each element is multiplied by.a
- The matrix that is to be scaled. Not modified.b
- Where the scaled matrix is stored. Modified.public static void scale(float alpha, org.ejml.data.FMatrix5 a, org.ejml.data.FMatrix5 b)
Performs an element by element scalar multiplication.
bi = α*ai
alpha
- the amount each element is multiplied by.a
- The vector that is to be scaled. Not modified.b
- Where the scaled matrix is stored. Modified.public static void divide(org.ejml.data.FMatrix5x5 a, float alpha)
Performs an in-place element by element scalar division. Scalar denominator.
aij = aij/α
a
- The matrix whose elements are to be divided. Modified.alpha
- the amount each element is divided by.public static void divide(org.ejml.data.FMatrix5 a, float alpha)
Performs an in-place element by element scalar division. Scalar denominator.
ai = ai/α
a
- The vector whose elements are to be divided. Modified.alpha
- the amount each element is divided by.public static void divide(org.ejml.data.FMatrix5x5 a, float alpha, org.ejml.data.FMatrix5x5 b)
Performs an element by element scalar division. Scalar denominator.
bij = aij /α
alpha
- the amount each element is divided by.a
- The matrix whose elements are to be divided. Not modified.b
- Where the results are stored. Modified.public static void divide(org.ejml.data.FMatrix5 a, float alpha, org.ejml.data.FMatrix5 b)
Performs an element by element scalar division. Scalar denominator.
bi = ai /α
alpha
- the amount each element is divided by.a
- The vector whose elements are to be divided. Not modified.b
- Where the results are stored. Modified.public static void changeSign(org.ejml.data.FMatrix5x5 a)
Changes the sign of every element in the matrix.
aij = -aij
a
- A matrix. Modified.public static void changeSign(org.ejml.data.FMatrix5 a)
Changes the sign of every element in the vector.
ai = -ai
a
- A vector. Modified.public static void fill(org.ejml.data.FMatrix5x5 a, float v)
Sets every element in the matrix to the specified value.
aij = value
a
- A matrix whose elements are about to be set. Modified.v
- The value each element will have.public static void fill(org.ejml.data.FMatrix5 a, float v)
Sets every element in the vector to the specified value.
ai = value
a
- A vector whose elements are about to be set. Modified.v
- The value each element will have.public static org.ejml.data.FMatrix5 extractRow(org.ejml.data.FMatrix5x5 a, int row, org.ejml.data.FMatrix5 out)
a
- Input matrixrow
- Which row is to be extractedout
- output. Storage for the extracted row. If null then a new vector will be returned.public static org.ejml.data.FMatrix5 extractColumn(org.ejml.data.FMatrix5x5 a, int column, org.ejml.data.FMatrix5 out)
a
- Input matrixcolumn
- Which column is to be extractedout
- output. Storage for the extracted column. If null then a new vector will be returned.