diff --git a/openbr/plugins/cuda/util.cpp b/openbr/plugins/cuda/util.cpp deleted file mode 100644 index 9d7fd07..0000000 --- a/openbr/plugins/cuda/util.cpp +++ /dev/null @@ -1,62 +0,0 @@ -#include -#include -using namespace std; - -#include - -namespace br { - void dumpMatrixFloat(Eigen::MatrixXf& mat, char* filename) { - ofstream myFile; - myFile.open(filename); - - myFile << mat.rows() << " x " << mat.cols() << endl << endl; - - for (int i=0; i < mat.rows(); i++) { - for (int j=0; j < mat.cols(); j++) { - myFile << mat.data()[i*mat.cols()+j] << "\t"; - } - myFile << endl; - } - - myFile.close(); - } - void dumpMatrixDouble(Eigen::MatrixXd& mat, char* filename) { - ofstream myFile; - myFile.open(filename); - - myFile << mat.rows() << " x " << mat.cols() << endl << endl; - - for (int i=0; i < mat.rows(); i++) { - for (int j=0; j < mat.cols(); j++) { - myFile << mat.data()[i*mat.cols()+j] << "\t"; - } - myFile << endl; - } - - myFile.close(); - } - void dumpVectorFloat(Eigen::VectorXf& mat, char* filename) { - ofstream myFile; - myFile.open(filename); - - myFile << mat.rows() << endl << endl; - - for (int i=0; i < mat.rows(); i++) { - myFile << mat.data()[i] << endl; - } - - myFile.close(); - } - void dumpVectorDouble(Eigen::VectorXd& mat, char* filename) { - ofstream myFile; - myFile.open(filename); - - myFile << mat.rows() << endl << endl; - - for (int i=0; i < mat.rows(); i++) { - myFile << mat.data()[i] << endl; - } - - myFile.close(); - } -}