java.lang.Object
org.ejml.equation.Operation
- Direct Known Subclasses:
Macro.Assign
public abstract class Operation
extends java.lang.Object
Performs math operations.
-
-
Constructor Summary
Constructors
Modifier |
Constructor |
Description |
protected |
Operation(java.lang.String name) |
|
-
Method Summary
Modifier and Type |
Method |
Description |
static 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 |
copy(Variable src,
Variable dst) |
|
static Operation |
copy(Variable src,
Variable dst,
java.util.List<Variable> range) |
|
static Operation.Info |
cos(Variable A,
ManagerTempVariables manager) |
|
static Operation.Info |
det(Variable A,
ManagerTempVariables manager) |
Matrix determinant
|
static 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(java.util.List<Variable> inputs,
ManagerTempVariables manager) |
|
static Operation.Info |
extractScalar(java.util.List<Variable> inputs,
ManagerTempVariables manager) |
|
static Operation.Info |
eye(Variable A,
ManagerTempVariables manager) |
Returns an identity matrix
|
static Operation.Info |
inv(Variable A,
ManagerTempVariables manager) |
Matrix inverse
|
static Operation.Info |
kron(Variable A,
Variable B,
ManagerTempVariables manager) |
Kronecker product
|
static Operation.Info |
log(Variable A,
ManagerTempVariables manager) |
|
static Operation.Info |
matrixConstructor(MatrixConstructor m) |
|
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) |
|
java.lang.String |
name() |
|
static Operation.Info |
neg(Variable A,
ManagerTempVariables manager) |
Returns the negative of the input variable
|
static 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 ones
|
static Operation.Info |
pinv(Variable A,
ManagerTempVariables manager) |
Matrix pseudo-inverse
|
static Operation.Info |
pow(Variable A,
Variable B,
ManagerTempVariables manager) |
|
abstract void |
process() |
|
static Operation.Info |
rand(Variable A,
Variable B,
ManagerTempVariables manager) |
Uniformly random numbers
|
static Operation.Info |
randn(Variable A,
Variable B,
ManagerTempVariables manager) |
Normal distrbution numbers
|
protected 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 generator
|
static 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
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
protected Operation(java.lang.String name)
-
Method Details
-
public abstract void process()
-
public java.lang.String name()
-
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 matrix
numRows
- Desired number of rows
numCols
- Desired number of columns
-
-
-
Returns the negative of the input variable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns an identity matrix
-
-
Returns a matrix full of zeros
-
Returns a matrix full of ones
-
Sets the seed for random number generator
-
-
Normal distrbution numbers
-
-
If input is two vectors then it returns the dot product as a double.
-
If input is two vectors then it returns the dot product as a double.
-
-
-
-
-