This file is indexed.

/usr/share/pyshared/openopt/kernel/ODE.py is in python-openopt 0.38+svn1589-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from baseProblem import NonLinProblem
from numpy import any, diff
#from numpy.linalg import norm

class ODE(NonLinProblem):
    probType = 'ODE'
    goal = 'solution'
    allowedGoals = ['solution']
    showGoal = False
    _optionalData = []
    FuncDesignerSign = 'timeVariable'
    expectedArgs = ['equations', 'startPoint', 'timeVariable', 'times']
    ftol = None
    def __init__(self, *args, **kwargs):
        NonLinProblem.__init__(self, *args, **kwargs)
        domain, timeVariable, times = args[1:4]
        self.x0 = domain
#        if any(diff(times) < 0): self.err('''
#        currently required ODE times should be sorted 
#        in ascending order, other cases are unimplemented yet
#        ''')
        
        #self.constraints = [timeVariable > times[0], timeVariable < times[-1]]
        

    def objFunc(self, x):
        return 0
        #raise 'unimplemented yet'
        
        #r = norm(dot(self.C, x) - self.d) ** 2  /  2.0
        #return r