# HG changeset patch # User Sebastien Jodogne # Date 1517497674 -3600 # Node ID 62670cc2bb50f95728377f8ecc28b2f52b429a54 # Parent f7be90de6d1b6ec7eec57a5078c8a65008afe4cb print matrix diff -r f7be90de6d1b -r 62670cc2bb50 Framework/Toolbox/GeometryToolbox.cpp --- a/Framework/Toolbox/GeometryToolbox.cpp Wed Jan 24 17:02:13 2018 +0100 +++ b/Framework/Toolbox/GeometryToolbox.cpp Thu Feb 01 16:07:54 2018 +0100 @@ -42,6 +42,19 @@ } + void Print(const Matrix& m) + { + for (size_t i = 0; i < m.size1(); i++) + { + for (size_t j = 0; j < m.size2(); j++) + { + printf("%8.2f ", m(i,j)); + } + printf("\n"); + } + } + + bool ParseVector(Vector& target, const std::string& value) { diff -r f7be90de6d1b -r 62670cc2bb50 Framework/Toolbox/GeometryToolbox.h --- a/Framework/Toolbox/GeometryToolbox.h Wed Jan 24 17:02:13 2018 +0100 +++ b/Framework/Toolbox/GeometryToolbox.h Thu Feb 01 16:07:54 2018 +0100 @@ -43,6 +43,8 @@ { void Print(const Vector& v); + void Print(const Matrix& m); + bool ParseVector(Vector& target, const std::string& s);