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