This file is indexed.

/usr/share/psychtoolbox-3/PsychGamma/MakeMonotonic.m is in psychtoolbox-3-common 3.0.14.20170103+git6-g605ff5c.dfsg1-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
21
22
23
24
25
function output = MakeMonotonic(input)
% output = MakeMonotonic(input)
%
% Make input monotonically increasing.
%
% See also MakeGammaMonotonic, which is probably what you want if you are fitting
% gamma functions.  This routine left alone when MakeGammaMonotonic was created,
% in case it is called from programs completely unrelated to gamma fitting.
%
% 3/1/99  dhb  Handle multiple columns.
% 8/03/07 dhb  Old routine just enforced non-decreasing.  Fixed to make strictly increasing.
% 3/07/10 dhb  Added comment about MakeGammaMonotonic.

[m,n] = size(input);

output = input;
for j = 1:n
	for i = 1:m-1
	  if (output(i,j) >= output(i+1,j))
	    output(i+1,j) = output(i,j)+eps;
	  end
	end
end