17 Eigen::Matrix<double, 1, 2> output(1, 2);
19 TXTWriter txtWriter(
"io-TXTWriterReaderTest-matrix-1by2.log");
20 txtWriter.
write(output);
22 Eigen::Matrix<double, 1, 2> input(1, 2);
23 TXTReader txtReader(
"io-TXTWriterReaderTest-matrix-1by2.log");
24 txtReader.
read(input);
29 Eigen::Matrix<double, 2, 1> output(1, 2);
31 TXTWriter txtWriter(
"io-TXTWriterReaderTest-matrix-2by1.log");
32 txtWriter.
write(output);
34 Eigen::Matrix<double, 2, 1> input(1, 2);
35 TXTReader txtReader(
"io-TXTWriterReaderTest-matrix-2by1.log");
36 txtReader.
read(input);
41 Eigen::Matrix<double, 3, 3> matOutput;
42 matOutput << 1, 2, 3, 4, 5, 6, 7, 8, 9;
43 Eigen::VectorXd vecOutput = Eigen::VectorXd::Constant(1, 1);
46 TXTWriter txtWriter(
"io-TXTWriterReaderTest-matrix-3by3.log");
47 txtWriter.
write(matOutput);
48 txtWriter.
write(vecOutput);
51 Eigen::Matrix<double, 3, 3> matInput;
52 TXTReader txtReader(
"io-TXTWriterReaderTest-matrix-3by3.log");
53 txtReader.
read(matInput);
56 Eigen::VectorXd vecInput(1);
57 txtReader.
read(vecInput);
62 Eigen::Vector3d output(1, 2, 3);
64 TXTWriter txtWriter(
"io-TXTWriterReaderTest-vector-3.log");
65 txtWriter.
write(output);
68 Eigen::Vector3d input;
69 TXTReader txtReader(
"io-TXTWriterReaderTest-vector-3.log");
70 txtReader.
read(input);
boost::test_tools::predicate_result equals(const std::vector< float > &VectorA, const std::vector< float > &VectorB, float tolerance)
equals to be used in tests. Compares two std::vectors using a given tolerance. Prints both operands o...