Package org.ejml.equation
Class ManagerFunctions
- java.lang.Object
-
- org.ejml.equation.ManagerFunctions
-
public class ManagerFunctions extends java.lang.ObjectCentralized place to create new instances of operations and functions. Must callsetManagerTemp(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
All Methods Instance Methods Concrete Methods 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 Detail
-
managerTemp
protected ManagerTempVariables managerTemp
-
-
Method Detail
-
isFunctionName
public boolean isFunctionName(java.lang.String s)
Returns true if the string matches the name of a function
-
create
public Operation.Info create(java.lang.String name, Variable var0)
Create a new instance of single input functions- Parameters:
name- function namevar0- Input variable- Returns:
- Resulting operation
-
create
public Operation.Info create(java.lang.String name, java.util.List<Variable> vars)
Create a new instance of single input functions- Parameters:
name- function namevars- Input variables- Returns:
- Resulting operation
-
create
public Operation.Info create(char op, Variable input)
Create a new instance of a single input function from an operator character- Parameters:
op- Which operationinput- Input variable- Returns:
- Resulting operation
-
create
public Operation.Info create(Symbol op, Variable left, Variable right)
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
public void setManagerTemp(ManagerTempVariables managerTemp)
- Parameters:
managerTemp-
-
add1
public void add1(java.lang.String name, ManagerFunctions.Input1 function)Adds a function, with a single input, to the list- Parameters:
name- Name of functionfunction- Function factory
-
addN
public void addN(java.lang.String name, ManagerFunctions.InputN function)Adds a function, with a two inputs, to the list- Parameters:
name- Name of functionfunction- Function factory
-
getManagerTemp
public ManagerTempVariables getManagerTemp()
-
-