From 753e30c6a9b1dba520e406ee7a63c28c116e6dbb Mon Sep 17 00:00:00 2001 From: Mark Woolrich <woolrich@fmrib.ox.ac.uk> Date: Wed, 6 Jul 2005 14:31:29 +0000 Subject: [PATCH] *** empty log message *** --- miscmaths.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/miscmaths.h b/miscmaths.h index 8fd2f6b..963c20a 100644 --- a/miscmaths.h +++ b/miscmaths.h @@ -41,6 +41,13 @@ namespace MISCMATHS { // IO/string stuff template <class T> string num2str(T n, int width=-1); + string size(const Matrix& mat) + { + string str = num2str(mat.Nrows())+"*"+num2str(mat.Ncols()); + + return str; + } + bool isnum(const string& str); ReturnMatrix read_ascii_matrix(const string& filename, int nrows, int ncols); ReturnMatrix read_ascii_matrix(int nrows, int ncols, const string& filename); -- GitLab