Package org.ejml.equation
Class Operation
java.lang.Object
org.ejml.equation.Operation
- Direct Known Subclasses:
Macro.Assign
Performs math operations.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Operation.Info
abs
(Variable A, ManagerTempVariables manager) static Operation.Info
add
(Variable A, Variable B, ManagerTempVariables manager) static Operation.Info
atan
(Variable A, ManagerTempVariables manager) static Operation.Info
atan2
(Variable A, Variable B, ManagerTempVariables manager) static Operation
static Operation
static Operation.Info
cos
(Variable A, ManagerTempVariables manager) static Operation.Info
det
(Variable A, ManagerTempVariables manager) Matrix determinantstatic Operation.Info
diag
(Variable A, ManagerTempVariables manager) static Operation.Info
divide
(Variable A, Variable B, ManagerTempVariables manager) static Operation.Info
dot
(Variable A, Variable B, ManagerTempVariables manager) If input is two vectors then it returns the dot product as a double.static Operation.Info
elementDivision
(Variable A, Variable B, ManagerTempVariables manager) static Operation.Info
elementMult
(Variable A, Variable B, ManagerTempVariables manager) static Operation.Info
elementPow
(Variable A, Variable B, ManagerTempVariables manager) static Operation.Info
exp
(Variable A, ManagerTempVariables manager) static Operation.Info
extract
(List<Variable> inputs, ManagerTempVariables manager) static Operation.Info
extractScalar
(List<Variable> inputs, ManagerTempVariables manager) static Operation.Info
eye
(Variable A, ManagerTempVariables manager) Returns an identity matrixstatic Operation.Info
inv
(Variable A, ManagerTempVariables manager) Matrix inversestatic Operation.Info
kron
(Variable A, Variable B, ManagerTempVariables manager) Kronecker productstatic Operation.Info
log
(Variable A, ManagerTempVariables manager) static Operation.Info
static Operation.Info
max
(Variable A, ManagerTempVariables manager) static Operation.Info
max_two
(Variable A, Variable P, ManagerTempVariables manager) static Operation.Info
min
(Variable A, ManagerTempVariables manager) static Operation.Info
min_two
(Variable A, Variable P, ManagerTempVariables manager) static Operation.Info
multiply
(Variable A, Variable B, ManagerTempVariables manager) name()
static Operation.Info
neg
(Variable A, ManagerTempVariables manager) Returns the negative of the input variablestatic Operation.Info
normF
(Variable A, ManagerTempVariables manager) static Operation.Info
normP
(Variable A, Variable P, ManagerTempVariables manager) static Operation.Info
ones
(Variable A, Variable B, ManagerTempVariables manager) Returns a matrix full of onesstatic Operation.Info
pinv
(Variable A, ManagerTempVariables manager) Matrix pseudo-inversestatic Operation.Info
pow
(Variable A, Variable B, ManagerTempVariables manager) abstract void
process()
static Operation.Info
rand
(Variable A, Variable B, ManagerTempVariables manager) Uniformly random numbersstatic Operation.Info
randn
(Variable A, Variable B, ManagerTempVariables manager) Normal distrbution numbersprotected void
resize
(VariableMatrix mat, int numRows, int numCols) If the variable is a local temporary variable it will be resized so that the operation can complete.static Operation.Info
rng
(Variable A, ManagerTempVariables manager) Sets the seed for random number generatorstatic Operation.Info
rref
(Variable A, ManagerTempVariables manager) static Operation.Info
sin
(Variable A, ManagerTempVariables manager) static Operation.Info
solve
(Variable A, Variable B, ManagerTempVariables manager) If input is two vectors then it returns the dot product as a double.static Operation.Info
sqrt
(Variable A, ManagerTempVariables manager) static Operation.Info
subtract
(Variable A, Variable B, ManagerTempVariables manager) static Operation.Info
sum_one
(Variable A, ManagerTempVariables manager) static Operation.Info
sum_two
(Variable A, Variable P, ManagerTempVariables manager) static Operation.Info
trace
(Variable A, ManagerTempVariables manager) static Operation.Info
transpose
(Variable A, ManagerTempVariables manager) static Operation.Info
zeros
(Variable A, Variable B, ManagerTempVariables manager) Returns a matrix full of zeros
-
Constructor Details
-
Operation
-
-
Method Details
-
process
public abstract void process() -
name
-
resize
If the variable is a local temporary variable it will be resized so that the operation can complete. If not temporary then it will not be reshaped- Parameters:
mat
- Variable containing the matrixnumRows
- Desired number of rowsnumCols
- Desired number of columns
-
multiply
-
divide
-
neg
Returns the negative of the input variable -
pow
-
atan2
-
sqrt
-
sin
-
cos
-
atan
-
exp
-
log
-
add
-
subtract
-
elementMult
-
elementDivision
-
elementPow
-
copy
-
copy
-
transpose
-
inv
Matrix inverse -
pinv
Matrix pseudo-inverse -
rref
-
det
Matrix determinant -
trace
-
normF
-
normP
-
max
-
max_two
-
min
-
min_two
-
abs
-
eye
Returns an identity matrix -
diag
-
zeros
Returns a matrix full of zeros -
ones
Returns a matrix full of ones -
rng
Sets the seed for random number generator -
rand
Uniformly random numbers -
randn
Normal distrbution numbers -
kron
Kronecker product -
dot
If input is two vectors then it returns the dot product as a double. -
solve
If input is two vectors then it returns the dot product as a double. -
extract
-
sum_one
-
sum_two
-
extractScalar
-
matrixConstructor
-