def __init__(self, G, report_flag=False): """ Diffeo: report_flag=False (quiet) or True (gives progress reports) """ Hamiltonian.__init__(self, G, report_flag) # initialize N=1 # with one landmark self.set_landmarks(np.zeros((2,self.d, N))) # landmarks are indexed [i,j,k] # i=landmark set index, j=dimension index, k=landmark index # self.set_no_steps(5) # no. time steps for discretising ODEs
def __init__(self): Hamiltonian.__init__(self)
def __init__(self, graph, j=1.0, h=1.0): Hamiltonian.__init__(self, graph) self.j = j self.h = h
def __init__(self, graph, jx=1.0, jy=1.0, jz=1.0): Hamiltonian.__init__(self, graph) self.jx = jx self.jy = jy self.jz = jz