This file is indexed.

/usr/share/pyshared/openopt/kernel/LCP.py is in python-openopt 0.34+svn1146-1build1.

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
from ooMisc import assignScript
from nonOptMisc import isspmatrix
from baseProblem import MatrixProblem
from numpy import asarray, ones, inf, dot, nan, zeros, isnan, any, vstack, array, asfarray
from numpy.linalg import norm

class LCP(MatrixProblem):
    _optionalData = []
    expectedArgs = ['M', 'q']
    goal = 'solve'
    probType = 'LCP'
    allowedGoals = ['solve']
    showGoal = False

    def __init__(self, *args, **kwargs):
        MatrixProblem.__init__(self, *args, **kwargs)
        self.x0 = zeros(2*len(self.q))
        
    def objFunc(self, x):
        return norm(dot(self.M, x[x.size/2:]) +self.q - x[:x.size/2], inf)