Package PyDSTool :: Package PyCont :: Module TestFunc :: Class Function
[hide private]
[frames] | no frames]

Class Function

source code

object --+
         |
        Function
Known Subclasses:

F: R^n --> R^m

Note: The function func needs to act on arrays, not numbers. Thus, in the case where n=1, define the function as acting on a 1 dimensional array, i.e. reference x[0] NOT x. This is so numjac works without having to test cases (most generality).

Instance Methods [hide private]
 
__init__(self, (n, m), func=None, save=False, numpoints=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getitem__(self, loc) source code
 
__setitem__(self, loc, vals) source code
 
__call__(self, *cargs) source code
 
findzero(self, X) source code
 
diff(self, x0, ind=None) source code
 
numhess(self, x0, ind1=None, ind2=None)
Computes second derivative using 2nd order centered finite difference scheme.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, (n, m), func=None, save=False, numpoints=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

numhess(self, x0, ind1=None, ind2=None)

source code 

Computes second derivative using 2nd order centered finite difference scheme. MAKE MORE EFFICIENT IN FUTURE (i.e. when an index is in both ind1 and ind2)

Thus, for F: R^n ---> R^m, H is an (m,n1,n2) matrix, where n1, n2 are subsets of [1,...,n]