Ejemplo n.º 1
0
 public SparseFunction(Function innerFunction, SparseFunctionGradient gradient, SparseFunctionHessian hessian)
 {
     this.innerFunction = innerFunction;
     if (gradient != null)
     {
         this.gradient = gradient.Clone();
     }
     if (hessian != null)
     {
         this.hessian = hessian.Clone();
     }
 }
Ejemplo n.º 2
0
 public SparseFunctionDerivative(Function innerFunction, Variable firstVariable, SparseFunctionGradient gradient, SparseFunctionHessian hessian)
 {
     this.innerFunction = innerFunction;
     this.firstVariable = firstVariable;
     this.gradient = gradient;
     this.hessian = hessian;
 }
Ejemplo n.º 3
0
 public SparseFunction(Function innerFunction, SparseFunctionGradient gradient)
     : this(innerFunction, gradient, null)
 {
 }