/usr/include/openturns/swig/SymmetricMatrix.i is in python-openturns-dev 1.2-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 | // SWIG file SymmetricMatrix.i
// @author schueller
// @date 2012-02-15 18:09:50 +0100 (Wed, 15 Feb 2012)
%{
#include "SymmetricMatrix.hxx"
%}
%apply const NumericalScalarCollection & { const OT::SymmetricMatrix::NumericalScalarCollection & };
%include SymmetricMatrix.hxx
namespace OT {
%extend SymmetricMatrix {
SymmetricMatrix(const SymmetricMatrix & other) { return new OT::SymmetricMatrix(other); }
SymmetricMatrix(PyObject * pyObj) { return new OT::SymmetricMatrix( OT::convert<OT::_PySequence_,OT::SymmetricMatrix>(pyObj) ); }
OTMatrixAccessors(SymmetricMatrix, NumericalScalar)
SymmetricMatrix __rmul__(NumericalScalar s) { return s * (*self); }
SymmetricMatrix __truediv__(NumericalScalar s) { return (*self) / s; }
} // SymmetricMatrix
} // OT
|