diff --git a/src/Base/MatrixPy.xml b/src/Base/MatrixPy.xml index 23b5b15e4..2ab7326b2 100644 --- a/src/Base/MatrixPy.xml +++ b/src/Base/MatrixPy.xml @@ -125,6 +125,14 @@ Get the sub-matrix. The parameter must be in the range [1,4]. + + + +analyze() -> string +Analyzes the type of transformation. + + + The matrix elements diff --git a/src/Base/MatrixPyImp.cpp b/src/Base/MatrixPyImp.cpp index a5408bb18..b7d594f54 100644 --- a/src/Base/MatrixPyImp.cpp +++ b/src/Base/MatrixPyImp.cpp @@ -474,6 +474,18 @@ PyObject* MatrixPy::transpose(PyObject * args) PY_CATCH; } +PyObject* MatrixPy::analyze(PyObject * args) +{ + if (!PyArg_ParseTuple(args, "")) + return NULL; + + PY_TRY { + std::string type = getMatrixPtr()->analyse(); + return PyString_FromString(type.c_str()); + } + PY_CATCH; +} + Py::Float MatrixPy::getA11(void) const { double val = (*this->getMatrixPtr())[0][0];