From ec25734af045b737182349e2b2a6ec2034fd2e64 Mon Sep 17 00:00:00 2001 From: Mark Jenkinson <mark@fmrib.ox.ac.uk> Date: Wed, 3 Aug 2005 10:36:49 +0000 Subject: [PATCH] Put definition of size function in cc file where it belongs --- miscmaths.cc | 9 +++++++++ miscmaths.h | 8 +------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/miscmaths.cc b/miscmaths.cc index 6e42bd3..1b1b639 100644 --- a/miscmaths.cc +++ b/miscmaths.cc @@ -28,6 +28,15 @@ namespace MISCMATHS { using std::atan2; + string size(const Matrix& mat) + { + string str = num2str(mat.Nrows())+"*"+num2str(mat.Ncols()); + + return str; + } + + + float Sinc(const float x) { if (fabs(x)<1e-9) { return 1-x*x*M_PI*M_PI/6.0; diff --git a/miscmaths.h b/miscmaths.h index 963c20a..0da285d 100644 --- a/miscmaths.h +++ b/miscmaths.h @@ -41,13 +41,7 @@ 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; - } - + string size(const Matrix& mat); 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