Skip to content
Snippets Groups Projects
Commit ec25734a authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Put definition of size function in cc file where it belongs

parent 753e30c6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment