#include #include int main() { DACE::DA::init(2, 3); DACE::AlgebraicVector x(3); x[0] = 0.5 + 2.0 * DACE::DA(1) - 0.7 * DACE::DA(2) + 0.5 * DACE::DA(3); x[1] = 4.0 + 0.3 * DACE::DA(1) + 1.2 * DACE::DA(2) - 0.85 * DACE::DA(3); x[2] = 2.0 - 0.45 * DACE::DA(1) + 3.2 * DACE::DA(2) - 0.33 * DACE::DA(3); std::ofstream outfile("test_vector_io.txt"); outfile << x; outfile.close(); DACE::AlgebraicVector y; std::ifstream infile("test_vector_io.txt"); // std::ifstream infile("test_vector_io_no_blanks.txt"); infile >> y; infile.close(); std::cout << x - y << std::endl; return 0; }