This file is indexed.

/usr/include/JAGS/function/ScalarVectorFunction.h is in jags 4.2.0-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
#ifndef SCALAR_VECTOR_FUNCTION_H_
#define SCALAR_VECTOR_FUNCTION_H_

#include <function/VectorFunction.h>

namespace jags {

    /**
     * @short Scalar-valued function with vector arguments
     *
     * ScalarVectorFunction represents scalar-valued functions whose
     * parameters are vectors.
     */
    class ScalarVectorFunction : public VectorFunction
    {
    public:
	ScalarVectorFunction(std::string const &name, unsigned int npar);
	/**
	 * Evaluates the function and returns the scalar result
	 * @param args Vector of arguments
	 * @param lengths Vector of argument lengths: the length of the array
	 * of doubles pointed to by args[i] is lengths[i]. 
	 */
	virtual double 
	    scalarEval (std::vector <double const *> const &args,
			std::vector <unsigned int> const &lengths) const = 0;
	/**
	 * Implements VectorFunction#evaluate in terms of 
	 * ScalarVectorFunction#eval.
	 */
	void evaluate(double *value, 
		      std::vector <double const *> const &args,
		      std::vector <unsigned int> const &lengths) const;
	/**
	 * Implements VectorFunction#length, returning the value 1
	 */
	unsigned int 
	    length(std::vector <unsigned int> const &arglengths,
		   std::vector <double const *> const &argvalues) const;
    };

} /* namespace jags */

#endif /* SCALAR_VECTOR_FUNCTION_H_ */