package gdsc.smlm.function;
import org.apache.commons.math3.analysis.MultivariateMatrixFunction;
/*-----------------------------------------------------------------------------
* GDSC SMLM Software
*
* Copyright (C) 2013 Alex Herbert
* Genome Damage and Stability Centre
* University of Sussex, UK
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*---------------------------------------------------------------------------*/
/**
* Wrap the NonLinearFunction to allow use with the Apache Commons Math library
*/
public class MultivariateMatrixFunctionWrapper extends NonLinearFunctionWrapper implements MultivariateMatrixFunction
{
public MultivariateMatrixFunctionWrapper(NonLinearFunction fun, double[] a, int n)
{
super(fun, a, n);
}
/*
* (non-Javadoc)
*
* @see org.apache.commons.math3.analysis.MultivariateMatrixFunction#value(double[])
*/
public double[][] value(double[] point) throws IllegalArgumentException
{
return computeJacobian(point);
}
}