This file is indexed.

/usr/include/openturns/swig/ARMACoefficients.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
// SWIG file ARMACoefficients.i

%{
#include "PythonWrappingFunctions.hxx"
#include "ARMACoefficients.hxx"
#include "SquareMatrix.hxx"


namespace OT { 

  template <>
  struct traitsPythonType<OT::SquareMatrix>
  {
    typedef _PyObject_ Type;
  };

  template <>
  inline
  OT::SquareMatrix
  convert<_PyObject_,OT::SquareMatrix>(PyObject * pyObj)
  {
    void * ptr = 0;
    if (! SWIG_IsOK(SWIG_ConvertPtr( pyObj, &ptr, SWIG_TypeQuery("OT::SquareMatrix *"), 0 |  0 )))
      throw OT::InvalidArgumentException(HERE) << "Object passed as argument is not a SquareMatrix";
    OT::SquareMatrix * p_sm = reinterpret_cast< OT::SquareMatrix * >( ptr );
    return *p_sm;
  }
}
%}

%include ARMACoefficients_doc.i

%template(SquareMatrixCollection) OT::Collection<OT::SquareMatrix>;
%template(SquareMatrixPersistentCollection) OT::PersistentCollection<OT::SquareMatrix>;

%include ARMACoefficients.hxx


%extend OT::Collection<OT::SquareMatrix>
{

OT::Collection<OT::SquareMatrix> (PyObject * pyObj)
{
  return OT::buildCollectionFromPySequence<OT::SquareMatrix>( pyObj );
}

}

namespace OT {  
%extend ARMACoefficients {

ARMACoefficients(PyObject * pyObj)
{
  OT::Pointer<OT::Collection<OT::SquareMatrix> > p_coll =  OT::buildCollectionFromPySequence<OT::SquareMatrix>( pyObj );
  return new OT::ARMACoefficients( *p_coll );
}

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

}

}