This file is indexed.

/usr/include/openturns/swig/DistributionImplementation.i is in libopenturns-dev 1.7-3.

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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// SWIG file DistributionImplementation.i

// do not pass argument by reference, return it as tuple item
%typemap(in, numinputs=0) OT::NumericalSample & grid ($*ltype temp) %{ temp = OT::NumericalSample(); $1 = &temp; %}
%typemap(argout) OT::NumericalSample & grid %{ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(new OT::NumericalSample(*$1), SWIG_TypeQuery("OT::NumericalSample *"), SWIG_POINTER_OWN |  0 )); %}
OT::NumericalSample OT::DistributionImplementation::computePDF(const OT::NumericalScalar xMin,
                           const OT::NumericalScalar xMax,
                           const OT::UnsignedInteger pointNumber,
                           OT::NumericalSample & grid) const;
OT::NumericalSample OT::DistributionImplementation::computePDF(const OT::NumericalPoint & xMin,
                           const OT::NumericalPoint & xMax,
                           const OT::Indices & pointNumber,
                           OT::NumericalSample & grid) const;

%typemap(in, numinputs=0) OT::NumericalPoint & weights ($*ltype temp) %{ temp = OT::NumericalPoint(); $1 = &temp; %}
%typemap(argout) OT::NumericalPoint & weights %{ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(new OT::NumericalPoint(*$1), SWIG_TypeQuery("OT::NumericalPoint *"), SWIG_POINTER_OWN |  0 )); %}
OT::NumericalPoint OT::DistributionImplementation::getGaussNodesAndWeights(OT::NumericalPoint & weights) const;

%{
#include "DistributionImplementation.hxx"
%}

%include DistributionImplementation_doc.i

%ignore OT::DistributionImplementation::pow;
%ignore OT::DistributionImplementation::setWeight;
%ignore OT::DistributionImplementation::getWeight;
%ignore OT::DistributionImplementation::setParallel;
%ignore OT::DistributionImplementation::isParallel;

%include DistributionImplementation.hxx

namespace OT {

%extend DistributionImplementation {

DistributionImplementation(const DistributionImplementation & other) { return new OT::DistributionImplementation(other); } 

Pointer<DistributionImplementation> __truediv__(const NumericalScalar s) { return (*self) / s; }

Pointer<DistributionImplementation> __truediv__(const DistributionImplementation & d) { return (*self) / d; }

Pointer<DistributionImplementation> __pow__(const NumericalScalar s) { return self->pow(s); }

Pointer<DistributionImplementation> __pow__(const SignedInteger s) { return self->pow(s); }

Pointer<DistributionImplementation> __sub__(const NumericalScalar s)
{
 return *self - s;
}

Pointer<DistributionImplementation> __rsub__(const NumericalScalar s)
{
  return *(*self * (-1.0)) + s;
}

Pointer<DistributionImplementation> __add__(const NumericalScalar s)
{
 return *self + s;
}

Pointer<DistributionImplementation> __radd__(const NumericalScalar s)
{
  return *self + s;
}

Pointer<DistributionImplementation> __mul__(NumericalScalar s)
{
  return (*self) * s;
}

Pointer<DistributionImplementation> __rmul__(NumericalScalar s)
{
  return (*self) * s;
}



} }

%clear OT::NumericalPoint & weights;