1 // SWIG file SquareMatrix.i
2 
3 // do not pass argument by reference, return it as tuple item
4 %typemap(in, numinputs=0) OT::SquareComplexMatrix & vOut ($*ltype temp) %{ temp = OT::SquareComplexMatrix(); $1 = &temp; %}
5 %typemap(argout) OT::SquareComplexMatrix & vOut %{ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(new OT::SquareComplexMatrix(*$1), SWIG_TypeQuery("OT::SquareComplexMatrix *"), SWIG_POINTER_OWN |  0 )); %}
6 
7 %{
8 #include "openturns/SquareMatrix.hxx"
9 %}
10 
11 %include SquareMatrix_doc.i
12 
13 %rename(__pow__) OT::SquareMatrix::power(const UnsignedInteger n) const;
14 
15 %include openturns/SquareMatrix.hxx
16 
17 namespace OT {
18 
19 %extend SquareMatrix {
20 
SquareMatrix(const SquareMatrix & other)21   SquareMatrix(const SquareMatrix & other) { return new OT::SquareMatrix(other); }
22 
SquareMatrix(PyObject * pyObj)23   SquareMatrix(PyObject * pyObj) { return new OT::SquareMatrix( OT::convert<OT::_PySequence_,OT::SquareMatrix>(pyObj) ); }
24 
OTMatrixAccessors()25   OTMatrixAccessors()
26 
27 #if SWIG_VERSION < 0x030011
28   SquareMatrix __truediv__(Scalar s) { return (*self) / s; }
29 #endif
30 
31 } // SquareMatrix
32 } // OT
33