Package org.ejml.equation
Class ManagerFunctions
java.lang.Object
org.ejml.equation.ManagerFunctions
public class ManagerFunctions
extends java.lang.Object
Centralized place to create new instances of operations and functions. Must call
setManagerTemp(org.ejml.equation.ManagerTempVariables)
before any other functions.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ManagerFunctions.Input1
Creates new instances of functions from a single variablestatic interface
ManagerFunctions.InputN
Creates a new instance of functions from two variables -
Field Summary
Fields Modifier and Type Field Description protected ManagerTempVariables
managerTemp
-
Constructor Summary
Constructors Constructor Description ManagerFunctions()
-
Method Summary
Modifier and Type Method Description void
add1(java.lang.String name, ManagerFunctions.Input1 function)
Adds a function, with a single input, to the listvoid
addN(java.lang.String name, ManagerFunctions.InputN function)
Adds a function, with a two inputs, to the listOperation.Info
create(char op, Variable input)
Create a new instance of a single input function from an operator characterOperation.Info
create(java.lang.String name, java.util.List<Variable> vars)
Create a new instance of single input functionsOperation.Info
create(java.lang.String name, Variable var0)
Create a new instance of single input functionsOperation.Info
create(Symbol op, Variable left, Variable right)
Create a new instance of a two input function from an operator characterManagerTempVariables
getManagerTemp()
boolean
isFunctionName(java.lang.String s)
Returns true if the string matches the name of a functionvoid
setManagerTemp(ManagerTempVariables managerTemp)
-
Field Details
-
Constructor Details
-
ManagerFunctions
public ManagerFunctions()
-
-
Method Details
-
isFunctionName
public boolean isFunctionName(java.lang.String s)Returns true if the string matches the name of a function -
create
Create a new instance of single input functions- Parameters:
name
- function namevar0
- Input variable- Returns:
- Resulting operation
-
create
Create a new instance of single input functions- Parameters:
name
- function namevars
- Input variables- Returns:
- Resulting operation
-
create
Create a new instance of a single input function from an operator character- Parameters:
op
- Which operationinput
- Input variable- Returns:
- Resulting operation
-
create
Create a new instance of a two input function from an operator character- Parameters:
op
- Which operationleft
- Input variable on leftright
- Input variable on right- Returns:
- Resulting operation
-
setManagerTemp
-
add1
Adds a function, with a single input, to the list- Parameters:
name
- Name of functionfunction
- Function factory
-
addN
Adds a function, with a two inputs, to the list- Parameters:
name
- Name of functionfunction
- Function factory
-
getManagerTemp
-