More testing, changed vector to string functions

This commit is contained in:
jowr
2014-06-06 01:03:35 +02:00
parent bdf92d95a9
commit 183c93ac3c
4 changed files with 122 additions and 108 deletions

View File

@@ -12,6 +12,21 @@
namespace CoolProp{
///*
//Owe a debt of gratitude to http://sole.ooz.ie/en - very clear treatment of GJ
//*/

View File

@@ -4,6 +4,7 @@
//using namespace std;
#include <vector>
#include <string>
#include <MatrixMath.h>
int main()
@@ -30,9 +31,14 @@ double eval = Eigen::poly_eval( coeffs, input);
std::cout << "Evaluation of the polynomial at " << input << std::endl;
std::cout << eval << std::endl;
//std::vector<double> vec(2,0.2);
//std::cout << CoolProp::vec_to_string(vec) << std::endl;
double vec0 = 0.1;
std::vector<double> vec1(2,0.2);
std::vector< std::vector<double> > vec2;
vec2.push_back(std::vector<double>(2,0.2));
vec2.push_back(std::vector<double>(2,0.3));
std::cout << CoolProp::vec_to_string(0.3) << std::endl;
std::cout << CoolProp::vec_to_string(vec0) << std::endl;
std::cout << CoolProp::vec_to_string(vec1) << std::endl;
std::cout << CoolProp::vec_to_string(vec2) << std::endl;
}