SDEint.py
def availableSolvers(problem=None,solverType=None,d=1,m=1):
    '''Method for returning list of available solvers.

    If problem given, it available solvers based on problem.equationType and
    problem.m and problem.d. If problem not given, uses solverType string to
    return available solvers.'''
    if problem is None and solverType is None:
        raise ValueError('Either problem or solverType needs to be an argument')
    wholeItoList = ["itoEM", "itoTheta","itoBackwardsEuler",
    "itoPlaten","itoMilstein11","itoMilsteinD1"]
    ito11List = ["itoEM", "itoTheta","itoBackwardsEuler",
    "itoPlaten","itoMilstein11"]
    itoD1List = ["itoEM", "itoTheta","itoBackwardsEuler",
    "itoPlaten","itoMilsteinD1"]
    itoDMList = ["itoEM", "itoTheta","itoBackwardsEuler"]

    wholeStratList, wholeComList = [],[]
    if problem is not None:
        if problem.equationType == 'Ito':
            if problem.m == 1 and problem.d == 1:
                if problem.g1 != None:
                    return ito11List
                else:
                    return ito11List[0:-1]
            elif problem.m == 1 and problem.d> 1:
                if problem.g1 != None:
                    return itoD1List
                else:
                    return itoD1List[0:-1]
            elif problem.m > 1:
                return itoDMList
            else:
                raise NotImplementedError("Something horrible has happened.")
        elif problem.equationType == 'Stratonovich':
            return stratTup
    else:
        if solverType == 'osIto':
            if d == 1 and m == 1:
                return ito11List
            elif m == 1:
                return itoD1List
            elif d > 1 and m > 1:
                return itoDMList
            else:
                raise NotImplementedError("Something horrible has happened")
        elif solverType == 'osStrat':
            return wholeStratList
        elif solverType == 'comSolver':
            return wholeComList
Method for returning list of available solvers.

    If problem given, it available solvers based on problem.equationType and
    problem.m and problem.d. If problem not given, uses solverType string to
    return available solvers.
Method for returning list of available solvers.
Method for returning list of available solvers .
def availableSolvers(problem=None,solverType=None,d=1,m=1):
    if problem is None and solverType is None:
        raise ValueError('Either problem or solverType needs to be an argument')
    wholeItoList = ["itoEM", "itoTheta","itoBackwardsEuler",
    "itoPlaten","itoMilstein11","itoMilsteinD1"]
    ito11List = ["itoEM", "itoTheta","itoBackwardsEuler",
    "itoPlaten","itoMilstein11"]
    itoD1List = ["itoEM", "itoTheta","itoBackwardsEuler",
    "itoPlaten","itoMilsteinD1"]
    itoDMList = ["itoEM", "itoTheta","itoBackwardsEuler"]
    wholeStratList, wholeComList = [],[]
    if problem is not None:
        if problem.equationType == 'Ito':
            if problem.m == 1 and problem.d == 1:
                if problem.g1 != None:
                    return ito11List
                else:
                    return ito11List[0:-1]
            elif problem.m == 1 and problem.d> 1:
                if problem.g1 != None:
                    return itoD1List
                else:
                    return itoD1List[0:-1]
            elif problem.m > 1:
                return itoDMList
            else:
                raise NotImplementedError("Something horrible has happened.")
        elif problem.equationType == 'Stratonovich':
            return stratTup
    else:
        if solverType == 'osIto':
            if d == 1 and m == 1:
                return ito11List
            elif m == 1:
                return itoD1List
            elif d > 1 and m > 1:
                return itoDMList
            else:
                raise NotImplementedError("Something horrible has happened")
        elif solverType == 'osStrat':
            return wholeStratList
        elif solverType == 'comSolver':
            return wholeComList
def availableSolvers ( problem = None , solverType = None , d = 1 , m = 1 ) : if problem is None and solverType is None : raise ValueError ( 'Either problem or solverType needs to be an argument' ) wholeItoList = [ "itoEM" , "itoTheta" , "itoBackwardsEuler" , "itoPlaten" , "itoMilstein11" , "itoMilsteinD1" ] ito11List = [ "itoEM" , "itoTheta" , "itoBackwardsEuler" , "itoPlaten" , "itoMilstein11" ] itoD1List = [ "itoEM" , "itoTheta" , "itoBackwardsEuler" , "itoPlaten" , "itoMilsteinD1" ] itoDMList = [ "itoEM" , "itoTheta" , "itoBackwardsEuler" ] wholeStratList , wholeComList = [ ] , [ ] if problem is not None : if problem . equationType == 'Ito' : if problem . m == 1 and problem . d == 1 : if problem . g1 != None : return ito11List else : return ito11List [ 0 : - 1 ] elif problem . m == 1 and problem . d > 1 : if problem . g1 != None : return itoD1List else : return itoD1List [ 0 : - 1 ] elif problem . m > 1 : return itoDMList else : raise NotImplementedError ( "Something horrible has happened." ) elif problem . equationType == 'Stratonovich' : return stratTup else : if solverType == 'osIto' : if d == 1 and m == 1 : return ito11List elif m == 1 : return itoD1List elif d > 1 and m > 1 : return itoDMList else : raise NotImplementedError ( "Something horrible has happened" ) elif solverType == 'osStrat' : return wholeStratList elif solverType == 'comSolver' : return wholeComList
Method for returning list of available solvers.
Method for returning list of available solvers .
'''Method for returning list of available solvers.

    If problem given, it available solvers based on problem.equationType and
    problem.m and problem.d. If problem not given, uses solverType string to
    return available solvers.'''
problem
solverType
d
m