This file is indexed.

/usr/include/openturns/swig/NumericalPoint.i is in libopenturns-dev 0.15-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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// SWIG file NumericalPoint.i
// Author : $LastChangedBy: schueller $
// Date : $LastChangedDate: 2011-07-29 08:12:01 +0200 (Fri, 29 Jul 2011) $
// Id : $Id: NumericalPoint.i 2051 2011-07-29 06:12:01Z schueller $

%{
#include "NumericalPoint.hxx"
%}

//%rename(NumericalPoint_operator___eq__)        OpenTURNS::Base::Type::operator ==(const NumericalPoint & lhs, const NumericalPoint & rhs);
%template(NumericalScalarCollection)           OpenTURNS::Base::Type::Collection<OpenTURNS::NumericalScalar>;
%template(NumericalScalarPersistentCollection) OpenTURNS::Base::Type::PersistentCollection<OpenTURNS::NumericalScalar>;
%template(NumericalPointCollection)            OpenTURNS::Base::Type::Collection<OpenTURNS::Base::Type::NumericalPoint>;
%template(NumericalPointPersistentCollection)  OpenTURNS::Base::Type::PersistentCollection<OpenTURNS::Base::Type::NumericalPoint>;

%typemap(in) const NumericalPoint & ($1_basetype temp) {
  if (! SWIG_IsOK(SWIG_ConvertPtr($input, (void **) &$1, $1_descriptor, 0))) {
    temp = OpenTURNS::convert<OpenTURNS::_PySequence_,OpenTURNS::Base::Type::NumericalPoint>( $input );
    $1 = &temp;
  }
}

%typemap(typecheck,precedence=SWIG_TYPECHECK_POINTER) const NumericalPoint & {
  $1 = SWIG_IsOK(SWIG_ConvertPtr($input, NULL, $1_descriptor, 0)) ||
       OpenTURNS::isAPythonSequenceOf<OpenTURNS::_PyFloat_>( $input );
}

%apply const NumericalPoint & { const Type::NumericalPoint &, const Base::Type::NumericalPoint &, const OpenTURNS::Base::Type::NumericalPoint & };

%include NumericalPoint.hxx
%copyctor NumericalPoint;

namespace OpenTURNS{ namespace Base { namespace Type {

%extend NumericalPoint {

NumericalPoint(PyObject * pyObj)
{
 return new OpenTURNS::Base::Type::NumericalPoint( OpenTURNS::convert<OpenTURNS::_PySequence_,OpenTURNS::Base::Type::NumericalPoint>(pyObj) );
}

Bool __eq__(const NumericalPoint & other)
{
 return operator == (*self, other);
}

/* NumericalPoint __add__(const NumericalPoint & other) */
/* { */
/*  return *self + other; */
/* } */

NumericalPoint operator +(const NumericalPoint & other)
{
 return *self + other;
}

NumericalPoint __sub__(const NumericalPoint & other)
{
 return *self - other;
}

NumericalPoint __mul__(NumericalScalar s)
{
 return *self * s;
}

NumericalPoint __iadd__(const NumericalPoint & other)
{
 *self += other;
 return *self;
}

NumericalPoint __isub__(const NumericalPoint & other)
{
 *self -= other;
 return *self;
}

} // %extend

}}}