util.cpp File Reference

#include "byteorder.h"
#include "emassert.h"
#include "emdata.h"
#include "util.h"
#include "marchingcubes.h"
#include "randnum.h"
#include <fcntl.h>
#include <iomanip>
#include <sstream>
#include <cstring>
#include <sys/types.h>
#include <gsl/gsl_linalg.h>
#include <algorithm>
#include <unistd.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>

Include dependency graph for util.cpp:

Go to the source code of this file.

Classes

struct  BPKT

Functions

void printmatrix (gsl_matrix *M, const int n, const int m, const string &message="")
void printvector (gsl_vector *M, const int n, const string &message="")


Function Documentation

void printmatrix ( gsl_matrix *  M,
const int  n,
const int  m,
const string &  message = "" 
)

Definition at line 1142 of file util.cpp.

Referenced by EMAN::Util::getBaldwinGridWeights().

01143 {
01144         cout << message << endl;
01145         for(int i = 0; i < n; ++i ){
01146                 for (int j = 0; j < m; ++j ){
01147                         cout << gsl_matrix_get(M,i,j) << "\t";
01148                 }
01149                 cout << endl;
01150         }
01151 }

void printvector ( gsl_vector *  M,
const int  n,
const string &  message = "" 
)

Definition at line 1153 of file util.cpp.

Referenced by EMAN::Util::getBaldwinGridWeights().

01154 {
01155         cout << message << endl;
01156         for(int i = 0; i < n; ++i ){
01157                 cout << gsl_vector_get(M,i) << "\t";
01158         }
01159         cout << endl;
01160 }


Generated on Thu May 3 10:08:06 2012 for EMAN2 by  doxygen 1.4.7