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 interfaceManagerFunctions.Input1Creates new instances of functions from a single variablestatic interfaceManagerFunctions.InputNCreates a new instance of functions from two variables -
Field Summary
Fields Modifier and Type Field Description protected ManagerTempVariablesmanagerTemp -
Constructor Summary
Constructors Constructor Description ManagerFunctions() -
Method Summary
Modifier and Type Method Description voidadd1(java.lang.String name, ManagerFunctions.Input1 function)Adds a function, with a single input, to the listvoidaddN(java.lang.String name, ManagerFunctions.InputN function)Adds a function, with a two inputs, to the listOperation.Infocreate(char op, Variable input)Create a new instance of a single input function from an operator characterOperation.Infocreate(java.lang.String name, java.util.List<Variable> vars)Create a new instance of single input functionsOperation.Infocreate(java.lang.String name, Variable var0)Create a new instance of single input functionsOperation.Infocreate(Symbol op, Variable left, Variable right)Create a new instance of a two input function from an operator characterManagerTempVariablesgetManagerTemp()booleanisFunctionName(java.lang.String s)Returns true if the string matches the name of a functionvoidsetManagerTemp(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
-