Class ManagerFunctions

java.lang.Object
org.ejml.equation.ManagerFunctions

public class ManagerFunctions extends Object
Centralized place to create new instances of operations and functions. Must call setManagerTemp(org.ejml.equation.ManagerTempVariables) before any other functions.
  • Field Details

  • Constructor Details

    • ManagerFunctions

      public ManagerFunctions()
  • Method Details

    • isFunctionName

      public boolean isFunctionName(String s)
      Returns true if the string matches the name of a function
    • create

      @Nullable public Operation.Info create(String name, Variable var0)
      Create a new instance of single input functions
      Parameters:
      name - function name
      var0 - Input variable
      Returns:
      Resulting operation
    • create

      @Nullable public Operation.Info create(String name, List<Variable> vars)
      Create a new instance of single input functions
      Parameters:
      name - function name
      vars - 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 operation
      input - 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 operation
      left - Input variable on left
      right - Input variable on right
      Returns:
      Resulting operation
    • setManagerTemp

      public void setManagerTemp(ManagerTempVariables managerTemp)
    • add1

      public void add1(String name, ManagerFunctions.Input1 function)
      Adds a function, with a single input, to the list
      Parameters:
      name - Name of function
      function - Function factory
    • addN

      public void addN(String name, ManagerFunctions.InputN function)
      Adds a function, with a two inputs, to the list
      Parameters:
      name - Name of function
      function - Function factory
    • getManagerTemp

      public ManagerTempVariables getManagerTemp()