This file is indexed.

/usr/share/octave/packages/nnet-0.1.13/min_max.m is in octave-nnet 0.1.13-2.

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
## Copyright (C) 2005 Michel D. Schmid  <michaelschmid@users.sourceforge.net>
##
##
## This program is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; see the file COPYING.  If not, see
## <http://www.gnu.org/licenses/>.

## -*- texinfo -*-
## @deftypefn {Function File} {} @var{Pr} = min_max (@var{Pp})
## @code{min_max} returns variable Pr with range of matrix rows
##
## @example
## PR - R x 2 matrix of min and max values for R input elements
## @end example
##
## @example
## Pp = [1 2 3; -1 -0.5 -3]
## pr = min_max(Pp);
## pr = [1 3; -0.5 -3];
## @end example
## @end deftypefn

## Author: Michel D. Schmid

function Pr = min_max(Pp)

  ## check number of input args
  error(nargchk(1,1,nargin))

  Pr = []; # returns an empty matrix
  #if ismatrix(Pp)
  if (!(size(Pp,1)==1) && !(size(Pp,2)==1)) # ismatrix(1) will return 1!!!
    if isreal(Pp) # be sure, this is no complex matrix
      Pr = [min(Pp,[],2) max(Pp,[],2)];
    else
      error("Argument has illegal type.")
    endif
  else
    error("Argument must be a matrix.")
  endif

endfunction

%!shared
%! disp("testing min_max")
%!test fail("min_max(1)","Argument must be a matrix.")
%!test fail("min_max('testString')","Argument must be a matrix.")
%!test fail("min_max(cellA{1}=1)","Argument must be a matrix.")
%!test fail("min_max([1+1i, 2+2i])","Argument must be a matrix.")
%!test fail("min_max([1+1i, 2+2i; 3+1i, 4+2i])","Argument has illegal type.")