コード例 #1
0
def findRoots(*args):
  """
    findRoots(PyObject * startVals, int iter) -> PyObject *

    Performs unconstrained root finding for up to iter iterations Return
    values is a tuple indicating: (0,x,n) : convergence reached in x

    (1,x,n) : convergence reached in f

    (2,x,n) : divergence

    (3,x,n) : degeneration of gradient (local extremum or saddle point)

    (4,x,n) : maximum iterations reached

    (5,x,n) : numerical error occurred where x is the final point and n is
    the number of iterations used 
    """
  return _rootfind.findRoots(*args)
コード例 #2
0
ファイル: rootfind.py プロジェクト: arocchi/Klampt
def findRoots(*args):
  """
    findRoots(PyObject * startVals, int iter) -> PyObject *

    Performs unconstrained root finding for up to iter iterations Return
    values is a tuple indicating: (0,x,n) : convergence reached in x

    (1,x,n) : convergence reached in f

    (2,x,n) : divergence

    (3,x,n) : degeneration of gradient (local extremum or saddle point)

    (4,x,n) : maximum iterations reached

    (5,x,n) : numerical error occurred where x is the final point and n is
    the number of iterations used 
    """
  return _rootfind.findRoots(*args)
コード例 #3
0
ファイル: rootfind.py プロジェクト: xyyeh/Klampt
def findRoots(startVals, iter):
    """
    findRoots(PyObject * startVals, int iter) -> PyObject *



    Performs unconstrained root finding for up to iter iterations  

    Returns:  

        status,x,n (tuple of int, list of floats, int): where status indicates
            the return code, as follows:

                - 0: convergence reached in x
                - 1: convergence reached in f
                - 2: divergence
                - 3: degeneration of gradient (local extremum or saddle point)
                - 4: maximum iterations reached
                - 5: numerical error occurred

            and x is the final point and n is the number of iterations used  

    """
    return _rootfind.findRoots(startVals, iter)
コード例 #4
0
ファイル: rootfind.py プロジェクト: krishauser/Klampt
def findRoots(startVals, iter):
    """
    Performs unconstrained root finding for up to iter iterations  

    Args:
        startVals (:obj:`object`)
        iter (int)

    Returns:  

        status,x,n (tuple of int, list of floats, int): where status indicates
            the return code, as follows:

                - 0: convergence reached in x
                - 1: convergence reached in f
                - 2: divergence
                - 3: degeneration of gradient (local extremum or saddle point)
                - 4: maximum iterations reached
                - 5: numerical error occurred

            and x is the final point and n is the number of iterations used  

    """
    return _rootfind.findRoots(startVals, iter)
コード例 #5
0
ファイル: rootfind.py プロジェクト: RGrant92/Klampt
def findRoots(*args):
  return _rootfind.findRoots(*args)