Package org.ejml.equation
Class Operation
java.lang.Object
org.ejml.equation.Operation
- Direct Known Subclasses:
Macro.Assign
Performs math operations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Operation.Infoabs(Variable A, ManagerTempVariables manager) static Operation.Infoadd(Variable A, Variable B, ManagerTempVariables manager) static Operation.Infoatan(Variable A, ManagerTempVariables manager) static Operation.Infoatan2(Variable A, Variable B, ManagerTempVariables manager) static Operationstatic Operationstatic Operation.Infocos(Variable A, ManagerTempVariables manager) static Operation.Infodet(Variable A, ManagerTempVariables manager) Matrix determinantstatic Operation.Infodiag(Variable A, ManagerTempVariables manager) static Operation.Infodivide(Variable A, Variable B, ManagerTempVariables manager) static Operation.Infodot(Variable A, Variable B, ManagerTempVariables manager) If input is two vectors then it returns the dot product as a double.static Operation.InfoelementDivision(Variable A, Variable B, ManagerTempVariables manager) static Operation.InfoelementMult(Variable A, Variable B, ManagerTempVariables manager) static Operation.InfoelementPow(Variable A, Variable B, ManagerTempVariables manager) static Operation.Infoexp(Variable A, ManagerTempVariables manager) static Operation.Infoextract(List<Variable> inputs, ManagerTempVariables manager) static Operation.InfoextractScalar(List<Variable> inputs, ManagerTempVariables manager) static Operation.Infoeye(Variable A, ManagerTempVariables manager) Returns an identity matrixstatic Operation.Infoinv(Variable A, ManagerTempVariables manager) Matrix inversestatic Operation.Infokron(Variable A, Variable B, ManagerTempVariables manager) Kronecker productstatic Operation.Infolog(Variable A, ManagerTempVariables manager) static Operation.Infostatic Operation.Infomax(Variable A, ManagerTempVariables manager) static Operation.Infomax_two(Variable A, Variable P, ManagerTempVariables manager) static Operation.Infomin(Variable A, ManagerTempVariables manager) static Operation.Infomin_two(Variable A, Variable P, ManagerTempVariables manager) static Operation.Infomultiply(Variable A, Variable B, ManagerTempVariables manager) name()static Operation.Infoneg(Variable A, ManagerTempVariables manager) Returns the negative of the input variablestatic Operation.InfonormF(Variable A, ManagerTempVariables manager) static Operation.InfonormP(Variable A, Variable P, ManagerTempVariables manager) static Operation.Infoones(Variable A, Variable B, ManagerTempVariables manager) Returns a matrix full of onesstatic Operation.Infopinv(Variable A, ManagerTempVariables manager) Matrix pseudo-inversestatic Operation.Infopow(Variable A, Variable B, ManagerTempVariables manager) abstract voidprocess()static Operation.Inforand(Variable A, Variable B, ManagerTempVariables manager) Uniformly random numbersstatic Operation.Inforandn(Variable A, Variable B, ManagerTempVariables manager) Normal distrbution numbersprotected voidresize(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.Inforng(Variable A, ManagerTempVariables manager) Sets the seed for random number generatorstatic Operation.Inforref(Variable A, ManagerTempVariables manager) static Operation.Infosin(Variable A, ManagerTempVariables manager) static Operation.Infosolve(Variable A, Variable B, ManagerTempVariables manager) If input is two vectors then it returns the dot product as a double.static Operation.Infosqrt(Variable A, ManagerTempVariables manager) static Operation.Infosubtract(Variable A, Variable B, ManagerTempVariables manager) static Operation.Infosum_one(Variable A, ManagerTempVariables manager) static Operation.Infosum_two(Variable A, Variable P, ManagerTempVariables manager) static Operation.Infotrace(Variable A, ManagerTempVariables manager) static Operation.Infotranspose(Variable A, ManagerTempVariables manager) static Operation.Infozeros(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
-