From a7f8896e4f2acc74f1545c8a0d8f15a67b71ee6c Mon Sep 17 00:00:00 2001 From: DepthDeluxe Date: Mon, 18 Jul 2016 13:28:44 -0700 Subject: [PATCH] removed Mat debug utilities --- openbr/plugins/cuda/util.cpp | 62 -------------------------------------------------------------- 1 file changed, 0 insertions(+), 62 deletions(-) delete mode 100644 openbr/plugins/cuda/util.cpp 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(); - } -} -- libgit2 0.21.4